Basic C Programming - Data Types

Basic C Programming - Data Types

12th Grade

10 Qs

quiz-placeholder

Similar activities

3.1 Persekitaran Kod Arahan

3.1 Persekitaran Kod Arahan

8th - 12th Grade

15 Qs

Tipuri de date și variabile în C++

Tipuri de date și variabile în C++

9th Grade - University

6 Qs

Fun with Numpy

Fun with Numpy

9th - 12th Grade

10 Qs

แบบทดสอบก่อนเรียน การเขียนโปรแกรม

แบบทดสอบก่อนเรียน การเขียนโปรแกรม

12th Grade

15 Qs

Sains Komputer T4

Sains Komputer T4

12th Grade

12 Qs

Les grandes nombres

Les grandes nombres

6th Grade - University

10 Qs

các lệnh vào ra đơn giản

các lệnh vào ra đơn giản

9th - 12th Grade

15 Qs

Quizz Matematika  Kelas 7 Semester 2

Quizz Matematika Kelas 7 Semester 2

9th - 12th Grade

15 Qs

Basic C Programming - Data Types

Basic C Programming - Data Types

Assessment

Quiz

Education

12th Grade

Hard

Created by

Hafizul Hasmie

Used 8+ times

FREE Resource

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

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?