Electronics and Communication Engineering - Microprocessors
Exercise : Microprocessors - Section 3
- Microprocessors - Section 1
- Microprocessors - Section 2
- Microprocessors - Section 3
- Microprocessors - Section 4
- Microprocessors - Section 5
- Microprocessors - Section 6
- Microprocessors - Section 7
- Microprocessors - Section 8
- Microprocessors - Section 9
- Microprocessors - Section 10
- Microprocessors - Section 11
- Microprocessors - Section 12
26.
Consider the following program in C
if a - 5.0, b = 2.0 and c = 3.0 the final result k =
int k;
float a, b, c;
k = a* b* c / 100 + 2.5 / 2 - 0.3 * 9
if a - 5.0, b = 2.0 and c = 3.0 the final result k =
Answer: Option
Explanation:
k = 0 + 1 - 2 = - 1 because k is an integer.
27.
A computer program is used to read N and print the sum 12 + 22 + 32 +.....+ N2. If N = 10, the print out will show the number
Answer: Option
Explanation:
SUM = 12 + 22 + 33 + 44 + 52 + 62 + 77 + 82 + 92 + 102 = 385.
28.
Which of the following arithmetic operations requires only one operand in FORTRAN 77?
Answer: Option
Explanation:
All other operations require two operands.
29.
Which of the following is not a valid variable name in C?
Answer: Option
Explanation:
First character is 1 which is not allowed.
30.
Which of the following array names is invalid in Fortran 77?
Answer: Option
Explanation:
Subscript not proper.
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers