Miraclesoft Placement Papers
Placement Papers for All Companies
Miraclesoft Technical C Paper
Q1. The C language terminator is
d. exclamation mark
Q2. Is the following code legal?
Q3. What is a different between a declaration and a definition of a variable?
a. Both can occur multiple times, but a declaration must occur first.
b. There is no difference between them.
c. A definition occurs once, but a declaration may occur many times.
d. A declaration occurs once, but a definition may occur many times.
e. Both can occur multiple times, but a definition must occur first.
Q4. C is which kind of language?
Q5. Which of the following are java primitive types?
Q6. In a C expression, how is a logical AND represented?
Q7. Which of the following are legal statements?(select any 2)
a. String s=(string)100;
b. Float f=1.2f
c. double d=0;
d. String str=”s”;
int x = 2 * 3 + 4 * 5;
What value will x contain in the sample code above?
Q9. Main must be written as
a. The first function in the program.
b. Second function in the program.
c. Last function in the program.
d. Any where in the program.
Q10. What is the output of the program?