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

The International Day for Monuments and Sites is observed globally on __________.

A) 19 April B) 18 April
C) 21 April D) 16 April
 
Answer & Explanation Answer: B) 18 April

Explanation:

Every year on 18 April, ICOMOS (International Council on Monuments and Sites) celebrates the International Day for Monuments and Sites (also called as World Heritage day), whose establishment was approved by the 22nd UNESCO General Conference in 1983.

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

3 3599
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 3598
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 3598
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 3598
Q:

Who Invented Microwave Oven ?

A) Lewis Edson Waterman B) Levi Strauss
C) Percy LeBaron Spencer D) Sir Sandford Fleming
 
Answer & Explanation Answer: C) Percy LeBaron Spencer

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

1 3597
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 3597
Q:

Which is the only gem of world made of a single element?

A) Platinum B) Diamond
C) Emerald D) Ruby
 
Answer & Explanation Answer: B) Diamond

Explanation:

The only gem of world made of a single element is Diamond.

the_only_gem_of_world_made_of_a_single_element1563602197.jpg image

Report Error

View Answer Report Error Discuss

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

6 3597