Computer-Programming in C++ [NCO- Cyber Olympiad (SOF) Class 12]: Questions 1 - 5 of 47

Access detailed explanations (illustrated with images and videos) to 520 questions. Access all new questions- tracking exam pattern and syllabus. View the complete topic-wise distribution of questions. Unlimited Access, Unlimited Time, on Unlimited Devices!

View Sample Explanation or View Features.

Rs. 350.00 -OR-

How to register? Already Subscribed?

Question 1

Programming in C++

Question

MCQ▾

Find the Prefix form of the following Infix expression.

Choices

Choice (4)Response

a.

b.

c.

d.

Question 2

Programming in C++

Question

MCQ▾

Which of the following language reflects the way people think mathematically?

Choices

Choice (4)Response

a.

Event driven programming language

b.

Functional

c.

Cross platform programming language

d.

Question does not provide sufficient data or is vague

Question 3

Programming in C++

Question

MCQ▾

Find the Output of the given C ++ Program.

  1. #include<iostream.h>
  2. #include<conio.h>
  3. inlinedoublesquare (intn)
  4. {
  5.     returnnn;
  6. }
  7. inlinefloataverage (intn1, intn2)
  8. {
  9.     return ((float)(n1+n2)/2);
  10. }
  11. intmain()
  12. {
  13.     cout≪”Squareis =”≪square(11);
  14.     cout≪”Averageis =”≪average(10,21);
  15.     return0;

Choices

Choice (4)Response

a.

Squareis = 121Averageis = 15

b.

c.

d.

Question 4

Programming in C++

Question

MCQ▾

What will be the value of x in the given program?

  1. #include<iostream.h>
  2. intmain()
  3. {
  4.     intchange (int);
  5.     intx=10;
  6.     change (x);
  7.     coutx;
  8.     return0;
  9. }
  10. intchange(intx)
  11. {
  12.     x=20;
  13.     return0;
  14. }

Choices

Choice (4)Response

a.

10

b.

30

c.

20

d.

Question does not provide sufficient data or is vague

Question 5

Programming in C++

Question

MCQ▾

What will be the output of the given program?

#include < iostream. h > int main 0 {intX = 10; floaty = 10.1; charZ = ‘a’ ; cout << “X =” << X << endl; cout << “Z =” << Y << endl; cout << “Y =” << Z << endl; return 0;}

Choices

Choice (4)Response

a.

b.

c.

d.

Developed by: