char , bool and Operators

char , bool and Operators

University

18 Qs

quiz-placeholder

Similar activities

Google Sheets Quiz - 17/09/2024

Google Sheets Quiz - 17/09/2024

University

20 Qs

PRELIMS Quiz Game (FOS)

PRELIMS Quiz Game (FOS)

University

15 Qs

Data Science Quiz1

Data Science Quiz1

University

20 Qs

Pemrograman Blokly

Pemrograman Blokly

9th Grade - University

20 Qs

Quiz-1-Set-1-OOPs-CPP

Quiz-1-Set-1-OOPs-CPP

University

20 Qs

Mock-Up Academy Programming Online Test

Mock-Up Academy Programming Online Test

6th Grade - University

20 Qs

Python Data Types Quiz

Python Data Types Quiz

University

20 Qs

Compro2 (Midterm) File, Input, Output

Compro2 (Midterm) File, Input, Output

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?