C++ Programming Quiz

C++ Programming Quiz

12th Grade

20 Qs

quiz-placeholder

Similar activities

ITEDAT Midterm Quiz #4

ITEDAT Midterm Quiz #4

University

20 Qs

BASIC C QUIZ

BASIC C QUIZ

University

15 Qs

ABD1 (C++)

ABD1 (C++)

9th - 12th Grade

15 Qs

C++ Quiz-1

C++ Quiz-1

University

15 Qs

Programación Básica Prácticas Tema 2

Programación Básica Prácticas Tema 2

University

19 Qs

Test Final

Test Final

University

20 Qs

Basic C++ Programming Questions

Basic C++ Programming Questions

University

20 Qs

PLD_Final Quiz TTH

PLD_Final Quiz TTH

University

20 Qs

C++ Programming Quiz

C++ Programming Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

MUHAMED (KKJEL)

Used 5+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used with cin for input in C++?

<<

>>

:=

::

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The endl manipulator is used to move the output cursor to the next line.

True

False

3.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

The statement cout << "Helo"; will display ______ on the screen.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the error: cout >> "Enter your name: "; cin << name;

No error

Input operator used incorrectly

Output operator used correctly

5.

OPEN ENDED QUESTION

3 mins • 1 pt

Write a line of code to output the variable score to the screen.

Evaluate responses using AI:

OFF

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code display?

int x = 10; cout << "x = " << x << endl;

x = 10

10

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid declaration of a constant?

const int MAX = 100;

constant int MAX = 100;

final int MAX = 100;

static const = 100;

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?