MCQOPTIONS
Saved Bookmarks
This section includes 1671 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
| 201. |
What is the data type of output of any Comparison Operation in Java? |
| A. | int |
| B. | char |
| C. | boolean |
| D. | byte |
| Answer» D. byte | |
| 202. |
Which operator group has higher priority between (>, >=, |
| A. | (>, >=, <, <=) has lower priority (==, !=) |
| B. | (>, >=, <, <=) has higher priority (==, !=) |
| C. | (>, >=, <, <=) has equal priority with (==, !=) |
| D. | None of the above |
| Answer» C. (>, >=, <, <=) has equal priority with (==, !=) | |
| 203. |
Choose the Conditional operators of Java listed below. |
| A. | >, >= |
| B. | <, <= |
| C. | ==, != |
| D. | All the above |
| Answer» E. | |
| 204. |
What are the types of data that can be used along with Relational operators in Java? |
| A. | char, boolean, Object |
| B. | byte, short, int, long |
| C. | float, double |
| D. | All the above |
| Answer» E. | |
| 205. |
How many minimum number of operands are required to use Comparison operators in Java? |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4 |
| Answer» C. 3 | |
| 206. |
What is the other name for Relational Operators in Java? |
| A. | Comparison operators |
| B. | Conditional operators |
| C. | A and B |
| D. | None of the above |
| Answer» D. None of the above | |
| 207. |
Choose the right statement about Java Data types. |
| A. | Integer data types are short, int and long |
| B. | Real number data types are float and double |
| C. | The character data type is char. |
| D. | All the above |
| Answer» E. | |
| 208. |
What is the abbreviation of ASCII? |
| A. | American Standard Characters for Information Interchange |
| B. | Australian Standard Code for Information Interchange |
| C. | American Standard Code for Information Interchange |
| D. | None of the above |
| Answer» D. None of the above | |
| 209. |
What is the character encoding standard used in Java language? |
| A. | ASCII |
| B. | Unicode |
| C. | Hexacode |
| D. | Bytecode |
| Answer» D. Bytecode | |
| 210. |
What is the IEEE standard adopted to represent Floating point numbers in Java? |
| A. | IEEE 9000 |
| B. | IEEE 800 |
| C. | IEEE 754 |
| D. | IEEE 512 |
| Answer» D. IEEE 512 | |
| 211. |
What is the size of a boolean data type constant in Java? |
| A. | 1 bit |
| B. | 4 bits |
| C. | 8 bits |
| D. | Not documented well |
| Answer» E. | |
| 212. |
What is the size of a CHAR data type constant in Java? |
| A. | 1 byte |
| B. | 2 bytes |
| C. | 4 bytes |
| D. | 6 bytes |
| Answer» C. 4 bytes | |
| 213. |
What is the size of a DOUBLE floating point number in Java? |
| A. | 4 bytes |
| B. | 6 bytes |
| C. | 8 bytes |
| D. | 16 bytes |
| Answer» D. 16 bytes | |
| 214. |
What is the size of a FLOAT floating point number in Java? |
| A. | 2 bytes |
| B. | 4 bytes |
| C. | 6 bytes |
| D. | 8 bytes |
| Answer» C. 6 bytes | |
| 215. |
What is the size of a LONG integer in Java? |
| A. | 2 bytes |
| B. | 4 bytes |
| C. | 8 bytes |
| D. | 16 bytes |
| Answer» D. 16 bytes | |
| 216. |
What is the size of an INT integer in Java? |
| A. | 2 bytes |
| B. | 4 bytes |
| C. | 6 bytes |
| D. | 8 bytes |
| Answer» C. 6 bytes | |
| 217. |
What is the size of a SHORT integer in Java? |
| A. | 1 byte |
| B. | 2 bytes |
| C. | 4 bytes |
| D. | 8 bytes |
| Answer» C. 4 bytes | |
| 218. |
Choose the number range for byte data type in Java? |
| A. | -127 to +128 |
| B. | -128 to +127 |
| C. | 0 to 256 |
| D. | 0 to 255 |
| Answer» C. 0 to 256 | |
| 219. |
Which is the data type that is not recommended for numeric applications in Java? |
| A. | byte |
| B. | float |
| C. | int |
| D. | long |
| Answer» B. float | |
| 220. |
Which is the data type used mostly to handle streams and buffers in Java language? |
| A. | short |
| B. | int |
| C. | byte |
| D. | float |
| Answer» D. float | |
| 221. |
Which among the following is not a valid Data Type in Java? |
| A. | long |
| B. | bool |
| C. | double |
| D. | float |
| Answer» C. double | |
| 222. |
which among the following is not a Data Type in Java? |
| A. | short |
| B. | int |
| C. | long double |
| D. | double |
| Answer» D. double | |
| 223. |
What is a Primitive Data Type in Java? |
| A. | Data type, which is implemented in an Object-oriented way. |
| B. | Data Type which is implemented in a machine-dependent way |
| C. | Data Type which is implemented in a non-object oriented way. |
| D. | None of the above |
| Answer» D. None of the above | |
| 224. |
Which data type among the following is an implementation of Objects or OOPs? |
| A. | byte |
| B. | int |
| C. | char |
| D. | None of the above |
| Answer» E. | |
| 225. |
Choose the wrong statement about Java programming? |
| A. | Java supports unsigned integers |
| B. | Java supports signed integers |
| C. | Java supports signed char |
| D. | None of the above |
| Answer» B. Java supports signed integers | |
| 226. |
What does a Data Type in Java refers to? |
| A. | The place where data is stored |
| B. | The technique how data is retreived |
| C. | The type or variety of data being handled for reading and writing |
| D. | None of the above |
| Answer» D. None of the above | |
| 227. |
If an AND (&) operator is applied with two integers, what is this operator? |
| A. | Boolean operator |
| B. | Bitwise operator |
| C. | Logical operator |
| D. | Arithmetic operator |
| Answer» C. Logical operator | |
| 228. |
Choose the correct version of Logical Compound Assignment operators in Java below? |
| A. | &=, |=, ^= |
| B. | &&=, ||=, != |
| C. | A and B |
| D. | None of the above |
| Answer» B. &&=, ||=, != | |
| 229. |
Among the logical operators, OR (|), Short Circuit OR (||) and Exclusive OR (^), which operator has higher priority? |
| A. | OR (|) |
| B. | Short Circuit OR (||) |
| C. | Exclusive OR (^) |
| D. | All operators have the same priority. |
| Answer» D. All operators have the same priority. | |
| 230. |
Among the logical operators, OR (|) and Short Circuit OR (||), which operator has higher priority? |
| A. | OR (|) |
| B. | Short Circuit OR (||) |
| C. | Both have the same priority |
| D. | None of the above |
| Answer» B. Short Circuit OR (||) | |
| 231. |
Among the Logical operators, AND (&) and Short Circuit AND (&&), which has higher priority? |
| A. | AND (&) |
| B. | Short Circuit AND (&&) |
| C. | Both have same priority |
| D. | None of the above |
| Answer» B. Short Circuit AND (&&) | |
| 232. |
Which is the Logical operator in Java that has the highest priority among all other logical operators? |
| A. | Short Circuit AND (&&) |
| B. | AND (&) |
| C. | NOT (!) |
| D. | Exclusive OR (^) |
| Answer» D. Exclusive OR (^) | |
| 233. |
What is the output of an Exclusive OR(^) operation, if one of the operands is false? |
| A. | false |
| B. | true |
| C. | true or false |
| D. | None of the above |
| Answer» D. None of the above | |
| 234. |
What is the output of an Exclusive OR (^) operation if one of the operands/expressions is TRUE? |
| A. | false |
| B. | true |
| C. | true or false |
| D. | None of the above |
| Answer» D. None of the above | |
| 235. |
What happens to the Second Operand/expression if the first operand is TRUE with a Short Circuit OR (||) operator in Java? |
| A. | Second expression/operand is evaluated and OR is applied to both operands |
| B. | Evaluating the Second expression/operand is skipped |
| C. | The compiler starts taking more memory |
| D. | The compiler starts taking more CPU power |
| Answer» C. The compiler starts taking more memory | |
| 236. |
What happens to the Second operand/expression if the first operand is FALSE with a Short Circuit AND (&&) operator? |
| A. | Second operand/expression is evaluated and AND is applied. |
| B. | Evaluation of Second operand/expression is skipped. |
| C. | The compiler starts taking more memory |
| D. | The compiler starts taking more CPU power. |
| Answer» C. The compiler starts taking more memory | |
| 237. |
Why are Short Circuit AND (&&) and Short Circuit OR (||) operators are fast in Java? |
| A. | By skipping the second expression or operand if possible and save time. |
| B. | By using extra memory on the machine |
| C. | By using extra CPU processing power |
| D. | None of the above |
| Answer» B. By using extra memory on the machine | |
| 238. |
Which is fast among OR(|) and Short Circuit OR (||) operators in Java? |
| A. | OR Operator |
| B. | Short Circuit OR operator |
| C. | Both work at the same speed |
| D. | None of the above |
| Answer» C. Both work at the same speed | |
| 239. |
Which is fast among AND (&) and Short Circuit AND(&&) operators in Java? |
| A. | AND operator |
| B. | Short Circuit AND |
| C. | Both work at the same speed |
| D. | None of the above |
| Answer» C. Both work at the same speed | |
| 240. |
What is the output of a Logical OR (|) operation if both the inputs/operands are true? |
| A. | true |
| B. | false |
| C. | true or false |
| D. | None of the above |
| Answer» B. false | |
| 241. |
What is the output of a Logical AND (&) operation if both inputs/operands are true? |
| A. | false |
| B. | true |
| C. | true or false |
| D. | None of the above |
| Answer» C. true or false | |
| 242. |
What is the output of a Logical AND (&) operation if one of the inputs/operands is true? |
| A. | false |
| B. | true |
| C. | true of false |
| D. | None of the above |
| Answer» D. None of the above | |
| 243. |
What is the output of a Logical OR (|) operation if one of the inputs/operands is true? |
| A. | false |
| B. | true |
| C. | true or false |
| D. | None of the above |
| Answer» C. true or false | |
| 244. |
What is the output of Logical AND (&) operation if one of the inputs/operands is false? |
| A. | false |
| B. | true |
| C. | true or false |
| D. | None of the above |
| Answer» B. true | |
| 245. |
What is the output of a Logical OR (|) operation if one of the inputs/operands is false? |
| A. | false |
| B. | true |
| C. | true or false |
| D. | None of the above |
| Answer» D. None of the above | |
| 246. |
Which among the following is a Short Circuit OR operator? |
| A. | & |
| B. | && |
| C. | | |
| D. | || |
| Answer» E. | |
| 247. |
Which among the following is a Short Circuit AND operator? |
| A. | & |
| B. | && |
| C. | | |
| D. | || |
| Answer» C. | | |
| 248. |
Which among the following is a Logical Unary NOT operator in Java? |
| A. | ~ |
| B. | ! |
| C. | # |
| D. | ^ |
| Answer» C. # | |
| 249. |
Which is the Logical operator in Java that works with a Single Operand? |
| A. | Logical AND |
| B. | Logical OR |
| C. | Logical Exclusive OR |
| D. | Logical NOT |
| Answer» E. | |
| 250. |
What is the output of any Logical operation in Java? |
| A. | 1 or 0 |
| B. | true or false |
| C. | char or String |
| D. | None of the above |
| Answer» C. char or String | |