7) What are the various types of real data type in C language?
A.long double, short int
B.float, long double
C.short int, double, long int, float
D.float, double, long double
8) The statement used for printing \n on the screen is:
A.printf(“”);
B.printf(‘\n’);
C.printf(“\\n”);
D.printf(“n\”);
9) Which of the following are declarations?
float square (float x){?}
double pow(double, double);
extern int x;
Options are given below:
A.1
B.1 and 3
C.2
D.1 and 2
10) Which header file is used to define input/output functions, macros and prototypes?
A.memory.h
B.math.h
C.dos.h
D.stdio.h
11) Single line comment in C language begins with _______
A.:
B.//
C.*/
D./*
12) What is the data type of “PI” for the below statement:
#define PI 3.141
A.Float data type
B.Double datatype
C.There is no data type associated with PI
D.Syntax error, semi colon is missing with definition of PI
Warning: Undefined variable $in_same_cat in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27
Warning: Undefined variable $excluded_categories in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27