TEB2132 Lecture 3 Quiz

TEB2132 Lecture 3 Quiz

University

10 Qs

quiz-placeholder

Similar activities

BES 043 Quiz

BES 043 Quiz

University

10 Qs

placement g2 quiz-1

placement g2 quiz-1

University

15 Qs

DSA (Quiz 1) Arrays and Linked Lists

DSA (Quiz 1) Arrays and Linked Lists

University

15 Qs

Comandos de Repetição - Parte II

Comandos de Repetição - Parte II

University

8 Qs

Review Quiz

Review Quiz

University

10 Qs

Fundamentals of HTML and CSS

Fundamentals of HTML and CSS

University

10 Qs

CPP-TESTING

CPP-TESTING

University

9 Qs

PENDIDIKAN TEKNIK INFORMATIKA

PENDIDIKAN TEKNIK INFORMATIKA

University

15 Qs

TEB2132 Lecture 3 Quiz

TEB2132 Lecture 3 Quiz

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Siti Nurlaili Karim

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is NOT a control structure in C++?

Sequence

Repetition

Execution

Selection

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the type of operator != in C++?

relational

equality

logical

expression

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A logical expression && returns 1 (true) if

Both operands are 1 (true)

Both operands are 0 (false)

One operand is 1 (true)

One operand is 0 (false)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is commonly used in an if condition to check equality in C++?

=

!=

===

==

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to exit a switch case immediately after executing a statement?

exit

break

stop

return

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if the break statement is omitted in a switch case?

Program ends immediately

Only the current case runs

Execution continues into the next case

Compilation error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types can be used in a switch statement in C++?

bool

char

float

double

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?