Explore topic-wise MCQs in Technical Programming.

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.

301.

What is the output of a Bitwise Exclusive OR (^) operation if both of the inputs/operands are 0s or 1s?

A. 0
B. 1
C. 0 or 1
D. None of the above
Answer» B. 1
302.

What is the output of a Bitwise OR (|) operation if one of the inputs/operands is 0?

A. 0
B. 1
C. 0 or 1
D. None of the above
Answer» D. None of the above
303.

What is the output of a Bitwise AND (&) operation if one of the inputs/operands is 1?

A. 0
B. 1
C. 0 or 1
D. None of the above
Answer» D. None of the above
304.

What is the output of a Bitwise OR (|) operation if one of the inputs/operands is 1?

A. 0
B. 1
C. 0 or 1
D. None of the above
Answer» C. 0 or 1
305.

What is the output of a Bitwise AND (&) operation if one of the inputs/operands is 0?

A. 0
B. 1
C. 0 or 1
D. None of the above
Answer» B. 1
306.

What is the output of a Bitwise OR (|) operation if both the inputs are 1s?

A. 0
B. 1
C. 0 or 1
D. None of the above
Answer» C. 0 or 1
307.

What is the output of a Bitwise AND (&) operation if both the inputs/operands are 1s?

A. 0
B. 1
C. 0 or 1
D. None of the above
Answer» C. 0 or 1
308.

What does this Java code snippet prints?

A. Prints the remainder of a number
B. Prints Binary representation of a number
C. Prints Octal representation of a number
D. Prints Hexadecimal representation of a number
Answer» C. Prints Octal representation of a number
309.

Right Shift >> in Java is equivalent to?

