Placement papers on C - Set 2

Placement papers on C - Set 2


1. Can you use the fprintf() to display the output on the screen?

Yes
No
View Answer / Hide Answer

ANSWER: Yes




2. The function that calls itself for its processing is known as.

Inline Function
Nested Function
Overloaded Function
Recursive Function
View Answer / Hide Answer

ANSWER: 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 Answer

ANSWER: 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 Answer

ANSWER: strrchr()




5. Who calls to the fuction main()

kernel
operating system
cpu
ALU
View Answer / Hide Answer

ANSWER: operating system




6. What is the result of 16>>2?

4
8
3
0
View Answer / Hide Answer

ANSWER: 8




7. 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 Answer

ANSWER: Both a and b




8. 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 Answer

ANSWER: 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 Answer

ANSWER: 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

ANSWER: Float


Post your comment

    Discussion

  • RE: Placement papers on C - Set 2 -Vaibhav (09/15/14)
  • 16>>2=8
    ans is wrong.

    ans:
    16>>2=4
  • RE: Placement papers on C - Set 2 -suhas (09/03/14)
  • 16>>2 results in 4............ but the answer given is wrong (8).