Questions

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

96 53758
Q:

What is the output of this C code?

   #include <stdio.h>
    int main()
    {
        int a = 1, b = 1;
        switch (a)
        {
        case a*b:
            printf("yes ");
        case a-b:
            printf("non");
            break;
        }
    }

A) yes B) no
C) Compile time error D) yes no
 
Answer & Explanation Answer: C) Compile time error

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming

23 53523
Q:

_____are attempts by individuals to obtain confidential information from you by falsifying their identity

A) Phishing trips B) Computer viruses
C) Phishing scams D) Spyware scams
 
Answer & Explanation Answer: C) Phishing scams

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams
Job Role: Bank PO

434 53369
Q:

Nuclear sizes are expressed in a unit named

A) Fermi B) Angstrom
C) Newton D) Tesla
 
Answer & Explanation Answer: A) Fermi

Explanation:

Nuclear sizes are expressed in a unit called "Fermi" which is a unit of length equal to 10−15 metre (one femtometre), used in nuclear physics. It is similar to the diameter of a proton.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

394 53368
Q:

Patanjali is well known for the compilation of

A) Yoga Sutra B) Panchatantra
C) Brahma Sutra D) Ayurveda
 
Answer & Explanation Answer: A) Yoga Sutra

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

188 53308
Q:

Who first imposed Jizya Tax in India?

A) Allaudin khilji B) Aurangzeb
C) Mohammad Bin Qasim D) Qutb-ud-din Aibak
 
Answer & Explanation Answer: D) Qutb-ud-din Aibak

Explanation:

In India, Islamic rulers Qutb-ud-din Aibak imposed jizya on non-Muslims first time which was called kharaj-o-jizya. Jizya was abolished by the Mughal ruler Akbar in the 16th century but was re-introduced by Aurangzeb in the 17th century.

Report Error

View Answer Report Error Discuss

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

150 53292
Q:

'Alpine Plant species', which are critically endangered have been discovered in which state?

 

A) Mizoram B) Gujarat
C) Himachal Pradesh D) Arunachal Pradesh
 
Answer & Explanation Answer: D) Arunachal Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

2 53276
Q:

Which team Won the 2017 Santosh Trophy, the final of which was held in Bambolim, Goa.

 

A) Services B) Kerala
C) West Bengal D) Goa
 
Answer & Explanation Answer: C) West Bengal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

6 53265