Java Programming & Computer Basics

This test is useful for MCA entrance aspirants. It covers fundamental Java programming concepts including interfaces, classes, access specifiers, and OOP features, along with basic computer awareness topics like operating systems, software, browsers, and security.

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is/are correct statement(s) about an interface?

  1. Constant declarations of public, static, and final are optional in any combination.
  2. An interface can have only abstract methods and no concrete methods are allowed.
  3. A class implementing an interface can itself be abstract.
  4. A class can implement any number of interfaces.
  5. All of the above
Question 2 Multiple Choice (Single Answer)

Which of the following is a false statement about Java programming language?

  1. A class cannot be both final and abstract.
  2. A final class cannot be subclassed.
  3. An abstract class cannot be instantiated.
  4. A single abstract method in a class means that the whole class must be abstract.
  5. None of the above
Question 3 Multiple Choice (Single Answer)

Which of the following is/are false statement(s) about access specifiers?

  1. Default members can be accessed only by classes in the same package.
  2. Protected members can be accessed by other classes in the same package only.
  3. A protected member inherited by a subclass within another package is not accessible to any other class.
  4. Public members are not accessible in other packages.
  5. Both (2) and (4)
Question 4 Multiple Choice (Single Answer)

Which of the following is/are correct statement(s) about StringBuffer Class?

  1. This class is thread-safe.
  2. The object of this class can be modified.
  3. It contains some particular sequence of characters.
  4. All of the above
  5. Both (1) and (3)
Question 5 Multiple Choice (Single Answer)

Which of the following statement(s) is/are correct about garbage collection in java?

  1. The garbage collection can be decided by the user.
  2. The finalize() method is guaranteed to run once for the garbage collection.
  3. Garbage collection works for the automatic memory management.
  4. Both (1) and (2)
  5. Garbage collection is not used in java.
Question 6 Multiple Choice (Single Answer)

Which of the following is a technique to get confidential information about the users?

  1. Viruses
  2. Worms
  3. Spyware
  4. Phishing
  5. Back door
Question 7 Multiple Choice (Single Answer)

Which of the following statement(s) is/are correct about volatile variables?

  1. These variables are used to save an object to a file.
  2. The thread will read the most recent updated value by using volatile variable.
  3. It is used to create variables and methods that will exist independently of any instances created for the class.
  4. Volatile variables are used in asynchronous medium.
  5. Both (2) and (4)
Question 8 Multiple Choice (Single Answer)

Which of the following softwares is used to play videos?

  1. MS Office
  2. Windows Explorer
  3. Dreamweaver
  4. Avast
  5. None of these
Question 9 Multiple Choice (Single Answer)

Which of the following IDE's(Integrated Development Environment) is used to develop android applications?

  1. Netbeans
  2. Eclipse
  3. Visual studio
  4. iLog
  5. Android SDK
Question 10 Multiple Choice (Single Answer)

Which of the following is not an operating system?

  1. Windows 2000
  2. Linux
  3. Unix
  4. MS Office
  5. DOS
Question 11 Multiple Choice (Single Answer)

Directions: Find the odd one out.

  1. Python
  2. C++
  3. C#
  4. ASP.NET
  5. Java
Question 12 Multiple Choice (Single Answer)

Which of the following is not an Object Oriented Programming (OOP) feature?

  1. Inheritance
  2. Encapsulation
  3. Abstraction
  4. Serialization
  5. Polymorphism
Question 13 Multiple Choice (Single Answer)

Which of the following is not a server?

  1. Tomcat
  2. Weblogic
  3. Netbeans
  4. Websphere
  5. Glassfish
Question 14 Multiple Choice (Single Answer)

Which of the following is not a browser?

  1. Opera
  2. Firefox
  3. Internet Explorer
  4. Twitter
  5. Chrome
Question 15 Multiple Choice (Single Answer)

Which of the following is not a hardware device?

  1. Mouse
  2. Keyboard
  3. Safari
  4. Pendrive
  5. Disc