BASIC CODING QUESTION
1. One loop inside the body of another loop is called .
A. Simple loop
B. Nested loop
C. Loop
D. Double loop
Ans (b)
2. A Syntax Error is ?
a. An error you will never find
b. An error you find at the end when the program gives out a wrong
value due to logic error.
c. An error caused by language rules being broken.
d. An error due to user error
Ans (c)
3. What does this equation mean A != t?
a. A is assigned t
b. A and t are equal
c. A is not equal to t
d. t is add to A
Ans (c)
4. int hold decimal value ?
a. true
b. False
Ans (a)
5. what is FIFO ?
a. FIRST IN FIRST OUT
b. FIRST IN FEW OUT
c. FEW IN FIRST OUT
d. FEW IN FEW OUT
Ans (a)
6. Entering a comment in code is useless task , it will not help in any way
state true or false ?
a. True
b. False
Ans (b)
7. A do while and while loop are same ?
a. True
b. False
Ans (b)
8. A memory location that hold a single letter or number is called ______ ?
a. int
b. Double
c. Char
d. Float
Ans (c)
9. A short section of code written to complete a specific task ?
a. Loop
b. Function
c. Array
d. Buffer
Ans (b)
10. Which data structure use LIFO ?
a. Array
b. Stack
c. Char
d. Int
Ans (b)