Machine-translated by Google. Questions are authored in English.
Top

Computer Languages Questions and Answers

42.

The language which is CPU dependent is

Answer: C

Correct answer: Assembly

Assembly language is written in the mnemonics of one particular instruction set, so a program written for one processor family will not assemble for another. C is compiled and can be recompiled for any target, and Java runs on a virtual machine, which is what makes it independent.

Please log in or register to report this question.

43.

When data to be input is numeric in nature, data type in program is classified as

Answer: A

Correct answer: real integers

Numeric input must be held in a numeric type, so that arithmetic can be done with it. A string type would store the digits as characters, and adding two such values would join them rather than sum them - which is exactly the mistake this question is guarding against.

Please log in or register to report this question.

44.

Types of computer language translator are

Answer: D

Correct answer: all of these

All three translate one form of code into another: a compiler converts a whole high level program at once, an interpreter converts and executes it statement by statement, and an assembler converts assembly mnemonics into machine code.

Please log in or register to report this question.

45.

In line "400 INPUT NUM: PRINT 5.6*NUM+10" of a BASIC program, 'NUM is

Answer: B

Correct answer: variable

NUM receives whatever the INPUT statement reads, so its value changes from one run to the next. That is what makes it a variable; the numbers 5.6 and 10 written into the same line are the constants.

Please log in or register to report this question.

Answer: B

Correct answer: It is very efficient in coding and execution

COBOL was designed for readability and portability in business data processing, and it achieves both: its English-like statements are easy to follow and the language is standardised. The cost is verbosity and slow execution, so efficiency is precisely what it is not known for.

Please log in or register to report this question.

Answer: B

Correct answer: To decode instructions and generate control signals

The control unit fetches each instruction, decodes it, and issues the timing and enable signals that make the other units carry it out. Arithmetic and logic are performed by the ALU, storage by memory, and input by the input devices - the control unit directs them all without doing any of their work itself.

Please log in or register to report this question.

50.

Loop which is tested at least once in case condition does not fulfilled is classified as

Answer: D

Correct answer: REPEAT UNTIL loop

REPEAT … UNTIL tests its condition at the end of the body, so the body always runs at least once, even if the condition is already satisfied. A WHILE loop tests first and so may run no times at all.

Please log in or register to report this question.

Loading…
Tags: Computer Languages Questions and Answers || Computer Languages MCQ Questions and Answers || Computer Languages GK Questions and Answers || Computer Languages GK MCQ Questions || Computer Languages Multiple Choice Questions and Answers || Computer Languages GK || GK on Computer Languages || Computer Awareness Questions and Answers || Computer Awareness MCQ Questions and Answers || Computer Awareness GK Questions and Answers || GK on Computer Awareness