💻 Computing Solved MCQs with Answers

Practice 1954 approved 💻 Computing questions with verified answers from the 💾 Computer Science subject for Pakistan exams.

1954 solved MCQs

Multiprogramming was made possible byAnswer: both (a) and (b) An Interpreter isAnswer: is a program that appears to execute a source program as if it were machine language Systems software is a program that directs the overall operation of the computer, facilitates its use and interacts with the users. What are the different types of this software?Answer: All of the above The system/370 assembler languageAnswer: allows the programmer to write base registers and displacements explicitly in the source program Convert the ASLA assembly language instructions into hexadecimal machine language:Answer: 40 The advantage(s) inherent to using high level languages is/are:Answer: All of the above Convert the ASCII/BEAR/assembly language pseudo-ops into hexadecimal machine languageAnswer: 42 65 61 72 Assembler isAnswer: a program that automate the translation of assembly language into machine language In analyzing the compilation of PL/I program, the description "resolving symbolic address (labels) and generating machine language" is associated withAnswer: Assembly and output Convert the .WORD d#790 assemblylanguage pseudo-ops into hexadecimal machine language:Answer: 03 16 A translator which reads an entire programme written in a high level language and converts it into machine language code is:Answer: compiler Which of the following might be used to convert high-level language instructions into machine language?Answer: an interpreter Which of the following program is not a utility?Answer: Spooler You can use C++ as a procedural, as well as an object-oriented, languageAnswer: True A default catch block catchesAnswer: any thrown object that has not been caught by an earlier catch block Adding a derived class to a base class requires fundamental changes to the base classAnswer: False Format flags may be combined usingAnswer: the bitwise OR operator (|) The use of the break statement in a switch statement isAnswer: optional To expose a data member to the program, you must declare the data member in the _____ section of the classAnswer: public Evaluate the following expression: 3 >6&&7>4Answer: False Which of the following are valid characters for a numeric literal constant?Answer: None of the above A function that changes the state of the cout object is called a(n) _____Answer: manipulator A C++ program contains a function with the header int function(double d, char c). Which of the following function headers could be used within the same program?Answer: int function(int d, char c) When the compiler cannot differentiate between two overloaded constructors, they are calledAnswer: ambiguous Some Streams work with input, and some with outputAnswer: True If you design a class that needs special initialization tasks, you will want to design a(n) _____Answer: constructor Which type of statement does not occur in computer programs?Answer: denial The newline character is always included betweenAnswer: control string To be called object-oriented, a programming language must allowAnswer: inheritance To be called object-oriented, a programming language must allowAnswer: inheritance