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
16.
Assuming that k is an integer what would the result of following expression in C
k = 2* 3 / 5 + 4 / 4 + 8 - 2 - 4 / 8
k = 2* 3 / 5 + 4 / 4 + 8 - 2 - 4 / 8
Answer: Option
Explanation:
k = 1 + 1 + 8 - 2 - 0 = 8 because k is an integer.
17.
Which of the following is a valid real constant?
Answer: Option
Explanation:
It is the only one with decimal point.
18.
Which of the following is a valid real constant?
Answer: Option
Explanation:
It is the only one with decimal and without comma.
19.
Consider the following program in C
The final result would be k =
int k
float b ;
k = 3
b = 10.1
k = k / b
The final result would be k =
Answer: Option
Explanation:
Since K is int hence answer is 0.
20.
The decimal equivalent of binary 1101.11 is
Answer: Option
Explanation:
Convert to decimal.
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers