char , bool and Operators

char , bool and Operators

University

18 Qs

quiz-placeholder

Similar activities

Kelas 9 - Halaman 23 (UH Bab 1)

Kelas 9 - Halaman 23 (UH Bab 1)

9th Grade - University

20 Qs

Algoritma Struktur Data

Algoritma Struktur Data

University

20 Qs

Problem Solving & Programming Design (part 4)

Problem Solving & Programming Design (part 4)

University

17 Qs

Introduction to SQL Quiz

Introduction to SQL Quiz

University

17 Qs

Modelo OSI - Capas Sena

Modelo OSI - Capas Sena

University

18 Qs

PROG2013_Quiz_Unit1a

PROG2013_Quiz_Unit1a

University

15 Qs

Pretest Riview pembelajaran sistem operasi dan komputer

Pretest Riview pembelajaran sistem operasi dan komputer

10th Grade - University

20 Qs

char , bool and Operators

char , bool and Operators

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

Fatma Metwally

Used 4+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. What is the size of a char datatype in C++?

16 bits

c) 1 byte

1 kilobyte

2 bytes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. What is the value of the ASCII code for the character 'A'?

64

66

65

67

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

3. What will be the output of the following code?

3

a) 67

C

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. Which of the following is a valid bool value in C++?

'true'

1

"true"

True

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Which operator is used to check if two values are equal in C++?

!=

==

=

<=

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

6. What is the correct result of the following expression?

15

21

11

7

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

8. What does the sizeof operator return for the bool datatype?

2 bytes

a) 1 byte

8 bytes

4 bytes

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?