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

Computer Languages Questions and Answers

71.

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.

72.

The octal equivalent of 111010 is

Answer: B

Correct answer: 72

Octal digits correspond to groups of three binary digits, so split the number from the right:

\[ 111\,010_2 \;\rightarrow\; 111=7,\quad 010=2 \;\rightarrow\; 72_8 \]

Please log in or register to report this question.

73.

_____________ is used for development of various games. 

Answer: A

Correct answer: C++

C++ combines object-oriented structure with the low-level control and speed a game needs, which is why it has long been the standard language for game engines. FORTRAN and BASIC lack the structure, and Java, though used for some games, does not give the same control over memory and hardware.

Please log in or register to report this question.

74.

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.

75.

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.

78.

For selection of source language the factor which should be considered is

Answer: C

Correct answer: Both 1 and 2

Both matter, and for the same practical reason: a language is no use if no compiler for it exists on the target machine, and no use either if the program cannot exchange data with the other software it must work alongside.

Please log in or register to report this question.

79.

What does part number, part description and number of parts ordered belong to?
 

Answer: B

Correct answer: Input

Part number, description and quantity ordered are the data supplied to the system before anything is computed, so they are its input. Output would be the resulting order or invoice, and feedback and control belong to the monitoring of the process.

Please log in or register to report this question.

Loading…

Other Subjects

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