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

5 F on a H?

Answer

5 F on a H is a letter equation which indicates that 5 Fingers on a hand.

Report Error

View answer Workspace Report Error Discuss

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

3 3591
Q:

Point out which from the following is NOT a right enumerated in the Constitution of India but has been articulated by the Supreme Court to be a Fundamental Right

A) Right to privacy B) Certiorari
C) Abolition of untouchability D) Right to form association or Union
 
Answer & Explanation Answer: A) Right to privacy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

7 3591
Q:

Manas sanctuary in assam known for

A) Tigers B) Birds
C) Bears D) Elephants
 
Answer & Explanation Answer: D) Elephants

Explanation:

Manas_sanctuary_in_assam_known_for1552911929.jpg image

 

Manas National Park or Manas Wildlife Sanctuary is a national park, UNESCO Natural World Heritage site in Assam is known for Elephants. It is located in the Himalayan foothills.

Report Error

View Answer Report Error Discuss

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

4 3591
Q:

Who is author of the book 'Preparing for the Twenty First Century '

A) V.S.Naipaul B) John Ruskin
C) Paul Kennedy D) Henry Kissinger
 
Answer & Explanation Answer: C) Paul Kennedy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

1 3590
Q:

How fast do satellites orbit the earth?

A) 28,000 kmph B) 26,000 kmph
C) 17,500 kmph D) 22,500 kmph
 
Answer & Explanation Answer: A) 28,000 kmph

Explanation:

Satellites orbit the earth at a speed of 28,000 kmph.

Satellites that are further away actually travel slower. The International Space Station has a Low Earth Orbit, about 400 kilometers (250 miles) above the earth's surface. Objects orbiting at that altitude travel about 28,000 kilometers per hour (17,500 miles per hour).

Report Error

View Answer Report Error Discuss

5 3589
Q:

Which of the following is known as the Electronic City of India?

A) Hyderabad B) Mumbai
C) Bengaluru D) Gurgaon
 
Answer & Explanation Answer: C) Bengaluru

Explanation:

Bengaluru city is known as the Electronic City of India. Because Electronic City is an IT hub in Anekal taluk of Bengaluru, Karnataka, India. It is one of India's largest electronic industrial parks in 3 phases i.e, in Konappana Agrahara and Doddathogur villages, Bengaluru.

Report Error

View Answer Report Error Discuss

3 3588
Q:

India ranks _____ in 2016 Human Development Index ?

A) 128 B) 131
C) 188 D) 155
 
Answer & Explanation Answer: B) 131

Explanation:

India ranks 131 in the 2016 Human Development Index (HDI) among the 188 countries. It scored 0.624 and was placed in medium human development category.

The index was unveiled recently as part of the Human Development Report (HDR) 2016 titled Human Development for Everyone published by the United Nations Development Programme (UNDP).

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

3 3588