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

Computer Languages Questions and Answers

91.

Word or set of letters that can be used to represent a specific function and are easily memorable is classified as

Answer: B

Correct answer: mnemonics

A mnemonic is a short group of letters chosen to be easy to remember and standing for a particular operation - ADD, SUB, JMP. Symbolic addresses name locations rather than functions.

Please log in or register to report this question.

92.

High level language includes

Answer: C

Correct answer: both (a) and (b)

COMAL and BASIC are both high level languages: each lets the programmer write in terms of the problem rather than of the machine, and each needs translating before it can run. Standard is not the name of a language.

Please log in or register to report this question.

93.

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.

94.

Values that are passed between program and its called subroutine are classified as

Answer: C

Correct answer: both (a) and (b)

The values are called arguments at the point of call and parameters in the subroutine's own definition, so both names apply to the same values seen from the two sides. Global values are shared rather than passed.

Please log in or register to report this question.

95.

In line '500 IF NAMEINR ="***" THEN Average= Total Mark/N' of BASIC program, Total Mark and N are considered as

Answer: A

Correct answer: set of integers

Total Mark is a sum of marks and N is a count of students; both are whole numbers, so both are integers. Their quotient, the average, is the value that needs a real type.

Please log in or register to report this question.

96.

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.

97.

In statement '100 LET N1 = LEN(AINR )' of BASIC language, built-in function is

Answer: A

Correct answer: LEN

LEN is supplied by the language itself and returns the number of characters in a string, so it is a built-in function. LET is a keyword, not a function, and N1 is the variable receiving the result.

Please log in or register to report this question.

98.

Control returns in calling program at correct place exactly from

Answer: A

Correct answer: place it lefts

A subroutine call saves the return address before transferring control, so when the subroutine finishes, execution resumes at the statement immediately after the call. Returning to the start or the end of the program would lose the work in progress.

Please log in or register to report this question.

99.

Programming language that allows structuring of programs and data is

Answer: D

Correct answer: PASCAL

Pascal was written by Wirth to teach structured programming: it provides blocks, procedures and functions for structuring the program, and records, arrays and user-defined types for structuring the data. LOGO and COBOL offer far less of either.

Please log in or register to report this question.

100.

Device used to translate programming language into machine code is classified as

Answer: D

Correct answer: assembler

An assembler translates assembly language into machine code, one mnemonic to one instruction. A compiler does the same job for a high level language; an operator and an inverter are not translators 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