Questions

Q:

Indicate what would the SWAP macro be expanded to on preprocessing. Would the code compile?

#define SWAP (a, b, c ) (c t; t = a, a = b, b = t; )

main()

{

    int x = 10, y = 20;

    SWAP (x, y, int );

    printf ( " %d%d ", x, y);

}

Answer

( int t ; t = a, a = b, b = t ;);


This code won't compile since declaration of t cannot occur within parentheses.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3173
Q:

public static void main string[] args Meaning is?

Answer

Here in this declaration public static void main string[] args, each keyword has its importance.


 


1. public - Here public is an access specifier which allows the main method to be accessible everywhere.


 


2. static - static helps the main method to get loaded without getting called by any instance/object.


 


3. void - void clarifies that the main method will not return any value.


 


4. main - It's the name of the method.


 


5. String[] args - Here we are defining a String array to pass arguments at the command line. args is the variable name of the String array.

Report Error

View answer Workspace Report Error Discuss

8 3171
Q:

Telegrahic code was introduced by

A) Lipman B) Macmillan
C) Thomas Moore D) Cockrell
 
Answer & Explanation Answer: C) Thomas Moore

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

0 3171
Q:

How many member countries are there in Shanghai Cooperation Organisation (SCO) ?

A) 5 B) 7
C) 6 D) 8
 
Answer & Explanation Answer: C) 6

Explanation:

There are six permanent members: China, Kazakhstan, Kyrgyzstan, Russia, Tajikistan, Uzbekistan. Soon India and Pakistan will also join it.

Report Error

View Answer Report Error Discuss

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

4 3171
Q:

Who is the director of the Sanskrit film Adi Sankara

Answer

G.V. Iyer

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Culture

47 3171
Q:

Which poet first popularized the sonnet form?

A) Edmund Spencer B) Francesco Petrarch
C) Shakespeare D) None of the above
 
Answer & Explanation Answer: B) Francesco Petrarch

Explanation:

The sonnet is a fourteen-line poem written in iambic pentameter, which employ one of several rhyme schemes and adhere to a tightly structured thematic organization. Francesco Petrarch first popularized the sonnet form and after that many others like Shakespeare, Edmund Spencer and many other started that.

Report Error

View Answer Report Error Discuss

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

2 3170
Q:

A Book always has

A) Preface B) Text
C) Index D) Page
 
Answer & Explanation Answer: D) Page

Explanation:

A Book always has Pages. Without pages it can't be called as a book. A book can be either with or without preface, text or index but it can't be without a page.

 

Hence, A Book always has page.

Report Error

View Answer Report Error Discuss

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

1 3170
Q:

Who becomes the first Indian woman President of Indian National Congress?

A) Pratibha Patil B) Annie Besant
C) Sarojini Naidu D) Vijaya Lakshmi
 
Answer & Explanation Answer: C) Sarojini Naidu

Explanation:

The first Indian woman President of Indian National Congress was Sarojini Naidu in the year 1925.

 

First woman to become the president of INC - Annie Besant 1917.

Report Error

View Answer Report Error Discuss

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

0 3170