TEB2132 Lecture 3 Quiz

TEB2132 Lecture 3 Quiz

University

10 Qs

quiz-placeholder

Similar activities

Game dulu sebelum QUIZ 1

Game dulu sebelum QUIZ 1

University

14 Qs

Percabangan

Percabangan

University

10 Qs

Programación Web

Programación Web

University

10 Qs

DBMS Group 8 Review Quiz

DBMS Group 8 Review Quiz

University

15 Qs

Ulangan Informatika Kelas 7 (with Bu Mey)

Ulangan Informatika Kelas 7 (with Bu Mey)

7th Grade - University

15 Qs

HCI GOMS quiz

HCI GOMS quiz

University

15 Qs

Fundamentos de Redes de Datos

Fundamentos de Redes de Datos

University

10 Qs

Pre Test - Dasar Sistem IoT

Pre Test - Dasar Sistem IoT

11th Grade - University

10 Qs

TEB2132 Lecture 3 Quiz

TEB2132 Lecture 3 Quiz

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Siti Nurlaili Karim

FREE Resource

AI

Enhance your content in a minute

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

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

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?