1. The use of the break statement in a switch statement is | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
2. Which type of statement does not occur in computer programs? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
3. The newline character is always included between | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
4. A function that returns no values to the program that calls it is ________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
5. The keyword used to define a structure is ________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
6. Header files often have the file extension ________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
7. The step-by-step instructions that solve a problem are called _________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
8. When you pass a variable __________, C Language passes only the contents of the variable to the receiving function | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
9. What does C Language append to the end of a string literal constant? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
10. An array name is a __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
11. To enter a comment in a C Language program, you begin the comment with ________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
12. Which of the following is invalid string constant? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
13. You mark the beginning of a function's block of code with the _________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
14. Sending a copy of data to a program module is called __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
15. Only passing by _________ and passing by _________ allow the function to modify the argument in the calling program. | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
16. Which of the following assigns the number 5 to the area variable? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
17. A fundamental type such as int or double is a __________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
18. Which of the following is the inequality operator? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
19. One of the relational operators in the C language is | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
20. One of the logical operators in the C language is represented by the symbol | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
21. In C, the address operator is the following symbol _________ | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
22. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
23. What are the types of linkages in C Language? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
24. Which of the following special symbol allowed in a variable name in C Language? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
25. Is there any difference between following declarations? extern int fun(); int fun(); |
||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
26. How would you round off a value from 1.66 to 2.0 in C Language? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
27. By default a real number is treated in C Language as a | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
28. Is the following statement a declaration or definition in reference to C Language? extern int i; |
||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
29. Identify which of the following are declarations in C Language. 1 : extern int x; 2 : float square ( float x ) { ... } 3 : double pow(double, double); |
||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
30. In the following C language program where is the variable a getting defined and where it is getting declared? #include int main() { extern int a; printf("%d\\n", a); return 0; } int a=20; |
||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
31. When we mention the prototype of a function in C Language? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
32. Combine the following two statements into one? char *p; p = (char*) malloc(100); |
||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
33. In which header file is the NULL macro defined? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
34. How many bytes are occupied by near, far and huge pointers (Dos)? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
35. If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
36. What would be the equivalent pointer expression for referring the array element a[i][j][k][l] | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
37. A pointer is | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
38. The operator used to get value at address stored in a pointer variable is | ||||||||
Free MCQs www.sharemcq.com
Answer: Option A
Explanation:
Available Soon.
|
39. Which bitwise operator is suitable for turning off a particular bit in a number? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
40. Which bitwise operator is suitable for turning on a particular bit in a number? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
41. Which bitwise operator is suitable for checking whether a particular bit is on or off? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
42. Which header file should be included to use functions like malloc() and calloc()? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option B
Explanation:
Available Soon.
|
43. What function should be used to free the memory allocated by calloc() ? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
44. Specify the 2 library functions to dynamically allocate memory? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
45. Input/output function prototypes and macros are defined in which header file? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
46. Which standard library function will you use to find the last occurrence of a character in a string in C? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option D
Explanation:
Available Soon.
|
47. What is stderr ? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
48. What will the function randomize() do in Turbo C under DOS? | ||||||||
Free MCQs www.sharemcq.com
Answer: Option C
Explanation:
Available Soon.
|
No comments:
Post a Comment
Your Feedback is hearty Requested to make the MCQs Collection better.