Quiz on Data Types in C

Quiz on Data Types in C

University

14 Qs

quiz-placeholder

Similar activities

C++ Basics (1)

C++ Basics (1)

University

12 Qs

SAINS KOMPUTER 1.3

SAINS KOMPUTER 1.3

University

11 Qs

Cpp programming quiz 1 : get started with basics

Cpp programming quiz 1 : get started with basics

University

11 Qs

CODE CAREER

CODE CAREER

University

9 Qs

Methods

Methods

University

11 Qs

wed   программы

wed программы

University

10 Qs

Rapid Round 1

Rapid Round 1

University

10 Qs

Sintaxis en C

Sintaxis en C

University

15 Qs

Quiz on Data Types in C

Quiz on Data Types in C

Assessment

Quiz

Computers

University

Medium

Created by

Satheesh D

Used 1+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an 'int' data type in C on a 32-bit GCC compiler?

2 bytes

4 bytes

1 byte

8 bytes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a user-defined data type in C?

int

float

char

struct

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the range of 'unsigned short int' in C?

-32,768 to 32,767

0 to 65,535

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

0 to 4,294,967,295

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which format specifier is used for 'double' data type in C?

%f

%lf

%d

%c

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'void' data type represent in C?

A character

No value

A floating-point number

A numeric value

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of 'long double' in C?

8 bytes

16 bytes

12 bytes

4 bytes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a primitive data type in C?

struct

char

float

int

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?