C++ Syntax and Concepts Quiz

C++ Syntax and Concepts Quiz

University

15 Qs

quiz-placeholder

Similar activities

Python dictionary

Python dictionary

University

11 Qs

Instruction Set Architecture Quiz

Instruction Set Architecture Quiz

University

10 Qs

pengulangan materi prangkat keras dan perangkat lunak komputer

pengulangan materi prangkat keras dan perangkat lunak komputer

University

20 Qs

Signal and System

Signal and System

University

15 Qs

CSNP-04103 - Chapter 4 - Selection

CSNP-04103 - Chapter 4 - Selection

University

10 Qs

Edtech 111&112E

Edtech 111&112E

University

20 Qs

Exploration de l'odorat

Exploration de l'odorat

University

15 Qs

C Programming

C Programming

University

17 Qs

C++ Syntax and Concepts Quiz

C++ Syntax and Concepts Quiz

Assessment

Quiz

Others

University

Hard

Created by

MO7MD Waled

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct syntax to output "Hello World" in C++?

print ("Hello World");

cout << "Hello World";

System.out.println("Hello World");

Console.WriteLine("Hello World");

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used for comments in C++?

/* comment */

// comment

// comment

both // comment or /* comment */

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct identifier in C++?

VAR_1234

$var_name

7VARNAME

7var_name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to terminate the function declaration in C++?

;

]

[

:

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to create a variable that should store text?

String

string

sting

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the floating number 2.8?

byte num=2.8;

int num = 2.8;

num =2.8;

double num=2.8;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator can be used to compare two values?

<>

==

=

><

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?