C++ Fundamentals Challenge

C++ Fundamentals Challenge

Assessment

Quiz

Created by

Ina Braguța

English

10th Grade

1 plays

Hard

Student preview

quiz-placeholder

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co è la sintaxa correcta per declerar ina variabla en C++?

variableName type;

int; x

declera variableName sco type;

type variableName; (exempel, int x;)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid data type in C++?

char

int

float

string

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co creescha ina variabla constanta en C++?

Utilisescha la parola 'final', p.ex. 'final int variableName = value;'

Utilisescha la parola 'const', p.ex. 'const int variableName = value;'

Dichara la variabla senza nagina parola, p.ex. 'int variableName = value;'

Utilisescha la parola 'static', p.ex. 'static int variableName = value;'

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to denote a single-line comment in C++?

# comment

/* comment */

// comment

//

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which control structure is used for looping in C++?

for, while, do-while

switch

if-else

goto

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Che è l'output dal suandant code: int x = 5; cout << x++;?

5.0

4

6

5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co declerais in array d'integers en C++?

int myArray[10];

myArray int[10];

array myArray;

int[10] myArray;

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Che è il scopo da l'istrucziun 'if' en C++?

Per declerar variablas en C++

Per definir ina funcziun en C++

Per crear ciclus en C++

Il scopo da l'istrucziun 'if' en C++ è da executar code cun condition basà sin ina expressiun boolean.

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for logical AND in C++?

||

&&

&

and

10.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co è il mod correct da definir ina funcziun en C++?

function_name return_type(parameter_list) { // function body }

function_name(parameter_list) return_type { // function body }

function return_type_name(parameter_list) { // body }

return_type function_name(parameter_list) { // function body }

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?