AMP

Chapter 2: Computer Languages — Online MCQ Test

INFORMATION TECHNOLOGY · Grade 6 · CBSE(NCERT)
Practice Chapter 2: Computer Languages with a free chapter-wise online MCQ test. This chapter covers: Machine language Assembly language High level language Compiler Interpreter Source code Object code Programming concepts. AI-generated questions from basic to board-exam level, with instant results and explanations.

Start Exam on Full Site →

Chapter 2: Computer Languages — Important Questions & Answers

What is machine language?
  • A. A language written in binary (0s and 1s) that the computer directly understands
  • B. A language used to write programs in English-like syntax
  • C. A language that requires a compiler to convert
  • D. A language used only for web development
Answer: A. A language written in binary (0s and 1s) that the computer directly understands
Machine language is the lowest-level programming language consisting of binary digits (0s and 1s) that the computer processor directly understands and executes.
Which of the following is an example of a high-level language?
  • A. Python
  • B. Machine code
  • C. Assembly language
  • D. Hexadecimal code
Answer: A. Python
Python is a high-level programming language that uses English-like syntax, making it easy for humans to understand and write.
What is the relationship between source code and object code?
  • A. Source code is converted into object code by a compiler or assembler
  • B. They are the same thing
  • C. Object code is written first, then converted to source code
  • D. They are used in different computers
Answer: A. Source code is converted into object code by a compiler or assembler
Source code (written by programmer) is translated by a compiler or assembler into object code (machine-readable format) as part of the compilation process.
Compare the execution speed: which is generally fastest?
  • A. Machine language code runs fastest as it is directly executed by the processor
  • B. High-level language code runs fastest
  • C. Interpreted code runs fastest
  • D. All languages run at the same speed
Answer: A. Machine language code runs fastest as it is directly executed by the processor
Machine language executes directly on the processor without translation overhead, making it the fastest. Compiled code comes close but still has minimal overhead.
Consider this scenario: A software company needs to develop a system where different programmers write different modules that need to be combined. Which language would be most practical?
  • A. A compiled high-level language like C or C++ where different object files can be linked
  • B. Machine language
  • C. Only assembly language
  • D. Interpreted languages cannot be used
Answer: A. A compiled high-level language like C or C++ where different object files can be linked
Compiled high-level languages allow separate compilation of modules into object files, which can then be linked together, enabling modular development practices.