Placement papers on C - Set 2
1. Can you use the fprintf() to display the output on the screen?
Yes
No
View Answer / Hide Answer2. The function that calls itself for its processing is known as.
Inline Function
Nested Function
Overloaded Function
Recursive Function
View Answer / Hide AnswerANSWER: Recursive Function
3. In C, if you pass an array as an argument to a function, what actually gets passed?
Value of elements in array
First element of the array
Base address of the array
Address of the last element of array
View Answer / Hide AnswerANSWER: Base address of the array
4. The library function used to find the last occurrence of a character in a string is
strnstr()
laststr()
strrchr()
strstr()
View Answer / Hide Answer5. Who calls to the fuction main()
kernel
operating system
cpu
ALU
View Answer / Hide Answer6. What is the result of 16>>2?
4
8
3
0
View Answer / Hide Answer7. The size of a structure can be determined by
a. size of variable name
b. size of (struct tag)
Only a
Only b
Both a and b
None of these options
View Answer / Hide Answer8. A program is a:
Javascript for a theatrical play
Set of implementations
A list of instructions (actions) to accomplish a task.
What you watch on TV
View Answer / Hide AnswerANSWER: A list of instructions (actions) to accomplish a task.
9. In mathematics and computer programming, which is the correct order of mathematical operators ?
Addition, Subtraction, Multiplication, Division
Division, Multiplication, Addition, Subtraction
Multiplication, Addition, Division, Subtraction
Addition, Division, Modulus, Subtraction
View Answer / Hide AnswerANSWER: Division, Multiplication, Addition, Subtraction
10. Which of the following cannot be checked in a switch-case statement?
Character
Integer
Float
enum
View Answer / Hide Answer