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

Introduction of C++ Till Data Structure

Question

MCQ▾

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 2

Introduction of C++ Till Data Structure

Question

MCQ▾

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

  1. for(inti=20;i<=50;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 3

Introduction of C++ Till Data Structure

Question

MCQ▾

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

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

Choices

Choice (4)Response

a.

10

b.

12

c.

13

d.

11

Question 4

Introduction of C++ Till Data Structure

Question

MCQ▾

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 5

Introduction of C++ Till Data Structure

Question

MCQ▾

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 6

Introduction of C++ Till Data Structure

Appeared in Year: 2014

Question

MCQ▾

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

  1. #include<iostream.h>
  2. #include<conio.h>
  3. #include<stdio.h>
  4. structstudent
  5. {
  6.     introllno;
  7.     charname[20];
  8.     charcity[20];
  9. };
  10. intmain( )
  11. {
  12.     clrscr();
  13.     structstudentstu[] ={{1, “Riya”, “Delhi”}, {2, “Priya”, “Bombay”}, {3, “Jiya”, “Pune”}};
  14.     cout ≪ stu[1].rollno;
  15.     cout ≪“⧵n”≪(stu+2)⇾ name;
  16.     cout ≪“⧵n” ≪(stu) ⇾ city;
  17.     getch();
  18.     return0;
  19. }

Choices

Choice (4)Response

a.

b.

c.

d.

Developed by: