Questions

Q:

main()

{

char *p; p = "Hello";

printf ("%cn", *&*p);

}

A) H B) Hello
C) Compilation error D) H E L L O
 
Answer & Explanation Answer: A) H

Explanation:

* is a dereference operator & is a reference operator. They can be applied any number of times provided it is meaningful. Here p points to the first character in the string "Hello". *p dereferences it and so its value is H. Again & references it to an address and * dereferences it to the value H

Report Error

View Answer Report Error Discuss

Filed Under: Programming
Job Role: Software Architect

21 43316
Q:

Logical puzzle

There are three boxes in a table. One of the box contains Gold and the other two are empty. A printed message contains in each box. One of the message is true and the other two are lies. The first box says 'The Gold is not here'. The Second box says 'The Gold is not here'. The Third box says 'The Gold is in the Second box'. Which box has the Gold?

Answer

As the message contains one truth, the third says that the gold is in the second box, if it is to be true, then the first box message will also become true. So Gold cannot be in second and third boxes. Gold is in the first box.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles

485 43299
Q:

Which state is in the eastern most state of India

A) Assam B) Nagaland
C) Arunachal Pradesh D) Manipur
 
Answer & Explanation Answer: C) Arunachal Pradesh

Explanation:

Arunachal Pradesh is the eastern most state of India.

Which_state_is_in_the_eastern_most_state_of_India1536034869.jpg image

Report Error

View Answer Report Error Discuss

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

172 43266
Q:

Key, Door, Lock, Room, Switch on

Arrange the words given above in a meaningful sequence.

A) 4, 2, 1, 5, 3 B) 1, 3, 2, 4, 5
C) 5, 1, 2, 4, 3 D) 1, 2, 3, 5, 4
 
Answer & Explanation Answer: B) 1, 3, 2, 4, 5

Explanation:

The given words to be placed in a logical sequence. Here if you want to swith on a light or fan in a room, the sequence you follow must be like

Key,

Lock ,

Door,

Room, Swith on.

Key,_Door,_Lock,_Room,_Switch_on1553580788.jpg image

Take the key and open the lock of a door in a room and then swith on.

Report Error

View Answer Report Error Discuss

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

75 43226
Q:

Which of the following is not written by Munshi Premchand

A) Gaban B) Godan
C) Manasorovar D) Guide
 
Answer & Explanation Answer: D) Guide

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

157 43188
Q:

Term Chinaman is related to which sports ?

A) Football B) Hockey
C) Golf D) Cricket
 
Answer & Explanation Answer: D) Cricket

Explanation:

Chinaman bowling is left-arm unorthodox spin, where the bowler spins the ball into a right-handed batsman. Leg spinner Kuldeep Yadav, who debuted in the Dharamsala Test against Australia, has become the first-ever men’s Chinaman bowler to represent India.

Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams , CAT

183 43155
Q:

Storage capacity of magnetic disk depends on

A) disk pack in disk surface B) tracks per inch of surface
C) bits per inch of tracks D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Magnetic disk is a kind of data storage device. Storage capacity of magnetic disk depends on 

1. tracks per inch of surface

2. bits per inch of tracks

3. disk pack in disk surface

 

It can be shown as ::

 

magnetic_disc1532069041.jpg image

Report Error

View Answer Report Error Discuss

135 43074
Q:

The paintings in the Ajanta and Ellora caves are indicative of the development of art under the -

A) Pallavas B) Chalukyas
C) Pandyas D) Rashtrakutas
 
Answer & Explanation Answer: B) Chalukyas

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

581 42857