Computer Aptitude: Java & General Computing
Tests knowledge of Java programming concepts, computer hardware, software tools, operating systems, and general computing fundamentals.
Questions
Which of the following softwares is used to play videos?
- MS Office
- Windows Explorer
- Dreamweaver
- Avast
- None of these
Which of the following statements is false about java programming language?
- A class cannot be both final and abstract.
- A final class cannot be subclassed.
- An abstract class cannot be instantiated.
- A single abstract method in a class means the whole class must be abstract.
- None of these
Which of the following statements is/are false about access specifics?
- Default members can be accessed only by classes in the same package.
- Protected members can be accessed by other classes in the same package only.
- A protected member inherited by a subclass from another package is not accessible to any other class in the subclass package, except for the subclasses of the subclass.
- Public members cannot be accessed in other packages.
- Both (2) and (4)
Which of the following statements is/are correct about interface?
- Interface constant declarations of public, static and final are optional in any combination.
- An interface can have abstract method only; no concrete methods allowed.
- A class implementing an interface can itself be abstract.
- A class can implement any number of interfaces.
- All of the above
Which of the following statements is/are correct about StringBuffer class?
- This class is thread-safe.
- The object of this class can be modified.
- It contains some particular sequence of characters.
- All of the above
- Both (1) and (3)
Which of the following is/are used to get confidential information about the users?
- Viruses
- Worms
- Spyware
- Phishing
- Back door
Which of the following statements is/are correct about garbage collection in java?
- Garbage collection can be decided by the user.
- The finalise() method is guaranteed to run once for the garbage collection.
- Garbage collection works for the automatic memory management.
- Both (1) and (2)
- Both (2) and (3)
Which of the following is not a hardware device?
- Mouse
- Keyboard
- Bluetooth
- Pendrive
- Disc
Find the odd one out.
- Python
- C++
- C#
- ASP.NET
- Java
Which of the following statements is/are correct about volatile variables?
- These variable are used to save an object into a file.
- The thread will read the most recent updated value by using volatile variable.
- It is used to create variables and methods that will exist independently of any instances created for the class.
- Volatile variables are used in asynchronous medium.
- Both (2) and (4)
Which of the following options is not an 'Object Oriented Programming' (OOP) feature?
- Inheritance
- Encapsulation
- Abstraction
- Polymorphism
- Serialisation
Which of the following options is not a server?
- Tomcat
- Weblogic
- Netbeans
- Websphere
- Glassfish
Which of the following options is not a browser?
- Opera
- Firefox
- Internet Explorer
- Twitter
- Google Chrome
Which of the following IDEs (Integrated Development Environment) is used to develop android applications?
- Netbeans
- Eclipse
- Visual Studio
- iLog
- Android SDK
All of the following are types of operating system, except
- Windows 2000
- Linux
- Unix
- MS Office
- Both (3) and (4)