Filters
Question type

Study Flashcards

The value of a variable may change during program execution.

Correct Answer

verifed

verified

An operator that has only one operand is called a unique operator.

Correct Answer

verifed

verified

The character sequence \n moves the insertion point at the end of the current line.

Correct Answer

verifed

verified

Which of the following statements about a named constant is NOT true?


A) Its content cannot change during program execution.
B) Its value can be changed during program execution.
C) It is a memory location.
D) It is declared using the reserved word final.

Correct Answer

verifed

verified

The value of the expression 14 % 3 is ____.


A) 1
B) 2
C) 3
D) 4

Correct Answer

verifed

verified

Suppose console is a Scanner object initialized with the standard input device. The expression console.nextInt(); is used to read one int value and the expression console.nextDouble(); is used to read two int values.

Correct Answer

verifed

verified

Suppose that alpha and beta are int variables. The statement alpha = --beta; is equivalent to the statement(s) ____.


A) beta = beta - 1; alpha = 1 - beta;
B) beta = beta - 1; alpha = beta - 1;
C) beta = beta - 1; alpha = beta;
D) alpha = beta; beta = beta - 1;

Correct Answer

verifed

verified

Given Char ch; Int num; Double pay; Which of the following assignment statements are valid? (i) ch = ' * ' ; (ii) pay = num * pay; (iii) rate * 40 = pay;


A) Only (i) is valid
B) (i) and (ii) are valid
C) (ii) and (iii) are valid
D) (i) and (iii) are valid

Correct Answer

verifed

verified

If ++x is used in an expression, first the expression is evaluated, and then the value of x is incremented by 1.

Correct Answer

verifed

verified

Which of the following is a valid char value?


A) '$_'
B) '%'
C) 'n\'
D) "a"

Correct Answer

verifed

verified

Showing 41 - 50 of 50

Related Exams

Show Answer