Which of the following computer languages is/are assembly language(s) ? 1. Python 2. Java 3. x86 4. MIPS Select the answer using the codes given below :
- A.1 only
- B.2 and 3 only
- C.3 and 4 only
- D.1,3 and 4
Correct answer
Explanation
The correct answer is C, 3 and 4 only. x86 and MIPS assembly are low-level languages written for particular processor families, while Python and Java are high-level languages.
An assembly language uses short mnemonics such as MOV, ADD and JMP that stand directly for a processor's machine instructions, so each family of processors has its own. x86 assembly is written for Intel and AMD chips used in most desktops and laptops; MIPS assembly is written for MIPS processors, a RISC design widely used in teaching and embedded devices. A program called an assembler turns assembly code into machine code. Python and Java are high-level languages that hide the hardware and run on many machines, through an interpreter or the Java Virtual Machine.
A is wrong because Python is a high-level, interpreted language.
B is wrong because Java is a high-level language compiled to bytecode, not an assembly language.
D is wrong because it includes Python.
Exam tip: assembler, assembly to machine code; compiler and interpreter, high-level languages to machine code.
Practice Questions
View allWhich one among the following is not a part of the SWAYAM programme?
- A.Video lectures
- B.Classroom lectures
- C.Online discussion forum for clearing doubts
- D.Specially prepared material that can be downloaded/printed
Show answer
SWAYAM is an online learning platform, so live classroom lectures are not one of its parts.
Read the full explanation →Which one among the following consists of a list of commands that is executed automatically as the computer system starts up ?
- A.COMMAND.COM
- B.AUTOEXEC.BAT
- C.CONFIG.SYS
- D.AUTOSTART.BAT
Show answer
It is the batch file that MS-DOS runs automatically, line by line, every time the computer starts. A batch file is a plain text file of DOS commands with the.BAT extension.
Read the full explanation →Which one among the following is NOT true about Standard Generalised Markup Language (SGML)?
- A.It is an international open standard
- B.It is dependent on a computer's hardware
- C.It is independent of a computer's operating system
- D.It defines document type
Show answer
SGML was designed to be independent of both hardware and software, so saying it depends on a computer's hardware is false.
Read the full explanation →Which one among the following tasks is NOT carried out by an operating system?
- A.To link a program with the subroutines it references
- B.To manage data transfer to and from peripherals
- C.To allocate memory for storing programs
- D.To provide a layered, user-friendly interface
Show answer
Joining a program to the library routines it calls is the job of a linker, a separate system utility, not of the operating system.
Read the full explanation →Which one among the following protocols works at application layer in a TCP/IP protocol suite?
- A.IP
- B.TCP
- C.TELNET
- D.Go-back-N
Show answer
TELNET is an application-layer protocol that lets a user log in to a remote computer and work on it through a text terminal.
Read the full explanation →