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 46302
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 46265
Q:

Select the antonym of

VILE

A) virtuous B) coarse
C) vicious D) abject
 
Answer & Explanation Answer: A) virtuous

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

3 46202
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 45884
Q:

Some pins are needles. Some needles are handles. Some handles are locks. Some locks are keys.

Conclusions:

I. Some keys are handles

II.Some handles are pins

III. Some pins are keys

A) None follows B) Only I and II follow
C) only II and III follow D) only I and III follow
 
Answer & Explanation Answer: A) None follows

Explanation:

Report Error

View Answer Report Error Discuss

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

13 45848
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

147 45835
Q:

which part of the given sentence has an error?

She don't speak of either German or French.

A) don't B) of
C) or D) speak
 
Answer & Explanation Answer: B) of

Explanation:

She don't speak either German or French is the correct sentence in English.

Report Error

View Answer Report Error Discuss

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

42 45631
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 45400