Sail E0 Webinar

Computer Aptitude

PROGRAMMING LANGUAGES MCQs

Total Questions : 19 | Page 1 of 2 pages
Question 1.

CPU can directly understand this language

  1.    C
  2.    C + +
  3.    Assembly
  4.    Java
  5.    None of these
 Discuss Question
Answer: Option C. -> Assembly
Question 2.

Which language is CPU dependent?

  1.    C
  2.    Assembly
  3.    Java
  4.    All except Java
  5.    C+ +
 Discuss Question
Answer: Option D. -> All except Java
CPU dependent language is a type of low-level language that is designed to target a specific type of processor. It is directly executed by the hardware of the processor. These type of languages are used to create programs that run on a specific architecture and require the processor to be able to interpret the instructions.

Definition:
CPU dependent language is a type of low-level language that is designed to target a specific type of processor or microcontroller. It is directly executed by the hardware of the processor.

Explaination:
CPU dependent languages are used to create programs that run on a specific architecture and require the processor to be able to interpret the instructions.

Examples of CPU dependent languages are assembly language, C and C++.

These languages are processor specific as the instructions are written for a particular type of processor.

These languages are compiled directly into the binary format and are not interpreted.

The instructions are written in the native language of the processor and hence require a compiler to be able to convert them into a machine code.

These languages are used to write programs that require high performance such as operating systems and drivers.

The advantage of these languages is that they are very efficient as they are compiled directly into the machine code and require no interpretation.

The disadvantage of these languages is that they are not very portable as they need to be re-compiled for different types of processors.

Java is not a CPU dependent language as it is an interpreted language and is compiled into the JVM bytecode.

Conclusion:
From the above explanation, it can be concluded that all languages except Java are CPU dependent.
If you think the solution is wrong then please provide your own solution below in the comments section .

Question 3.

Languages which can easily interact with the hardware are called

  1.    high level languages
  2.    low level languages
  3.    middle level languages
  4.    very high level languages
  5.    None of these
 Discuss Question
Answer: Option B. -> low level languages
Question 4.

How many bits are there is ASCII codes?

  1.    18
  2.    10
  3.    12
  4.    16
  5.    8
 Discuss Question
Answer: Option E. -> 8
Question 5.

Machine language

  1.    is the language in which programs were first written
  2.    is the only language understood by the computer
  3.    differs from one type of computer to another
  4.    All of the above
  5.    None of the above
 Discuss Question
Answer: Option D. -> All of the above
Question 6.

Assembly language

  1.    uses alphabetic codes in place of binary numbers used in machine language
  2.    is the easiest language to write programs
  3.     need not be translated into machine language
  4.    All of the above
  5.    None of the above
 Discuss Question
Answer: Option A. -> uses alphabetic codes in place of binary numbers used in machine language
Question 7.

Computer language used on Internet is

  1.    Pascal
  2.    Java
  3.    Basic
  4.    LOGO
  5.    C
 Discuss Question
Answer: Option B. -> Java
Question 8.

A computer program used for business applications is

  1.    LOGO
  2.    COBOL
  3.    BASIC
  4.    FORTRAN
  5.    C+ +
 Discuss Question
Answer: Option B. -> COBOL
Question 9.

Computer understands only one language and that is

  1.    source language
  2.    machine language
  3.    high level language
  4.    low level language
  5.    None of these
 Discuss Question
Answer: Option B. -> machine language
Question 10.

Computer language used for scientific calculations etc

  1.    LOGO
  2.    FORTRAN
  3.    BASIC
  4.    C++
  5.    None of these
 Discuss Question
Answer: Option B. -> FORTRAN

Latest Videos

Latest Test Papers