TEB2132 Lecture 3 Quiz

TEB2132 Lecture 3 Quiz

University

10 Qs

quiz-placeholder

Similar activities

CHFI Module 1

CHFI Module 1

University

10 Qs

Web Application - PHP Repetition

Web Application - PHP Repetition

University

15 Qs

C Programming Quiz

C Programming Quiz

University

15 Qs

ADBM_Quiz_2_C

ADBM_Quiz_2_C

University

10 Qs

Aula07 - Matrizes

Aula07 - Matrizes

University

12 Qs

 BAB 4 | 4.1 KOD ARAHAN | SUBTOPIK 4.1.2

BAB 4 | 4.1 KOD ARAHAN | SUBTOPIK 4.1.2

2nd Grade - University

15 Qs

Session 15 + 16 : Function

Session 15 + 16 : Function

University

13 Qs

Tin 9 Bài 8. Hàm SUMIF

Tin 9 Bài 8. Hàm SUMIF

9th Grade - University

10 Qs

TEB2132 Lecture 3 Quiz

TEB2132 Lecture 3 Quiz

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

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

Already have an account?