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

Computer Languages Questions and Answers

102.

Function which is placed between FOR statements and other repeated statements is classified as

Answer: B

Correct answer: DO function

In a FOR loop the statements to be repeated are introduced by DO and run once for each value of the loop variable. GO and WHILE belong to other constructions.

Please log in or register to report this question.

103.

In statement "After last mark enter -1" in COMAL programming language, rogue value is

Answer: A

Correct answer: -1

A rogue value is a value outside the range of the real data, used to signal the end of input. Marks cannot be negative, so -1 can never be mistaken for a mark, which is precisely what makes it a safe terminator.

Please log in or register to report this question.

104.

Special character symbol '/' is used to indicate

Answer: C

Correct answer: directive

A directive is an instruction to the translator rather than to the machine, and a special symbol marks it as such so it is not read as ordinary code. The other three words are not terms used in programming.

Please log in or register to report this question.

105.

Loop which does not executed at all if it is tested at beginning is classified as

Answer: B

Correct answer: WHILE loop

A WHILE loop tests its condition before entering the body, so if the condition is false at the outset the body never runs at all. A REPEAT loop tests at the end and therefore always runs at least once.

Please log in or register to report this question.

106.

Translation of assembly language into machine code is a task of

Answer: C

Correct answer: assembler

Translating assembly mnemonics into the binary codes the processor executes is the assembler's whole function. The programmer writes the assembly; the assembler converts it.

Please log in or register to report this question.

107.

Type of subroutines which are available to users of computer as default part of software is classified as

Answer: C

Correct answer: library subroutine

Routines supplied with the language or the system, ready for any program to call - square root, string comparison, sorting - are held in a library. A local subroutine is written for one program only.

Please log in or register to report this question.

108.

In programming language, 'identifier' can be

Answer: D

Correct answer: all of the above

An identifier is simply a name a programmer gives to something in the program, and arrays, variables and named constants all need names. What distinguishes an identifier from a keyword is that the programmer chooses it.

Please log in or register to report this question.

109.

Rogue value in statement "140 PRINT "For each one type in name. Type '***,0,0' to finish" is

Answer: A

Correct answer: asterisk

The three asterisks are the value typed to say there are no more names to enter - a value chosen because no real name could look like it. The zeros that follow are the marks entered alongside it and are ignored.

Please log in or register to report this question.

110.

A compiler is used when data is to be processed in

Answer: A

Correct answer: batches

A compiler translates the whole program first and then it is run, which suits a job submitted with all its data and left to complete. Interactive working, where each statement is to take effect at once, calls for an interpreter instead.

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