Programming with C++

Programming with C++

University

40 Qs

quiz-placeholder

Similar activities

Remidi ASTS Informatika

Remidi ASTS Informatika

7th Grade - University

40 Qs

COMPUTER NETWORKS [LEC] - UAC PREPARATION

COMPUTER NETWORKS [LEC] - UAC PREPARATION

University

42 Qs

CPP SHS

CPP SHS

University

45 Qs

สอบวิทยาการคำนวณ ม.2 -65

สอบวิทยาการคำนวณ ม.2 -65

University

35 Qs

Internet Safety Quiz

Internet Safety Quiz

7th Grade - University

35 Qs

Loop Control Statement in C

Loop Control Statement in C

University

41 Qs

SCRATCH

SCRATCH

4th Grade - University

35 Qs

Python Operators

Python Operators

University

35 Qs

Programming with C++

Programming with C++

Assessment

Quiz

Computers

University

Medium

Created by

Abdulmalik Ahmad Lawan

Used 14+ times

FREE Resource

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?