C++ Quiz

C++ Quiz

University

20 Qs

quiz-placeholder

Similar activities

AP Computer Science A Post Unit 2 Check

AP Computer Science A Post Unit 2 Check

10th Grade - University

18 Qs

Java - Revisão I

Java - Revisão I

University

20 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

C - Flow Control

C - Flow Control

University

20 Qs

C-Extended

C-Extended

University

16 Qs

C - Structures

C - Structures

University

20 Qs

JAVA UNIT 1 PART 2

JAVA UNIT 1 PART 2

University

15 Qs

Java Básico

Java Básico

University

20 Qs

C++ Quiz

C++ Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Ara Assim

Used 253+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of this code?

int x = 8;

// x = 3;

cout<<x<<endl;

3

8

error

x

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the type of the temp variable?

var temp = 14.55;

Double

Boolean

Integer

String

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the alternative for x = x + 5?

x += 5;

x -= 4;

x = y + 5;

x=+5

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is void?

A statement that returns a value

A statement that doesn't return a value

A function that return a value

A function that doesn't return a value

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

iostream

Displays output from the screen and input from the keyboard

Has all the math equations

Counts the time

Checks if the code has a function

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Switch Statement

Is a statement with a set of conditions called cases

Is a case

Is a condition with no cases

Is a boolean statement

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Loops in C Language are implemented using.?

While

For

Do While

All the above

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?