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

How many districts that telangana have?

A) 9 B) 10
C) 11 D) 12
 
Answer & Explanation Answer: B) 10

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

3 3396
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 3396
Q:

Human Heart is made up of

A) nervous tissue B) cardiac muscle
C) nonstriated muscle D) connective tissue
 
Answer & Explanation Answer: B) cardiac muscle

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

8 3395
Q:

What does the judicial branch do?

Answer

The United States government has 3 branches, which all serve an important role in running the government and keeping our system of laws in place.


 


1. The legislative branch


2. The executive branch 


3. The judicial branch


 


The legislative branch makes the laws while the executive branch enforces these laws. 


The judicial branch is a system of courts that applies the laws.


 


Both the federal government and each of the 5 states have individual judicial branches which all serve this purpose.


 


For example :: 


If the federal government were like a basketball game, the judicial branch is much like the referee that helps settle disputes. The executive branch and the legislative branch are often like the players in the game trying to score points against each other, and the judicial branch is there to clarify the rules and make sure each side is acting fairly.

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Politics Exam Prep: AIEEE , Bank Exams , CAT , GRE
Job Role: Analyst , Bank Clerk , Bank PO

0 3395
Q:

India was elected as a President of General Assembly of the United Nations in 1953. Who occupied this office on behalf of India?

A) S. Radha Krishnan B) Gopalswamy Iyyengar
C) V.K. Krishna Menon D) Vijayalakshmi Pandit
 
Answer & Explanation Answer: D) Vijayalakshmi Pandit

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

9 3394
Q:

National Dairy Research Institute is located at

A) Ludhiana B) Karnal
C) Pantnagar D) Hyderabad
 
Answer & Explanation Answer: B) Karnal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

4 3393
Q:

Who has won the Nobel prize in "Physics" for the year 2017 ?

A) Barry Barish B) Kip Thorne
C) Rainer Weiss D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Rainer Weiss, a professor at the Massachusetts Institute of Technology, and Kip Thorne and Barry Barish, both of the California Institute of Technology, were awarded the Nobel Prize in Physics for the discovery of ripples in space-time known as gravitational waves, which were predicted by Albert Einstein a century ago but had never been directly seen.

Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

19 3393