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

Computer Languages Questions and Answers

61.

Group of all special characters such as digits and letters are classified as

Answer: A

Correct answer: strings

A sequence of characters - letters, digits and symbols alike - treated as a single value is a string. The distinction that matters is that the digits in a string are characters, not numbers to be calculated with.

Please log in or register to report this question.

Answer: D

Correct answer: all of the above

All three are aspects of the same requirement: a program is read and altered far more often than it is written, so it must be well structured, understandable to someone who did not write it, and easy to change without breaking.

Please log in or register to report this question.

64.

In line 100 INPUT NUM: PRINT 3.1*NUM*NUM+5" of a BASIC program, ' PRINT 3.1 and 5' are classified as

Answer: A

Correct answer: constants

The numbers 3.1 and 5 written directly into the expression are literal constants: their values are fixed in the program text and cannot change while it runs. NUM, by contrast, is a variable, since the INPUT statement gives it whatever the user types.

Please log in or register to report this question.

65.

A program which translates high level program into machine code is classified as

Answer: A

Correct answer: compiler

A compiler translates a whole high level program into machine code before it is run. Translator is the general term covering compilers, interpreters and assemblers, so it is less precise than the answer the question wants.

Please log in or register to report this question.

67.

Names used to identify a specific location and are invented by programmers are called

Answer: B

Correct answer: symbolic addresses

In assembly language a programmer gives a memory location a name of his own choosing - a label - and the assembler works out the actual address. Such names are symbolic addresses. Mnemonics, by contrast, stand for operations rather than for locations.

Please log in or register to report this question.

68.

In line "300 INPUT NUM: PRINT 4.2*NUM*NUM+17" of a BASIC program, '300' is

Answer: C

Correct answer: line number

In BASIC every statement begins with a number that fixes its place in the program and gives GOTO and GOSUB something to refer to. That is the line number; it is not a variable and holds no value.

Please log in or register to report this question.

Answer: D

Correct answer: mnemonics and symbolic addresses

JMP is the short form of an operation, which makes it a mnemonic; PRNT is a label the programmer has attached to a location, which makes it a symbolic address. Every assembly instruction has this shape: an operation followed by what it operates on.

Please log in or register to report this question.

70.

Statement in Comal language 'IF age >=18 THEN PRINT "Yes" ELSE PRINT "No" is an example of

Answer: D

Correct answer: if then else statement

The statement has all three keywords and both branches: a condition after IF, one action after THEN and another after ELSE. An if then statement would have only the first branch.

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