Preet wants to use object-oriented programming language for her application. Which among the following languages should she pick?
- A.Either Java or Pascal
- B.Pascal
- C.BASIC
- D.Java
Correct answer
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.
Practice Questions
View allWhich language uses the symbolic representation of machine codes needed to program a particular processor or processor family?
- A.Machine Language
- B.Assembly Language
- C.High-Level Language
- D.All of the above
Show answer
Assembly language replaces the binary machine codes of a processor with short symbols called mnemonics, such as MOV, ADD and JMP.
Read the full explanation →Which one of the following is the characteristic of Artificial Intelligence ?
- A.Replicates human decision making
- B.Stores relevant information
- C.Stores similar kind of data for a specific purpose
- D.Allows user to interact with media
Show answer
Artificial Intelligence is the ability of a machine to perform tasks that normally need human intelligence, such as reasoning, learning and taking decisions.
Read the full explanation →What is an interactive combination of text, graphics, video, audio and images termed as ?
- A.JPEG
- B.Multimedia
- C.AVA
- D.PNG
Show answer
Multimedia means using several forms of media, such as text, graphics, audio, video, images and animation, together, often in a way the user can interact with.
Read the full explanation →Which among the following is a malicious software?
- A.Hacking
- B.Password Cracking
- C.Trojan Horse
- D.Firewall
Show answer
A Trojan is a program that looks useful or harmless but secretly carries harmful code, so it is a piece of malicious software, or malware.
Read the full explanation →Which one of the following is not an application software?
- A.Spreadsheet
- B.AutoCAD
- C.MS PowerPoint
- D.Linker
Show answer
A linker is system software, a programming tool that joins compiled pieces of code into one program that can run; it does not do a task for the end user.
Read the full explanation →