Questions

Q:

In the following code in which order the functions would be called?

a = ( f1 ( 23,14 ) * f2 ( 12/4) ) + f3() ;

Answer

The order may vary from compiler to compiler.


Here the multiplication will happen before the addition , but in which order the functions would be called is undefined. In an arithmetic expression the parentheses tell the compiler which operands go with which operators but do not force the compiler to evaluate everything within the parentheses first.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2122
Q:

How would you find the length of each string in the following Program?

main()

{

    char *str[] = { "Frogs", "Do", "Not" , "Die" , "They" , "Croak!"};

    printf ("%d%d", sizeof (str), sizeof (str[0]));

}

Answer

main()


{


   char *str[] = { "Frogs", "Do", "Not", "Die." , "They", "Croak!" };


   int i;


         for ( i = 0;i<=5;i++)


         printf ("\n%s%d", str[i], strlen( str[i]));


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2121
Q:

Who among the following, played an important role in the struggle for italian independence and unification?

A) Bismarck B) Giuseppe Mazzini
C) Giuseppe Garibaldi D) Both (b) and (c)
 
Answer & Explanation Answer: D) Both (b) and (c)

Explanation:

The struggle for Italian independence and unification was organised by the two famous revolutionaries of Italy Giuseppe Mazzini and Giuseppe Garibaldi. The movement led by them is known as the 'Young Italy' movement. It aimed at the independence and unification of Italy and the establishment of republic there.

Report Error

View Answer Report Error Discuss

Filed Under: World History

0 2121
Q:

The country which celebrates Independence day on 15th August, apart from India, is

Answer

South Korea

Report Error

View answer Workspace Report Error Discuss

Subject: World History

0 2120
Q:

What was Rajiv Gandhi before he entered politics?

A) Professor B) Lawyer
C) Pilot D) Doctor
 
Answer & Explanation Answer: C) Pilot

Explanation:

Our Ex. Prime Minister Rajiv Gandhi was Pilot by profession before he entered politics.

Report Error

View Answer Report Error Discuss

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

12 2120
Q:

Which country is partner country at International Gita Festival 2018 along with India?

A) Spain B) Malaysia
C) Mauritius D) None of the above
 
Answer & Explanation Answer: C) Mauritius

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2120
Q:

Who has appointed as the Ambassador of India to Republic of Colombia ?

A) Dinesh Bhatia B) Navtej Sarna
C) Vijaya Laxmi Pandit D) Sanjiv Ranjan
 
Answer & Explanation Answer: A) Dinesh Bhatia

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2119
Q:

The right to property was deleted from the list of fundamental rights by?

A) 45th Constitutional Act B) 44th Constitutional Act
C) 43rd Constitutional Act D) 42nd Constitutional Act
 
Answer & Explanation Answer: B) 44th Constitutional Act

Explanation:

The right to property was deleted from the list of fundamental rights by 44th Constitutional Act in the year 1976.

Report Error

View Answer Report Error Discuss

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

2 2119