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

The instrument of instructions contained in the Government of India Act, 1935 has been incorporated in the Constitution of India in the year 1950 as ______ 

A) Fundamental Rights B) Directive Principles of the State Policy
C) Fundamental Duities D) Emergency Provisions
 
Answer & Explanation Answer: D) Emergency Provisions

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

5 3612
Q:

Who is competent to dissolve the Rajya Sabha?

A) The President B) The Rajya Sabha Chairman
C) The joint session of Parliament D) No one
 
Answer & Explanation Answer: D) No one

Explanation:

The upper house of the parliament is the Rajya Sabha and is a permanent body.

Report Error

View Answer Report Error Discuss

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

1 3612
Q:

Exercise is a subset of physical activity that is

A) Repetative B) Planned
C) Structured D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Exercise is a subset of physical activity that is planned, structured and repetative.

Report Error

View Answer Report Error Discuss

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

1 3612
Q:

_______ has hailed ARJUN as "among the best three Main Battle Tanks" in the world 

A) Gen Shankar Roy Chowdhury B) VS Arunachalam
C) Dr APJ Abdul Kalam D) Dr MGK Menon
 
Answer & Explanation Answer: C) Dr APJ Abdul Kalam

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

0 3611
Q:

Of the three ways to create an Oracle database, which one is the easiest and most recommended?

A) Using the Oracle Database Configuration Assistant. B) Using the Oracle-supplied database creation procedures.
C) Using the SQL CREATE DATABASE command. D) None of the above is correct.
 
Answer & Explanation Answer: A) Using the Oracle Database Configuration Assistant.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

1 3611
Q:

'Barren Island' which is the only active volcano in India is situated in?

A) Rajasthan B) Andaman-Nicobar
C) Chattisgarh D) Lakshadweep
 
Answer & Explanation Answer: B) Andaman-Nicobar

Explanation:

The only active volcano in India is situated in Andaman-Nicobar islands.

Report Error

View Answer Report Error Discuss

2 3611
Q:

Which path through the carbon cycle is possible?

A) Animal ----> Plant ----> Atmosphere B) Plant ----> Animal ----> Atmosphere
C) Atmosphere ----> Plant ----> Animal D) Plant ----> Atmosphere -----> Animal
 
Answer & Explanation Answer: B) Plant ----> Animal ----> Atmosphere

Explanation:

During daylight hours, plants capture carbon dioxide from the atmosphere and use it to make carbohydrates which is stored as starch in the plant. Animals feed on the plants and extract the carbohydrates through their digestive system. The carbohydrates, namely glucose, are used by the animals for production of ATP through cellular respiration.

 

Cellar respiration in the animals produces carbon dioxide as a waste product. The carbon dioxide is released into the atmosphere, from where it is again captured by plants and the cycle is repeated.

 

Hence, option B) Plant ----> Animal ----> Atmosphere is the path possible in carbon cycle.

Report Error

View Answer Report Error Discuss

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

0 3610