Programming with C++

Programming with C++

University

40 Qs

quiz-placeholder

Similar activities

Data Structures Quiz

Data Structures Quiz

University

44 Qs

Eng-103 Vocab1

Eng-103 Vocab1

University

40 Qs

Midterm Exam - Discrete Math

Midterm Exam - Discrete Math

University

35 Qs

Introduction to Computer

Introduction to Computer

University

40 Qs

ASSESSMENT 2: OVERVIEW OF ICT & REVIEW ON COMPUTER FUNDAMENTALS

ASSESSMENT 2: OVERVIEW OF ICT & REVIEW ON COMPUTER FUNDAMENTALS

University

40 Qs

Test Algoritma

Test Algoritma

University

40 Qs

TIK kelas 7, Penilaian Tengah semester

TIK kelas 7, Penilaian Tengah semester

7th Grade - University

40 Qs

Decision and Case Control Statements in C

Decision and Case Control Statements in C

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?