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 we will add tracking exam-pattern and syllabus changes. Subscription can be renewed yearly absolutely FREE! View Sample Explanation or View Features.

Rs. 350.00 or

How to register?

Question number: 1

» Computer » Programming in C++

Edit
MCQ▾

Question

Find the Prefix form of the following Infix expression.

Choices

Choice (4) Response

a.

b.

c.

d.

Question number: 2

» Computer » Programming in C++

Edit
MCQ▾

Question

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 number: 3

» Computer » Programming in C++

Edit
MCQ▾

Question

Find the Output of the given C++ Program.

  1. #include<iostream.h>
  2. #include<conio.h>
  3. inline double square (int n)
  4. {
  5.     return n*n;
  6. }
  7. inline float average (int n1int n2)
  8. {
  9.     return ((float)(n1+n2)/2);
  10. }
  11. int main()
  12. {
  13.     cout<<”  Square is = ”<<square(11);
  14.     cout<<”  Average is = ”<<average(10,21);
  15.     return 0;

Choices

Choice (4) Response

a.

Squareis = 121Averageis = 15

b.

c.

d.

Question number: 4

» Computer » Programming in C++

Edit
MCQ▾

Question

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

  1. #include<iostream.h>
  2. int main()
  3. {
  4.     int change (int);
  5.     int x=10;
  6.     change (x);
  7.     cout<<x;
  8.     return 0;
  9. }
  10. int change(int x)
  11. {
  12.     x=20;
  13.     return 0;
  14. }

Choices

Choice (4) Response

a.

10

b.

30

c.

20

d.

Question does not provide sufficient data or is vague

Question number: 5

» Computer » Programming in C++

Edit
MCQ▾

Question

What will be the output of the given program?

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

Choices

Choice (4) Response

a.

b.

c.

d.

Developed by: