Quiz on Data Types in C

Quiz on Data Types in C

University

15 Qs

quiz-placeholder

Similar activities

Chương 1 - Giới thiệu ngôn ngữ lập trình

Chương 1 - Giới thiệu ngôn ngữ lập trình

University

19 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

Variables, Tipos de Dato, Lectura y Escritura C++

Variables, Tipos de Dato, Lectura y Escritura C++

7th Grade - Professional Development

12 Qs

C++ Assesment 1

C++ Assesment 1

University

20 Qs

Uces- Simulacro Parcial 1

Uces- Simulacro Parcial 1

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

EXTENSION UNIVERSITARIA DE ALGORITMOS Y PROGRAMACION

EXTENSION UNIVERSITARIA DE ALGORITMOS Y PROGRAMACION

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 1+ 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?