Questions

Q:

Point out the error, if any, in the following program.

#include "stdio.h"

main()

{

      unsigned char;

       FILE *fp;

       fp = fopen ("trail", "r");

       while (( ch = getc (fp)) ! = EOF)

               printf ("%c", ch);

       fclose (fp);

}  

Answer

EOF has been defined as #define EOF -1 n the file "stdio.h" and an unsigned char ranges from 0 to 255 hence when EOF is read from the file it cannot be accommodated in ch. Solution is to declare ch as an int.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 3312
Q:

Government launches NEW INDIA initiative with which company ?

A) IBM B) BSNL
C) GOOGLE D) Microsoft
 
Answer & Explanation Answer: C) GOOGLE

Explanation:

In keeping with Prime Minister Narendra Modi's vision of a 'New India', Google India and the Ministry of Electronics and Information Technology (MEITY) announced a set of initiatives aimed at empowering citizens and creating abundant oppurtunities for all.

Report Error

View Answer Report Error Discuss

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

2 3311
Q:

The average salinity of seawater is

A) 35% B) 3.5%
C) 3% D) 2.5%
 
Answer & Explanation Answer: B) 3.5%

Explanation:

Seawater or salt water is water from a sea or ocean.

On average, seawater in the world's oceans has a salinity of approximately 3.5% or 35 parts per thousand. This means that for every 1 litre (1000 mL) of seawater there are 35 grams of salts dissolved in it.

 

Hence, The average salinity of seawater is 3.5%.

Report Error

View Answer Report Error Discuss

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

5 3311
Q:

Which city is known as the City of Prime Ministers?

A) Allahabad B) Varanasi
C) Hyderabad D) Ahmedabad
 
Answer & Explanation Answer: A) Allahabad

Explanation:

Allahabad is known as the City of Prime Ministers because seven out of 15 prime ministers of India since independence have connections to Allahabad(Jawaharlal Nehru, Lal Bahadur Shastri, Indira Gandhi, Rajiv Gandhi, Gulzarilal Nanda, Vishwanath Pratap Singh and Chandra Shekhar).

Report Error

View Answer Report Error Discuss

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

3 3310
Q:

A Transparent DBMS

A) Keep its logical structure hidden from users B) Can access control
C) Keeps its physical structure hidden from users D) Can not hide sensitive information from users
 
Answer & Explanation Answer: C) Keeps its physical structure hidden from users

Explanation:

DBMS :: Database Managemet System.

A DBMS which keeps its physical structure hidden from the user is known as a transparent DBMS.

Report Error

View Answer Report Error Discuss

2 3310
Q:

Who did the historian K M Pannikar call "India's new Manu, the spirit of modern law incarnate"?

Answer

Thomas Babington Macaulay

Report Error

View answer Workspace Report Error Discuss

Subject: World History

7 3309
Q:

In ancient Greek city states the central district would be built on a hilltop and it would contain the chief municipal and religious buildings . What was this place called?

Answer

Acropolis

Report Error

View answer Workspace Report Error Discuss

1 3309
Q:

Per Captain Income of a country derived from

A) National Income B) Population
C) National Income and Population both D) none of these
 
Answer & Explanation Answer: C) National Income and Population both

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 3308