Search Header Logo

CP- UNIT2 TEST

Authored by K vijina

Other

12th Grade

Used 3+ times

CP- UNIT2 TEST
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

38 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following format specifier is used to represent double datatype?

%f
%lf
%ld
%d

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Data types are used to store data. Which of the datatype has no value?

float
int
char
void

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many bytes will long double data type occupy?

4
8
10
16

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Keywords are pre-defined words in a C compiler. How many keywords are in C.

30
31
32
33

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Format specifier tells compiler the datatype of the variable. What format specifier is used for string datatype?

%c
%d
%f
%s

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true for variable names in C?

They can contain alphanumeric characters as well as special characters
It is not an error to declare a variable to be one of the keywords(goto, static)
Variable names cannot start with a digit
Variable name can start with $

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Keywords are pre-defined words in a C compiler. How many keywords are in C.

30
31
32
33

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?