A. Multiplying the number by 2
B. Dividing the number by 2`
C. Subtracting the number by 2
D. Adding the number by 2
Answer» C. Subtracting the number by 2
310.

Left Shift (<<) in Java is equivalent to?

A. Subtracting the number by 2
B. Dividing the number by 2
C. Multiplying the number by 2
D. Adding the number by 2
Answer» D. Adding the number by 2
311.

What is this >>> bitwise operator in Java?

A. Left Shift operator
B. Left Shift Fill Zero operator
C. Right Shift Operator
D. Right Shift Fill Zero operator
Answer» E.
312.

What is this >> bitwise operator in Java?

A. Left shift operator
B. Right shift operator
C. Left Shift Fill Zero operator
D. Right Shift Fill Zero operator
Answer» C. Left Shift Fill Zero operator
313.

What is the name of << bitwise operator in Java?

A. Right Shift Operator
B. Left Shift Operator
C. Left Shift Fill Zero operator
D. Right Shift Fill Zero operator
Answer» C. Left Shift Fill Zero operator
314.

If relational operators are present in an expression, what type of other operators may be used?

A. Logical operators
B. Bitwise operators
C. A and B
D. None of the above
Answer» B. Bitwise operators
315.

Find operators that work as both Logical operators and Bitwise operators in Java?

A. &, &=
B. |, |=
C. ^, ^=
D. All the above
Answer» E.
316.

Bitwise operators in Java work with?

A. boolean data like true or false
B. Real numbers like float or double
C. Individual bits of integers like byte, short, int, long and char
D. All the above
Answer» D. All the above
317.

Identify the Bitwise NOT operator in Java below.

A. !
B. &
C. ~
D. None of the above
Answer» D. None of the above
318.

What is a Java Editor?

A. Java editor is simply an IDE like Notepad to type or edit java programs. It does not have ability Compiling or Running java programs without installing separate Java Packages on the PC.
B. Java editor is like Eclipse IDE that has shortcut options or buttons to compile and run java programs without using CMD or Command Line.
C. Java IDE searches for the installed Java location for JAVAC, JAVA and JAWAH to compile and run programs for you.
D. All the above
Answer» E.
319.

What is the command used to Run a Java program form Command Line or Command Prompt or CMD?

A. javac hello
B. java hello.class
C. java hello
D. java hello.java
Answer» D. java hello.java
320.

What is the Java command used to compile a java program from Command Line or Command Prompt or CMD?

A. >java hello.java
B. >javac hello.java
C. >javacomp hello.java
D. >javacmd hello.java
Answer» C. >javacomp hello.java
321.

What is Ahead of Time Compiler in Java?

A. Ahead of time compiler compiles java files as and when you type and save.
B. Ahead of time compiler turns byte code to executable code line by line based on requirement
C. Ahead of time compiler is a replacement for JIT compiler to translate all byte code to a single executable file or code to run the program fast and efficient.
D. None of the above
Answer» D. None of the above
322.

What is LTS mentioned along with Java Version names like Java SE 11 LTS?

A. LTS stands for Long Term Support
B. LTS Versions are patched for security vulnerabilities for up to 5 Years from the release date.
C. Java SE 8 LTS (supported up to March 2022) and Java SE 11 LTS  (supported up to September 2023) are available as of now.
D. All the above
Answer» E.
323.

What is the Java distribution type used to build Web Apps in Java?

A. Java SE
B. Java EE
C. Java ME
D. Java Embedded
Answer» C. Java ME
324.

What are the main Distribution types of Java Software?

A. Java SE (Java Standard Edition)
B. Java EE (Java Enterprise Edition)
C. Java ME (Java Micro Edition)
D. All the above
Answer» E.
325.

What happens in the absence of JIT Compiler in Java?

A. Byte code is produced slowly
B. Executable Code is produced slowly because of line by line Interpreting
C. Executable Code is produced without portability
D. None of the above
Answer» C. Executable Code is produced without portability
326.

Choose the correct statement about Java?

A. JIT Compiler produces Byte Code from Java file.
B. JIT Compiler takes chunks of Byte Code as input and produces Executable code on that particular machine.
C. JIT Compiler assists the actual JAVAC compiler to compile fast
D. None of the above
Answer» C. JIT Compiler assists the actual JAVAC compiler to compile fast
327.

What is JIT in Java?

A. Java In Timer
B. Java In Time Thread
C. Just In Time Compiler
D. Just In Time Runnable
Answer» D. Just In Time Runnable
328.

What is Portability offered by Java language?

A. Small code size easy to carry occupying less disk space
B. Generating suitable Byte Code for each machine by the Compiler
C. Ability to run the Byte on different machines producing the same behaviour and output
D. Java does not actually provide portability
Answer» D. Java does not actually provide portability
329.

When was first Version of Java i.e Java 1.0 was released?

A. 1991
B. 1994
C. 1996
D. 1999
Answer» D. 1999
330.

What is JVM ?

A. JVM is the confined memory area
B. All java programs run inside JVM memory
C. JVM provides security to the computer by giving controlled access to Files and Memory on a computer
D. All the above
Answer» E.
331.

What does JVM stands for?

A. Java Variable Machine
B. Java Virtual Machine
C. Java Virtual Mechanism
D. None of the above
Answer» C. Java Virtual Mechanism
332.

What software runs a Java program on a computer?

A. JRE (Java Runtime Environment)
B. JDK (Java Developer Kit)
C. Command Prompt
D. None of the above
Answer» B. JDK (Java Developer Kit)
333.

What software compiles a Java Program?

A. JRE (Java Runtime Environment)
B. JDK (Java Developer Kit)
C. JVM (Java Virtual Machine)
D. Command Prompt
Answer» C. JVM (Java Virtual Machine)
334.

Byte code is the result of?

A. Compiling a Java file
B. Compiling a Class file
C. Interpreting a Java File
D. Interpreting a Class file
Answer» B. Compiling a Class file
335.

What is the output of Compilation of Java Program?

A. .class file
B. .cla file
C. .jc file
D. .javax file
Answer» B. .cla file
336.

Choose a correct statement about Java source files.

A. Java files are human readable
B. Java files contain Classes with Methods and Variables
C. Import statements import library Classes into our class
D. All the above
Answer» E.
337.

What is the file name extension of a Java source program?

A. .j
B. .ja
C. .java
D. .jax
Answer» D. .jax
338.

What is the problem with generation Executable Software (EXE files)?

A. Run only on Windows machines.
B. Linux and Unix expect a different executable format than .EXE
C. Compiler for each machine type like Linux, Unix, Windows and Processor Type needs to be built for generating output files that can run.
D. All the above.
Answer» E.
339.

Computer Viruses and Trojans are often transmitted along with which files?

A. JPG files
B. TXT files
C. EXE files
D. .ICO files
Answer» D. .ICO files
340.

What is the advantage of EXE files?

A. Run Faster
B. Efficient
C. No separate program required to run
D. All the above
Answer» E.
341.

What was the reason for huge initial success of Java?

A. WWW (World Wide Web)
B. Smart TV Evolution
C. Smart Home Automation
D. None of the above
Answer» B. Smart TV Evolution
342.

Whic company owns Java at present?

A. IBM
B. Microsoft
C. Sun Microsystems
D. Oracle
Answer» E.
343.

What type of Java Programs can be run inside a Java supported Web Browser?

A. Stand alone
B. Struts
C. Applets
D. AWT
Answer» D. AWT
344.

Java language was originally developed for operating?

A. TV
B. TV Set-top box
C. Embedded System equipment
D. All the above
Answer» E.
345.

The name "JAVA" is known to the world as?

A. A Tea Brand in India
B. A Coffee Brand in Africa
C. An Island in Indonesia
D. Ragi Malt Juice
Answer» D. Ragi Malt Juice
346.

Which laboratory was Java invented or developed in?

A. Bell Laboratory
B. Sun Microsystems
C. Dennis Ritchie Office
D. Johnson and Johnson
Answer» C. Dennis Ritchie Office
347.

What is the original name of Java Programming language?

A. J++
B. C++
C. OAK
D. TEAK
Answer» D. TEAK
348.

Who invented Java language?

A. Dennis Ritchie
B. James Gosling
C. Larry Page
D. Serge Page
Answer» C. Larry Page
349.

Java is a Successor to which programming language?

A. B
B. C
C. C++
D. D
Answer» D. D
350.

Choose a correct version of Java Documentation Comment?

A. /*
B. /**
C. /*
D. /**
Answer» C. /*