0% found this document useful (0 votes)
68 views2 pages

C Language - DMCA - Se

The document discusses a C programming course module that contains multiple choice questions, true/false questions, and fill in the blank questions about C programming concepts and syntax. It covers topics like data types, operators, functions, structures, pointers, and more.

Uploaded by

Pawan Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views2 pages

C Language - DMCA - Se

The document discusses a C programming course module that contains multiple choice questions, true/false questions, and fill in the blank questions about C programming concepts and syntax. It covers topics like data types, operators, functions, structures, pointers, and more.

Uploaded by

Pawan Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Dated: 21-02-22

C Programming
Course Code: DMCA
NOTE:
1. There are four parts in this module/paper. This module contains MCQ, true/false &
fills in the blanks or match making questions.
2. All questions are compulsory
3. Don’t use whitener/correction pen.
4. No number will be given for overwriting or cutting

1. Multiple Choices. (1X20)

1) An escape sequence commence with? 12) The modulus operator uses ___ character?
a) + b) *
a) \ c) / d) %
b) /
c) ?
d) #
13) What does flowchart represent in an algorithm?
a) execution b) statement
2) The errors that can be pointed out by the compiler are? c) program d) graphical
a) Syntax error
b) Semantic error 14) Which symbol being used in decision point in a
c) Logical error flowchart?
d) None of the above a) Circle b) diamond
c) rectangle d) parallelogram
3)Which keyword is used to prevent any changes in the variable
within a C program?
a) immutable b) mutable 15) Choose a correct statement about C structures.?
c) const d) volatile a) A structure enables display of folder structure in OS.
B) A structure enables erasing contents in a folder in OS.
4) What is the size of double data type? c) A structure enables to detect and respond to mouse clicks.
a) 1 b) 4 d) All the above
c) 8 d) None of Above
16)The default access specifer for the class members is?
5) Which symbol define the end of a statement? a) public b) private
a) colon b) Semi-Colon
c) protected d) None of the above.
c) back-slash d) none of above

6) Which of the following is a reference data type? 17) #include<stdio.h> what .h represent?
a) Int b) float a) hash b) home
c) double d) String c) header file d) none of Above

7) sizeof() function uses which type of format specifier? 18) What does conio.h represent?
a) %d b) %f a) console Input/Output b) connect Input/Output
c) %lf d) none of above c) constructor Input/output d) class Input/output
8) Which of the following keyword in C let’s remain in loop,
but skip ahead to the next iteration? 19) What is a generic class?
a) break b) goto a) Function template b) Class template
c) continue d) none of above c) Inherited class d) none of above

9) Which of the following is the reference data type? 20) How do you accept a Multi Word Input in C Language.?
a) int b) union a) SCANF b) GETS
c) double d) char
c) GETC d) FINDS
10) Which keyword used to declare local variable to global
variable?
a) const b) global
c) static d) none of above

11) What is the Format specifier used to print a String or


Character array in C Printf or Scanf function.?
a) %c b %C
c) %s d) %W
Dated: 21-02-22
2. TRUE OR FALSE (1 X 10)

1) If statement is an example of iteration in C.


2) Functions can return enumeration constants in C.
3) String is a primitive data type.
4) // is used for single line comments.
5) #include<stdio.h> gives you the function getch();
6) Auto, static, extern and register are called Storage specifier.
7) typedef is commonly used with structures.
8) The members of a structure may also be structures.
9) A recursive function does not includes a base case, or exit condition.
10) We can have varying number of arguments for the overloaded form of () operator..
3. Match words and phrases in column X with the closest related meaning/words(s) phrases(s) in column
Y.: (1X10)
X Y
1 Right Shift operation >> is equivalent to A A variable used to store address of other variable
2 C is a which level language.? B Division by 2
3 A C program is a combination of. C MOD
4 tolower() D High Level
5 exit(0) E converts a uppercase alphabet to an lowercase
alphabet.
6 Constants F Declare a function
7 % G Exit program
8 reading in a multi-word string H Fixed values
9 pointer I gets()
10 The prototype of a function can be used to, J Statements, Functions, Variables

4. Fill in the Blanks (1 X 10)

1) #include <stdio.h> is ____directive.


2) The standard header _______ is used for variable list arguments (…) in C..
3) ___ header file can be used to define input/output function prototypes and macros.
4) Objects created using new operator are stored in __ memory.
5) Initially C language was developed to be used in __operating System.
6) Signed, unsigned, long and short are some of the ___.
7) Turbo C++ uses the compiler called ___.
8) Structure uses the type definition called __.
9) __ is the keyword to set the constant of variable.
10) An __ is a data structure that stores a collection of related values that are all the same type.

You might also like