0% found this document useful (0 votes)
11 views4 pages

Java Is

Uploaded by

niranjal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views4 pages

Java Is

Uploaded by

niranjal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1.

Java is:

a) A database management system

b) A programming language

c) An operating system

d) A web browser

Which of the following is an application of Java?

a) Web applications

b) Mobile applications

c) Enterprise applications

d) All of the above

Which is not a type of Java application?

a) Standalone applications

b) Web applications

c) Embedded systems

d) 3D graphics software

Answer: d) 3D graphics software

Which is not a Java platform/edition?

a) Java Standard Edition (Java SE)

b) Java Enterprise Edition (Java EE)

c) Java Virtual Machine (JVM)

d) Java Micro Edition (Java ME)

Answer: c) Java Virtual Machine (JVM)

Java was originally developed by:

a) Microsoft

b) Sun Microsystems

c) IBM

d) Apple

Answer: b) Sun Microsystems


Which of the following is a feature of Java?

a) Object-oriented

b) Use of pointers

c) Platform-dependent

d) Low security

Answer: a) Object-oriented

Which statement is true about Java compared to C++?

a) Java does not support multiple inheritance

b) Java uses pointers extensively

c) Java is platform-dependent

d) Java is less secure than C++

Answer: a) Java does not support multiple inheritance

Based on the image provided, here are some multiple-choice questions with their answers:

What is the platform dependency of C++ and Java?

a) Both C++ and Java are platform-dependent

b) C++ is platform-independent, Java is platform-dependent

c) C++ is platform-dependent, Java is platform-independent

d) Both C++ and Java are platform-independent

Answer: c) C++ is platform-dependent, Java is platform-independent

What is the primary usage of Java?

a) System programming

b) Web-based, mobile, or window applications

c) Desktop applications only

d) Network applications only

Answer: b) Web-based, mobile, or window applications

Which language was designed with network computing in mind?

a) C++
b) Java

c) Both C++ and Java

d) Neither C++ nor Java

Answer: b) Java

Which statement about the 'goto' statement is true?

a) C++ supports the 'goto' statement, Java does not.

b) Both C++ and Java support the 'goto' statement.

c) Neither C++ nor Java supports the 'goto' statement.

d) Java supports the 'goto' statement, C++ does not.

Answer: a) C++ supports the 'goto' statement, Java does not.

How is multiple inheritance achieved in Java?

a) Using classes

b) Using interfaces

c) Directly supported

d) Not achievable in Java

Answer: b) Using interfaces

Which language supports operator overloading?

a) Java

b) C++

c) Both Java and C++

d) Neither Java nor C++

Answer: b) C++

How does Java handle pointers compared to C++?

a) Java supports pointers like C++

b) Java does not support pointers

c) Java supports pointers internally

d) C++ does not support pointers


Answer: c) Java supports pointers internally

Which compiler and interpreter usage is correct for C++ and Java?

a) C++ uses compiler only, Java uses interpreter only.

b) Both C++ and Java use both compiler and interpreter.

c) C++ uses compiler only, Java uses both compiler and interpreter.

d) C++ uses both compiler and interpreter, Java uses compiler only.

Answer: c) C++ uses compiler only, Java uses both compiler and interpreter.

You might also like