Computer-Introduction of C++ Till Data Structure (NCO- Cyber Olympiad (SOF) Class 11): Questions 1 - 6 of 54

Access detailed explanations (illustrated with images and videos) to 599 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 » Introduction of C++ Till Data Structure

Edit
MCQ▾

Question

A trigraph is a three-character sequence that represents a single character and the sequence always starts with ________ in C++ programming.

Choices

Choice (4) Response

a.

? ?

b.

==

c.

++

d.

! !

Question number: 2

» Computer » Introduction of C++ Till Data Structure

Edit
MCQ▾

Question

What would be the output of the given C++ code?

  1. for(inti=20;i50;i+=10)
  2. {
  3.     intj=i/2;
  4.     coutj≪ ;
  5. }

(Model test paper 3)

Choices

Choice (4) Response

a.

10204050

b.

10 15 20 30

c.

10152025

d.

10 15 20

Question number: 3

» Computer » Introduction of C++ Till Data Structure

Edit
MCQ▾

Question

What is the output of the given C++ code fragment?

  1. for (int i=1i<12i++)
  2. {
  3.     cout <<i;
  4. }

Choices

Choice (4) Response

a.

10

b.

12

c.

13

d.

11

Question number: 4

» Computer » Introduction of C++ Till Data Structure

Edit
MCQ▾

Question

Which of the following method retrieves the current geographic location of the user? (Model test paper 2)

Choices

Choice (4) Response

a.

watchPosition ()

b.

clearWatch ()

c.

getLocation ()

d.

getCurrentPosition ()

Question number: 5

» Computer » Introduction of C++ Till Data Structure

Edit
MCQ▾

Question

In C++, ________ is causing a sort of blind replacement and also known as preprocessor definitions. (Model test paper 3)

Choices

Choice (4) Response

a.

* pointer

b.

< iostream >

c.

# include

d.

# define

Question number: 6

» Computer » Introduction of C++ Till Data Structure

Edit

Appeared in Year: 2014

MCQ▾

Question

What is the output of the given C++ program?

  1. #include<iostream.h>
  2. #include<conio.h>
  3. #include<stdio.h>
  4. struct student
  5. {
  6.     int rollno;
  7.     char name[20];
  8.     char city[20];
  9. };
  10. int main( )
  11. {
  12.     clrscr();
  13.     struct student stu[] = {{1, “Riya”, “Delhi”}, {2, “Priya”, “Bombay”}, {3, “Jiya”, “Pune”}};
  14.     cout << stu[1].rollno;
  15.     cout <<“ ”<<(stu+2)-> name;
  16.     cout <<“ ” <<(stu) -> city;
  17.     getch();
  18.     return 0;
  19. }

Choices

Choice (4) Response

a.

b.

c.

d.

Developed by: