Questions

Q:

How many times i value is checked in the below code?

       #include <stdio.h>
        int main()
        {
            int i = 0;
            do {
                i++;
                printf( "In while loopn" );
            } while (i < 3);
        }

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming

6 45815
Q:

IG full form in police department?

Answer

IG stands for Inspector General of Police. DIG(Deputy Inspector General ofPolice) is a One-star rank in the police service who works under IG.


IG_Full_form_in_Police_Department1542091017.jpg image

Report Error

View answer Workspace Report Error Discuss

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

173 45807
Q:

What will be output when you will execute following c code?

#include <stdio.h>
void main()

{
    int const SIZE = 5;
    int expr;
    double value[SIZE] = { 2.0, 4.0, 6.0, 8.0, 10.0 };
    expr=1|2|3|4;
    printf ( "%f", value[expr] );
}

A) 2.000000 B) 4.000000
C) 8.000000 D) Compilation error
 
Answer & Explanation Answer: D) Compilation error

Explanation:

Size of any array in c cannot be constantan variable.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

5 45760
Q:

Right to property was removed from the list of Fundamental Rights during the rule of

A) Indhira Gandhi Government B) Morarji Desai Government
C) Narasimha Rao Government D) Vajpayee Government
 
Answer & Explanation Answer: B) Morarji Desai Government

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

141 45706
Q:

What will be output of following c code?

#include <stdio.h>
int main()

{
    int x=123;
    int i={
         printf("c" "++")
    };
    for(x=0;x<=i;x++){
         printf("%x ",x);
    }
    return 0;

}

Answer

Output: c++0 1 2 3

Explanation: First printf function will print: c++ and return 3 to variable i.For loop will execute three time and printf function will print 0, 1, 2 respectively.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

68 45307
Q:

Who have the power to decide an election petition?

A) Parliament B) Supreme Court
C) High Courts D) Election Commission
 
Answer & Explanation Answer: C) High Courts

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

175 44819
Q:

Select the synonym of

gaudy

A) modest B) showy
C) refined D) sophisticated
 
Answer & Explanation Answer: B) showy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT

12 44647
Q:

At 3.40, the hour hand and the minute hand of a clock form an angle of:

A) 120 degrees B) 125 degrees
C) 130 degrees D) 135 degrees
 
Answer & Explanation Answer: C) 130 degrees

Explanation:

Angle traced by hour hand in 12 hrs. = 360º.

 

Angle traced by it in  11/3 hrs=  36012*113°=110°

 

Angle traced by minute hand in 60 min. = 360º.

 

Angle traced by it in 40 min. =(360/60*40)°=240°

 

  Required angle (240 - 110)º = 130º.

Report Error

View Answer Report Error Discuss

Filed Under: Clock puzzles

148 44616