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

Who was the first englishman to sail around the world?

A) Magellan B) Sir Francis Drake
C) Juan Sebastian Elcano D) Henry Hudson
 
Answer & Explanation Answer: B) Sir Francis Drake

Explanation:

Sir Francis Drake was the first Englishman to sail around the world.

Report Error

View Answer Report Error Discuss

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

2 3399
Q:

Which one of the following is an abiotic and renewable resource

A) Iron ore B) Livestock
C) Water D) Forests
 
Answer & Explanation Answer: C) Water

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

2 3399
Q:

What does the Mount protocol do?

Answer

The Mount protocol returns a file handle and the name of the file system in which a requested file resides. The message is sent to the client from the server after reception of a client's request.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

3 3398
Q:

Dudh Sagar Waterfalls are located in ______ state ?

A) Goa B) Bihar
C) Uttar Pradesh D) None of the above
 
Answer & Explanation Answer: A) Goa

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places
Exam Prep: Bank Exams
Job Role: Bank Clerk

4 3398
Q:

At what temperature do the Fahrenheit and celcius scales give the same reading?

A) 212 degrees B) 32 degreees
C) -40 degreees D) 0 degreees
 
Answer & Explanation Answer: C) -40 degreees

Explanation:

We want the temperature when F=C.

We know that, F = C x 95 + 32

So substituting C For F, we have C = -40o

Therefore,  C = -40. 

Thus when C = -40, we have C = F

Report Error

View Answer Report Error Discuss

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

17 3398
Q:

Fear of crossing road is called as

A) Emetophobia B) Aerophobia
C) Erythrophobia D) Agoraphobia
 
Answer & Explanation Answer: D) Agoraphobia

Explanation:

Fear of places and situations that might cause panic, helplessness or embarrassment is called Agoraphobia. 

Fear of crossing road causes some panic in them and comes under Agoraphobia.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

6 3397
Q:

The Number of officially recognised languages in india is

A) 12 B) 15
C) 18 D) 21
 
Answer & Explanation Answer: C) 18

Explanation:

India has 18 officially recognised languages - Konkani, Manipur and Nepali were added to the official list of 15 in 1992. The other 15 languages are Assamese, Bengali, Gujarati, Hindi, Kannada, Kashmiri, Malayalam, Marathi, Oriya, Punjabi, Sanskrit , Tamil, Telugu , Urdu and sindhi.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

4 3397