1) Java is a Successor to which programming language?
A) B
Explanation:
C++ introduced OOPs (Object Oriented Programming) concepts which are adopted by Java.
2) Who invented Java language?
A) Dennis Ritchie
Explanation:
James Gosling along with his team members Mike Sheridan and Patrick Naughton developed Java language.
3) What is the original name of Java Programming language?
A) J++
Explanation:
Java was named after an OAK tree outside James Gosling's office.
4) Which laboratory was Java invented or developed in?
A) Bell Laboratory
Explanation:
NFS (Network File System) was also invented by SUN Microsystems.
5) 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
Explanation:
Indonesia is a group of Volcanic Islands with Java sea on one side.
6) Java language was originally developed for operating?
A) TV
C) Embedded System equipment
7) What type of Java Programs can be run inside a Java supported Web Browser?
A) Stand alone
8) Whic company owns Java at present?
A) IBM
Explanation:
Oracle acquired Sun Microsystems in the year 2010.
9) What was the reason for huge initial success of Java?
A) WWW (World Wide Web)
Explanation:
World Wide Web is also known as the INTERNET.
10) What is the advantage of EXE files?
A) Run Faster
C) No separate program required to run
11) Computer Viruses and Trojans are often transmitted along with which files?
A) JPG files
12) 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.
13) 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
Explanation:
Opposite of Interpreter is a Compiler.
14) What is a Compiler?
A) A Compiler converts all instructions in one go.
B) A compiler converts source code to low-level code
Explanation:
So a compiler is preferred to an Interpreter.
15) What is the file name extension of a Java source program?
A) .j
16) 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
17) What is the output of Compilation of Java Program?
A) .class file
18) 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
19) What software compiles a Java Program?
A) JRE (Java Runtime Environment)
B) JDK (Java Developer Kit)
C) JVM (Java Virtual Machine)
20) What software runs a Java program on a computer?
A) JRE (Java Runtime Environment)
B) JDK (Java Developer Kit)