Question

Consider the following in C

1. An arithmetic operation between integer and an integer gives integer as the result.
2. An arithmetic operation between a real and a real constant gives real constant as the result.
3. An arithmetic operation between an integer constant and a real constant is not valid.

Which of the above are correct?

a.

All

b.

1 and 2 only

c.

2 and 3 only

d.

1 and 3 only

Answer: (b).1 and 2 only

Interact with the Community - Share Your Thoughts

Uncertain About the Answer? Seek Clarification Here.

Understand the Explanation? Include it Here.

Q. Consider the following in C 1. An arithmetic operation between integer and an integer gives integer as the result. 2. An arithmetic operation between a real and a real...

Similar Questions

Explore Relevant Multiple Choice Questions (MCQs)

Q. Binary storage of decimal number 44 in 8 bits is

Q.
LET JCOKE = 11 and LPEPSI = 19. Consider the statement

IF (JCOKE - LPEPSI) 5, 5, 7
5 JCOKE = JCOKE + 2
7 JCOKE = JCOKE + 5

The value of JCOKE after the execution of above statement will be

Q. 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

Q. Which of the following is a valid real constant?

Q. Which of the following is a valid real constant?

Q. Consider the following program in C

int k
float b ;
k = 3
b = 10.1
k = k / b

The final result would be k =

Q. The decimal equivalent of binary 1101.11 is

Q. Which of the following is not a valid real constant?

Q. Consider the expression b = acd (xz). The correct C statement for above expression is

Q. Which is a valid Java variable?

Q. When we use RRC instruction once in 8085, the number is

Q. Read the following statements about sets

1. If A and B are sets then A + B denotes union of sets A and B.
2. The union of A and B is that set whose elements are in either A or B or both.
3. If A and B are sets, then difference of sets A and B is denoted by A - B.
4. A - B in the set obtained by removing elements of A from B.

Which of the above are true?

Q. Consider the following rules about integer constant in C

1. An integer constant must have at least one digit.
2. An integer constant must not have a decimal point.
3. An integer constant may be positive or negative.
4. The default sign is positive.
5. A maximum of one comma or blank is allowed.

Which of the above are correct?

Q. Consider the following logical IF statement in Fortran 77

IF (SALT. LE. PEPPER) 11
GO TO 13

The above statement using arithmetic IF statement would be

Q. Consider the following rules for constructing variable names in C

1. It can have alphabets, digits or underscores but no other special character.
2. The maximum number of characters is 8.
3. The first character may be an alphabet or digit but not underscore.

Which of the above are correct?

Q. The correct way of writing the expression NV²/2 + GH/3D in Pascal is

Q. A microprocessor uses 3 MHz oscillator. The duration of one T state is

Q. Zip floppy has a capacity of

Q. Which of the following is not a valid character constant in C?

Q.
Consider the following program in Basic

5 READ R
10 D = 2 * R
20 A = 3.1416 * D * D / 4
30 PRINT A

Assuming that R = 3.0, the output A =

Recommended Subjects

Are you eager to expand your knowledge beyond Electronics and Communication Engineering? We've handpicked a range of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of various subjects. Happy exploring!