Questions

Q:

What will be output of following c code?

void main()
{
struct bitfield
{
unsigned a:5;
unsigned c:5;
unsigned b:6;

}bit;
char *p;
struct bitfield *ptr,bit1={1,3,3};
p=&bit1;
p++;
clrscr();
printf("%d",*p);
getch();
}

Answer

Output: 12

Explanation:
Binary value of a=1 is 00001 (in 5 bit)
Binary value of b=3 is 00011 (in 5 bit)
Binary value of c=3 is 000011 (in 6 bit)

In memory it is represented as:
Let address of bit1 is 500 which initialize to char pointer p. Since can is one byte data type so p++ will be 501. *p means content of memory location 501 which is (00001100) and its binary equivalent is 12. Hence output is 12.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3120
Q:

What do you call a bear without an ear?

Answer

Given BEAR, if you remove EAR only remains with 'B'.


 


Hence, we call it as 'B', a bear without an ear.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO

10 3120
Q:

Circuit breaker usually operate under

A) after D. C. component has ceased B) transient state of short-circuit current
C) sub-transient state of short-circuit current D) steady state of short-circuit current
 
Answer & Explanation Answer: B) transient state of short-circuit current

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 3120
Q:

The book " The Vijay Mallya Story " has been written by _____

A) Vijay Mallya B) Gopinath
C) Giriprakash D) Siddharth Mallya
 
Answer & Explanation Answer: C) Giriprakash

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

9 3119
Q:

For which one of the following snakes is the deit mainly composed of other snakes?

A) Krait B) Russel's viper
C) Rattlesnake D) King cobra
 
Answer & Explanation Answer: D) King cobra

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds

14 3119
Q:

India was elected as a President of General Assembly of the United Nations in 1953. Who occupied this office on behalf of India?

A) S. Radha Krishnan B) Gopalswamy Iyyengar
C) V.K. Krishna Menon D) Vijayalakshmi Pandit
 
Answer & Explanation Answer: D) Vijayalakshmi Pandit

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

9 3118
Q:

Today __________ are seen as personal accessory - portable, powerful and simple to operate.

 

A) e-mail B) e-business  
C) e-content   D) Computers
 
Answer & Explanation Answer: D) Computers

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

2 3118
Q:

Improve the bracketed part of the sentence.

You can always count (at me) in difficult times.

 

A) upon me B) on me
C) on I D) no improvement
 
Answer & Explanation Answer: B) on me

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 3118