Hii friends : In this post we will be discuss c programming mcqs(multiple choice question)who has taken from diffrent chapter are c programming.if you solve this question honestly then you improve you knowledge .thease question are expected in diffrent competitons exam,if you have any query to related this question then left acomment . i promised replied your answer within 5 hours. thank you
1.A command that lets you change one or more fields in a record is look up. (False)
2.In relational schema each tuple is divided into fields called relations. (False)
3.The best average SORTING behavior is shown by merge sort. (True)
4.The data structure that is needed to convert infix notation to prefix notation is graph. (False)
5.The best case and worst case time for searching an element using linear search is 1, n. (True)
6.Forest is a set of N>=0 disjoint trees, which are obtained when root is removed. (True)
7.PERT graph is a graph used to perform PERT calculation.(False)
8. Priority queue is a queue that is used to store priority data. (False)
9.A symmetric diagraph is a directed graph such that for every edge VW there is reverse edge WV. (True)
10.Maximum degree in any vector in a graph with n vertices is n-1 (True)
11. Functions can be called either by value or reference. (True)
12. Comma operator is used for separation. (True)
13. The size of a structure can be determined by both size of variable name and size of (struct tag). (True)
14.While loop is post tested loop. (False)
15.All of the following are valid expressions in C.
a = 2 + (b = 5);
a = b = c = 5;
a = 11 % 3; (True)
16.A variable is a string that varies during program execution.(False)
17.void (*ptr)() is a pointer to a function which receives nothing and returns nothing. (True)
18.Calling a uninitialized variable will provide zero value. (False)
19.C language cannot be used for database manipulation. (True)
20.In the expression a=b=5 the order of Assignment is NOT decided by Associativity of
operators.(False)
21.The formal arguments must be always variables. (True)
22.There is only one ternary operator in C. (True)
23.malloc( ) is used to allocate memory run time. (True)
24.sizeof is function that returns size of variables in bytes. (True)
25.int a[4]; Here 4 indicates size of an array and a[4]=3; here 4 represents 5th element. (True)
26. In self-referential structure, pointer is required as a data member. (True)
27. Union is a concept borrowed from array(False)
28.default keyword is mandatory in switch case structure(False)
29.Functions cannot return more than one value at a time. (True)
30.Functions can be called either by value or reference. (True)
31.Does the data type of all elements in the union will be same?(False)
32.We can allocate a 2-Dimensional array dynamically. (True)
33.The function free() is used to release dynamically allocated memory back to the heap for possible reuse. (True)
34.If p is a pointer then the expression p = p + 1;
adds 1 to the value of p regardless of p's type. (True)
35.The string "Bilbo Baggins", may be stored in an
array of 13 characters(False)
36.typedef is used to give a new name to a known
data type. (True)
37.The lifetime of a static variable is the duration
of your program's execution. (True)
38. Are the three declarations char **apple, char *apple[], and char apple[][] same?(False)
39.The expressions on the both sides of a logical operator are always evaluated.(False)
40.exit() function is defined in stdio.h header file.(False) for( ; i<2; i++); statement will result in compilation error.(False)
41.At the time of initialization of an array, dimension of the array need not to be specified. (True)
42.Actual parameters are used at the time of function calling. (True)
43.static storage class is used to make a variable global. (True)
44.Array is passed to a function using 'call by value' method.(False)
45.Pointers are used in a program to allocate memory before the program execution(False)
46. All the members of a union should be of same type.(False)
47.The function strlen() computes the length of an argument string excluding the null character. (True)
48.Two pointer variables cannot be subtracted(False)
49.(1.0) is an example of double constant and float constant.(False)
50. #define is used to define symbolic constant. (True)
51. const is a keyword that is used to define symbolic constant. (True)
52.Two dimensional array is stored in memory physically as one-dimensional array. (True)
53.size of a pointer, which points to a structure, depends on size of a structure.(False)
54.All the members of a union share the same memory location. (True)
55. break keyword is mandatory in switch case structure. (True)
56. Using fprintf function, we can print on the standard output device.(False)
57. It is better to use array than a linked list, when there is a fixed size list in a program. (True)
58. Are the expression *ptr++ and ++*ptr are same? (False)
59.3 += 3; evaluates to 6. (False)
60.The default precision for printing of floating point values is 6. If the floating-point number is more precise than 6 digits, it will be rounded. (True)
61.The following block of code sums up an input series of grades (terminated by -1).
while( grade != -1 )
total = total + grade;
counter = counter + 1;
printf( "Enter grade, -1 to end: " );
scanf( "%d", &grade ); (True)
62.A double data type number uses 64 bits giving a precision of 14 digits. (True)
63.Every C program must have at least one main ( ) function section. (True)
64.The precedence of arithmetic operators is (from highest to lowest) %, *, /, +, – (True)
65.Is the following statement valid in C? int my_num=100,000; (False)
66.void (*ptr)(int); ptr is ptr is pointer to int that converts its type to void. (False)
67. We need to recompile the program before executing it even if there is no change in the source code. (False)
68.Function can be called either by value or reference. (True)
69.A function cannot be defined inside another function. (True)
70.Are the three declarations char **apple, char
*apple[], and char apple[][] same?(False)
71.A long double can be used if range of a double is not enough to accommodate a real number. (True)
72.malloc() allocates memory from the heap and not from the stack. (True)
73.While calling the fprintf() function in the format string conversion specifier %s can be used to write a character string in capital letters.(False)
74.A union cannot be nested in a structure(False)
75.The modulus operator cannot be used with a long double. (True)
76.If the file to be included doesn't exist, the preprocessor flashes an error message. (True)
77.A linked list is a linear data structure where each element is a separate object (True)
78.The expressions *ptr++ and ++*ptr are same. (False)
79.C provides the strcmp ( ) function to compare strings. (True)
80. A function cannot be defined inside another function. (True)
81.Goto can be used to jump from main function to other function. (True)
82.The default parameter passing mechanism is call by value. (True)
83. The expressions arr and &arr same for an array of 10 integers. (False)
84.Memory allocation can be done by using keyword ‘create’. (False)
85.The expressions int fun(intarr[]); and
int fun(intarr[2]); are same. (True)
86.There can be two return statements inside a function. (False)
87.Break statement can be used to exit a loop. (True)
Also read this article :- click here
total = total + grade;
counter = counter + 1;
printf( "Enter grade, -1 to end: " );
scanf( "%d", &grade ); (True)
62.A double data type number uses 64 bits giving a precision of 14 digits. (True)
63.Every C program must have at least one main ( ) function section. (True)
64.The precedence of arithmetic operators is (from highest to lowest) %, *, /, +, – (True)
65.Is the following statement valid in C? int my_num=100,000; (False)
66.void (*ptr)(int); ptr is ptr is pointer to int that converts its type to void. (False)
67. We need to recompile the program before executing it even if there is no change in the source code. (False)
68.Function can be called either by value or reference. (True)
69.A function cannot be defined inside another function. (True)
70.Are the three declarations char **apple, char
*apple[], and char apple[][] same?(False)
71.A long double can be used if range of a double is not enough to accommodate a real number. (True)
72.malloc() allocates memory from the heap and not from the stack. (True)
73.While calling the fprintf() function in the format string conversion specifier %s can be used to write a character string in capital letters.(False)
74.A union cannot be nested in a structure(False)
75.The modulus operator cannot be used with a long double. (True)
76.If the file to be included doesn't exist, the preprocessor flashes an error message. (True)
77.A linked list is a linear data structure where each element is a separate object (True)
78.The expressions *ptr++ and ++*ptr are same. (False)
79.C provides the strcmp ( ) function to compare strings. (True)
80. A function cannot be defined inside another function. (True)
81.Goto can be used to jump from main function to other function. (True)
82.The default parameter passing mechanism is call by value. (True)
83. The expressions arr and &arr same for an array of 10 integers. (False)
84.Memory allocation can be done by using keyword ‘create’. (False)
85.The expressions int fun(intarr[]); and
int fun(intarr[2]); are same. (True)
86.There can be two return statements inside a function. (False)
87.Break statement can be used to exit a loop. (True)
Source: Nielit o level old paper
Also read this article :- click here
0 Comments
Hey, What do you think about this post