Quiz on Data Types in C

Quiz on Data Types in C

University

15 Qs

quiz-placeholder

Similar activities

IF Belajar Pertemuan 5 Variabel, IF

IF Belajar Pertemuan 5 Variabel, IF

University

20 Qs

Uces- Simulacro Parcial 1

Uces- Simulacro Parcial 1

University

20 Qs

Oytie_CoreJava_Quiz

Oytie_CoreJava_Quiz

University

20 Qs

Pop Quiz #2 Topic 2

Pop Quiz #2 Topic 2

University

10 Qs

Ujian Semester Pemprograman Dasar

Ujian Semester Pemprograman Dasar

University

20 Qs

Chương 2 - Biểu thức và thao tác cơ bản

Chương 2 - Biểu thức và thao tác cơ bản

University

15 Qs

PTS PEMROGRAMAN DASAR

PTS PEMROGRAMAN DASAR

University

15 Qs

Java Reserved Words

Java Reserved Words

University

10 Qs

Quiz on Data Types in C

Quiz on Data Types in C

Assessment

Quiz

Education

University

Hard

Created by

NARENDRA BAVISETTI

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid C data type for representing a floating-point number?

int

char

float

bool

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an int data type on most 32-bit systems?

1 byte

2 bytes

4 bytes

8 bytes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type would you use to store a single character in C?

char

int

float

double

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the range of values for an unsigned int in C?

-2,147,483,648 to 2,147,483,647

0 to 4,294,967,295

-128 to 127

0 to 255

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types has the highest precision for floating-point numbers?

float

double

long double

int

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of a char data type in C?

1 byte

2 bytes

4 bytes

8 bytes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type should be used to store large integers that exceed the range of int?

short

long

long long

float

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?