C++ Syntax and Concepts Quiz

C++ Syntax and Concepts Quiz

University

15 Qs

quiz-placeholder

Similar activities

BIOETICA

BIOETICA

University

10 Qs

Contabilidad Administrativa INTRO Enero 2025

Contabilidad Administrativa INTRO Enero 2025

University

17 Qs

Sensation et perception

Sensation et perception

University

18 Qs

Trigonometry

Trigonometry

University

20 Qs

calificación de atencion en clase

calificación de atencion en clase

University

10 Qs

Technology teaching learning Quiz

Technology teaching learning Quiz

University

10 Qs

Quiz sobre Discapacidad Visual

Quiz sobre Discapacidad Visual

University

10 Qs

Examen VI

Examen VI

University

10 Qs

C++ Syntax and Concepts Quiz

C++ Syntax and Concepts Quiz

Assessment

Quiz

Others

University

Practice Problem

Hard

Created by

MO7MD Waled

FREE Resource

AI

Enhance your content in a minute

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

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?

<>

==

=

><

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?