Search Header Logo

Basic C Programming - Data Types

Authored by Hafizul Hasmie

Education

12th Grade

Used 8+ times

Basic C Programming - Data Types
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the range of values that can be stored in an 'int' data type?

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

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

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

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

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store decimal numbers in C?

int

float

double

char

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many bytes are occupied by a 'char' data type in C?

2

1

4

8

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword used to declare a floating-point variable in C?

decimal

double

real

float

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of a 'float' data type in C?

16 bytes

8 bytes

4 bytes

2 bytes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store single characters in C?

char

int

float

string

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the range of values that can be stored in a 'short int' data type?

-16,384 to 16,383

-65,536 to 65,535

-128 to 127

-32,768 to 32,767

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?