Skip to content
GK24
Computer AwarenessEasyAsked in: SSC CHSL · 15 March, 2023, Shift 3

Preet wants to use object-oriented programming language for her application. Which among the following languages should she pick?

  1. A.Either Java or Pascal
  2. B.Pascal
  3. C.BASIC
  4. D.Java

Correct answer

D. Java

Explanation

The correct answer is D, Java. Java is an object-oriented programming language, so it is the right pick for Preet. It was created by James Gosling at Sun Microsystems and released in 1995; every piece of code sits inside a class, and the language is built on the four pillars of object orientation — encapsulation, inheritance, polymorphism and abstraction. Java source is compiled into bytecode that any Java Virtual Machine can run, which is why it is described as write once, run anywhere. Option B is wrong because Pascal, written by Niklaus Wirth in 1970 for teaching, is a structured procedural language; only the later Object Pascal added classes. Option A is wrong for the same reason, since it offers Pascal as an equal choice. Option C is wrong because BASIC, made by Kemeny and Kurtz in 1964, is a simple procedural language for beginners. Exam tip: C++, Java, Python, C# and Smalltalk are object-oriented, while C, Pascal, FORTRAN, COBOL and BASIC are procedural.

View all
Q2.Computer AwarenessAsked in: CDS · CDS-I 2025, GKEasy

Which one of the following is the characteristic of Artificial Intelligence ?

  1. A.Replicates human decision making
  2. B.Stores relevant information
  3. C.Stores similar kind of data for a specific purpose
  4. D.Allows user to interact with media
Show answer
Correct answer: A. Replicates human decision making

Artificial Intelligence is the ability of a machine to perform tasks that normally need human intelligence, such as reasoning, learning and taking decisions.