Test Series - java

Test Number 2/64

Q: Computer Viruses and Trojans are often transmitted along with which files?
A. JPG files
B. TXT files
C. EXE files
D. .ICO files
Solution: no solution
Q: 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.
Solution: no solution
Q: What is an Interpreter?
A. An interpreter converts instructions line by line
B. An Interpreter converts source code to low-level code
C. Interpreters are slow to execute
D. All the above
Solution: Opposite of Interpreter is a Compiler.
Q: What is a Compiler?
A. A Compiler converts all instructions in one go.
B. A compiler converts source code to low-level code
C. Compilers work fast
D. All the above
Solution: So a compiler is preferred to an Interpreter.
Q: What is the file name extension of a Java source program?
A. .j
B. .ja
C. .java
D. .jax
Solution: no solution
Q: 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
Solution: no solution
Q: What is the output of Compilation of Java Program?
A. .class file
B. .cla file
C. .jc file
D. .javax file
Solution: no solution
Q: 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
Solution: no solution
Q: What software compiles a Java Program?
A. JRE (Java Runtime Environment)
B. JDK (Java Developer Kit)
C. JVM (Java Virtual Machine)
D. Command Prompt
Solution: no solution
Q: 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
Solution: no solution

You Have Score    /10