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 3436
Q:

15th August is the Independence day of India and

A) South korea B) Indonesia
C) China D) Pakistan
 
Answer & Explanation Answer: A) South korea

Explanation:
Report Error

View Answer Report Error Discuss

7 3436
Q:

A paper written by hand

A) Thesis B) Handicraft
C) Manuscript D) Handiwork
 
Answer & Explanation Answer: C) Manuscript

Explanation:

A paper written by hand are called as Manuscripts.

Report Error

View Answer Report Error Discuss

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

1 3436
Q:

An olfactory stimulus travels from receptor to

A) amygdala B) pons
C) olfactory bulb D) thalamus
 
Answer & Explanation Answer: C) olfactory bulb

Explanation:

The olfactory system is the only system in which the receptors send their signal directly to the higher brain and bypass the thalamus, which normally acts as a filter for the processes of the lower brain.

An_olfactory_stimulus_travels_from_receptor_to1559025542.jpg image

Report Error

View Answer Report Error Discuss

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

1 3435
Q:

When Ionic bonds are formed metallic atoms tend to

A) share electrons B) gain electrons
C) lose electrons D) None of above
 
Answer & Explanation Answer: C) lose electrons

Explanation:

Ionic bonding is the complete transfer of valence electron(s) between atoms. It is a type of chemical bond that generates two oppositely charged ions. In ionic bonds, the metal loses electrons to become a positively charged cation, whereas the nonmetal accepts those electrons to become a negatively charged anion.

 

Hence, when Ionic bonds are formed metallic atoms tend to lose electrons and become positive ions

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

2 3435
Q:

Which is the best description of civil liberties?

A) privileges B) rights guaranteed by law
C) natural rights D) democratic goals
 
Answer & Explanation Answer: B) rights guaranteed by law

Explanation:

Rights guaranteed by law, is the best description of Civil liberties.

 

Which_is_the_best_description_of_civil_liberties1557485778.png image 

 

Civil liberties are also called as personal freedoms. They are personal guarantees and freedoms that the government cannot abridge, either by law or by judicial interpretation, without due process.

 

 

Report Error

View Answer Report Error Discuss

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

7 3435
Q:

Can you solve this riddle?

A) 1 B) 3
C) 5 D) 0
 
Answer & Explanation Answer: A) 1

Explanation:

5 + 5 = 10

5x 2 + 2 = 12

5 x 2 - 1 x 5 = 5

 

Hence,  = 1.

Report Error

View Answer Report Error Discuss

Filed Under: Math Puzzles
Exam Prep: CAT , Bank Exams

20 3435
Q:

Who set to become India’s 46th Grandmaster at the Sharjah Masters 2017 chess tournament ?

A) Srinath Narayanan B) Praggnanandhaa
C) Shyaamnikhil D) Grover Sahaj
 
Answer & Explanation Answer: A) Srinath Narayanan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

6 3434