C++ Syntax and Concepts Quiz

C++ Syntax and Concepts Quiz

University

15 Qs

quiz-placeholder

Similar activities

w3 vocab

w3 vocab

University

16 Qs

Pre-Test Pelatihan Excel 2024

Pre-Test Pelatihan Excel 2024

University

20 Qs

MANAGING HOSPITALITY BUSINESSES

MANAGING HOSPITALITY BUSINESSES

University

10 Qs

Cuestionario administracion

Cuestionario administracion

University

10 Qs

Quiz sur le Gabon

Quiz sur le Gabon

University

10 Qs

Finals Geria and LV Quiz

Finals Geria and LV Quiz

University

15 Qs

Childhood anemia

Childhood anemia

University

10 Qs

Quiz sobre Alimentacion y Nutricion

Quiz sobre Alimentacion y Nutricion

University

10 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?