OOPS quiz-1

OOPS quiz-1

University

10 Qs

quiz-placeholder

Similar activities

Basic on Operating System

Basic on Operating System

University

10 Qs

Evaluasi Pertemuan 12 DRPL TI-3B

Evaluasi Pertemuan 12 DRPL TI-3B

University

15 Qs

Pop Quiz- Abstraction, Algorithm

Pop Quiz- Abstraction, Algorithm

University

14 Qs

AWS ACF Módulo 2 - Economia e Faturamento na Nuvem

AWS ACF Módulo 2 - Economia e Faturamento na Nuvem

University

15 Qs

Tema 2 - SI - Parte 1

Tema 2 - SI - Parte 1

University

10 Qs

PHAR AD - QUIZ 5 (Management Info System)

PHAR AD - QUIZ 5 (Management Info System)

University

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

CHAPTER 1: COMPUTER SECURITY REVIEW

CHAPTER 1: COMPUTER SECURITY REVIEW

University

10 Qs

OOPS quiz-1

OOPS quiz-1

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

devadevendran 28

Used 13+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the use of the scope resolution operatot "::" in c++?

To access the global variable

To print the output

To get input from the user

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

Which part of a code will be read first by compiler in c++?

User defined function

Main function

Header files

All the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the name of the following line which is used to include header files into your program in c++
(#include< >)

Compiler directive

Include statement

Preprocessor directive

All the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variable names in the programming language can be created with numbers in the beginning
eg: int 1num = 4

True

False

Answer explanation

A variable name cannot begin with a number because the could confuse it with a numeric value

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following word is not actually a key word in c++?

int

if

revert

mutable

6.

MULTIPLE CHOICE QUESTION

45 sec • 10 pts

Media Image

What will be the output of the following c++ code if the value of n is assigned as 5?

0 1 2 3 4 5

0 1 2 3 4

0 1 2 3

None of the above

Answer explanation

goto is one of the jump statement which is also used to transfer the control flow from one part of the program to another.


Syntax for goto statement:

goto label_name;

// ......

.

.

.

.

label_name:

// code that will be executed next

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following will be executed first when you run your code?

All the above

user-defined function

built-in function

main function

Answer explanation

Compilers always reads your code from top starting from header files all the way to the bottom as you have written it.

But it always execute the code written inside the main function first.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers