fbpx
Pin It

[1] What is the primary function of a language translator in computer science?

a) To convert computer code into human-readable text

b) To translate written text from one language to another

c) To convert images into text

d) To encrypt and decrypt data

[2] What type of language translator is used to convert high-level programming languages into machine code?

a) Interpreter

b) Compiler

c) Assembler

d) Decompiler

[3] Which of the following is an example of a machine translation system?

a) Google Translate

b) Microsoft Word's spell checker

c) IBM Watson

d) Adobe Photoshop

[4] What is the main disadvantage of using machine translation systems?

a) They are not always accurate

b) They are expensive

c) They are not widely available

d) They are not user-friendly

[5] What is the process of converting one programming language into another called?

a) Translation

b) Transcription

c) Transmutation

d) Transpilation

[6] What is the difference between an interpreter and a compiler?

a) An interpreter translates code line by line, while a compiler translates the entire program at once

b) An interpreter is used for high-level languages, while a compiler is used for low-level languages

c) An interpreter can only translate one programming language, while a compiler can translate multiple languages

d) An interpreter is used for machine code, while a compiler is used for human-readable code

[7] What is the purpose of a decompiler?

a) To convert machine code into a high-level programming language

b) To convert a high-level programming language into machine code

c) To translate written text from one language to another

d) To encrypt and decrypt data

[8] What is the process of converting a program written in one programming language into a different programming language called?

a) Translation

b) Transcription

c) Porting

d) Transmutation

[9] Which of the following is an example of a source-to-source compiler?

a) GCC

b) Python

c) C#

d) LLVM

[10] What is the main advantage of using a source-to-source compiler?

a) It allows for easy modification of the original code

b) It is faster than other types of compilers

c) It is more efficient in terms of memory usage

d) It is able to translate multiple programming languages at once

Answers:

    1. b) To translate written text from one language to another
    2. b) Compiler
    3. a) Google Translate
    4. a) They are not always accurate
    5. d) Transpilation
    6. a) An interpreter translates code line by line, while a compiler translates the entire program at once
    7. a) To convert machine code into a high-level programming language
    8. c) Porting
    9. d) LLVM
    10. a) It allows for easy modification of the original code.

    Current Affairs

    powered by Surfing Waves