Finance
Analytics
Technology
Marketing
Career Services
Menu
Finance
Analytics
Technology
Marketing
Career Services
Full Stack Development - Programming basics
0
Hours
0
Minutes
0
Seconds
Programming basics - 10 questions
Duration - 20 mins
Hidden
Email
Untitled
1. A program after compilation gives 0 errors, 0 warnings. This means:
a) Program has no functional errors
b) Program has no syntax errors
c) Any one statement is true
d) Both the statements are true
2. The name of the variable used in one function cannot be used in another function.
True
False
3. What will be the output of the following code?
a) Compile time error
b) -1
c) 1
d) Implementation defined
4. Which of the following is not an arithmetic operation?
a) a * = 10;
b) a / = 10;
c) a ! = 10;
d) a % = 10;
5. Which of the following data type will throw an error on modulus operation(%)?
a) char
b) short
c) int
d) float
6. What will be the output of the following code?
a) hi
b) hello
c) no
d) error
7. What will be the output of the following C code?
a) 2
b) 3
c) 4
d) 5
8. How many times i value is checked in the following C code?
a) 2
b) 3
c) 4
d) 1
9. What will be the output of the following C code?
a) 1
b) 2
c) 3
d) 4
10.What will be the output of the following code?
a) hi
b) Run time error
c) Nothing
d) Varies
Δ