Class 12
Information Technology (802)
351 questions available
Refine
All questions
351 resultsWhich primitive data type stores a single character and occupies 16 bits?
Show answer
Which of the following is NOT a valid Java variable name?
Show answer
Which statement about Java variable names is TRUE?
Show answer
To store textual data of more than one character in Java, which class/type is used?
Show answer
When the + operator is used with two String operands in Java, what does it do?
Show answer
Which arithmetic operator returns the remainder of division of two operands?
Show answer
Given int a=20, b=30; what is the value of a/b in Java (integer division)?
Show answer
Given int a=20, b=30; what is the result of the expression a%b?
Show answer
Which operator returns true if the values of both operands are equal, and is NOT to be confused with the assignment operator?
Show answer
Given int a=20, b=30; which relational expression evaluates to TRUE?
Show answer
Which assignment operator is shorthand for 'a = a + b'?
Show answer
Which logical operator returns true if the values of EITHER operand a or b are true?
Show answer
Which logical operator negates the value of its single operand (true becomes false, and vice versa)?
Show answer
A compiler is needed to translate a high level programming language like Java into machine language understood by the computer.
Show answer
All Java statements must end with a semicolon.
Show answer
A local variable in Java is available throughout the entire program, regardless of which method it was declared in.
Show answer
You can declare multiple variables of the same type in a single statement using commas, e.g., int num1, num2, num3;
Show answer
What is Java Bytecode?
Show answer
Name the eight primitive data types available in Java.
Show answer
Given int a = 20, b = 30, evaluate the following Java expressions: (i) a%b (ii) a/=b (iii) (a+b*100)/10 (iv) a&&b (v) a++