C Data Types MCQ

C Data Types MCQ: C Language Multiple Choice Questions

C Data Types MCQ. Multiple-Choice Questions and Answers on Data types and Storage in C language. For History and Basics of C language visit MCQ History Of C Language

 

C Data Types MCQ

 

What is a C Storage Class ??

A) C Storage decides where to or which memory store the variable.
B) C Storage Class decides what is the default value of a variable.
C) C Storage Class decides what is the Scope and Life of a variable.
D) All the above

 

Identify wrong C Keywords below ??

A) auto, double, int, struct
B) break, else, long, switch
C) case, enum, register, typedef
D) char, extern, intern, return

 

Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ??

A. rem = 3.14 % 2.1;
B. rem = modf(3.14, 2.1);
C. rem = fmod(3.14, 2.1);
D. Remainder cannot be obtain in floating point division

 

The wrong C Keywords below are ??

A) union, const, var, float
B) short, unsigned, continue, for
C) signed, void, default, goto
D) sizeof, volatile, do, if

 

Every C Variable must have ??

A) Type
B) Storage Class
C) Both Type and Storage Class
D) Either Type or Storage Class

 

C Data Types MCQ

 

Identify wrong C Keywords below ??

A) static, while, break, goto
B) struct, construct, signed, unsigned
C) short, long, if, else
D) return, enum, struct, do

 

What are the types of linkages ??

A. Internal and External
B. External, Internal, and None
C. External and None
D. Internal

 

Find a correct C Keyword below ??

A) breaker
B) go to
C) shorter
D) default

 

Which of the following is correct ??

A) Variables of type auto are initialized fresh for each block or function call
B) Variables of type static are initialized only the first time the block or function is called
C) Variables of the type register are initialized each time the block or function is executed
D) All the above

 

Find a correct C Keyword below ??

A) work
B) case
C) constant
D) permanent

 

C Language MCQ 

 

Which of the following special symbol allowed in a variable name ??

A. * (asterisk)
B. | (pipeline)
C. – (hyphen)
D. _ (underscore)

 

The correct C Keyword is ??

A) Float
B) Int
C) Long
D) double

 

Find a C Storage Class below ??

A) static
B) auto
C) register & extern
D) All the above

 

Types of Integers are ??

A) short
B) int
C) long
D) All the above

 

How would you round off a value from 1.66 to 2.0 ??

A. ceil(1.66)
B. floor(1.66)
C. roundup(1.66)
D. roundto(1.66)

 

C Language MCQ 

 

Types of Real numbers in C are ??

A) float
B) double
C) long double
D) All the above

 

What is the default C Storage Class for a variable ??

A) static
B) auto
C) register
D) extern

 

Signed and unsigned representation is available for ??

A) short, int, long, char
B) float, double, long double
C) A & B
D) None of the above

 

By default, a real number is treated as a ??

A. float
B. double
C. long double
D. far double

 

Size of a Turbo C C++ compiler is ??
A) 16 bit
B) 32 bit
C) 64 bit
D) 128 bit

C Language MCQ 

 

Choose the right answer ??

A) auto variable is stored in ‘Memory’.
a static variable is stored in ‘Memory’.
the extern variable is stored in ‘Memory’.
register variable is stored in ‘Memory’.

B) auto variable is stored in ‘Memory’.
a static variable is stored in ‘Memory’.
the extern variable is stored in ‘Memory’.
register variable is stored in ‘Register’.

C) auto variable is stored in ‘Register’.
a static variable is stored in ‘Register’.
the extern variable is stored in ‘Register’.
register variable is stored in ‘Memory’.

D) auto variable is stored in ‘Register’.
a static variable is stored in ‘Register’.
the extern variable is stored in ‘Register’.
register variable is stored in ‘Register’.

 

Size of a GCC or Visual Studio C Compiler is ??

A) 16 bit
B) 32 bit
C) 64 bit
D) 128 bit

 

Is the following statement a declaration or definition ??
extern int i;

A. Declaration
B. Definition
C. Function
D. Error

 

Read More

Leave a Comment

Your email address will not be published. Required fields are marked *

error: Content is protected !!