Programming with C++

Programming with C++

University

40 Qs

quiz-placeholder

Similar activities

Prelim Exam

Prelim Exam

University

40 Qs

ย้อนหลัง กลางภาค Java ระดับต้น

ย้อนหลัง กลางภาค Java ระดับต้น

KG - University

40 Qs

Round 1 Code2duo

Round 1 Code2duo

University

44 Qs

Grade 6-Sistem Komputer

Grade 6-Sistem Komputer

6th Grade - University

40 Qs

PowerPoint  2016

PowerPoint 2016

7th Grade - University

40 Qs

03 - Computer Fundamentals

03 - Computer Fundamentals

University

38 Qs

Exam

Exam

University

42 Qs

MOC 20345 Test

MOC 20345 Test

University

36 Qs

Programming with C++

Programming with C++

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Abdulmalik Ahmad Lawan

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

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

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for a C++ single-line comment?

// This is a comment
# This is a comment
/*/ This is a comment */
-- This is a comment

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a C++ keyword?

main
function
output
loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is text output to the console in C++?

printthis("Hello");
output("Hello");
cout << "Hello";
display("Hello");

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of comments in C++?

To execute specific code
To make the code readable for humans
To hide code from the compiler
To create syntax errors

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which C++ function is used for user input?

print()
getthis()
input()
cin>>

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a variable in C++?

variable x;
int x;
x = int;
declare x as integer;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare an integer variable in C++?

char
float
int
integer

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