Explore topic-wise MCQs in Engineering.

This section includes 4320 Mcqs, each offering curated multiple-choice questions to sharpen your Engineering knowledge and support exam preparation. Choose a topic below to get started.

4251.

Which of the following is the fourth problem-solving step?

A. analyze the problem
B. evaluate and modify (if necessary) the program
C. code the algorithm
D. plan the algorithm
E. desk-check the program
Answer» D. plan the algorithm
4252.

Within parentheses, catch blocks can have _____

A. no arguments
B. one argument
C. two arguments
D. as many arguments as necessary
Answer» C. two arguments
4253.

The while loop is referred to as a(n) _____ loop because the loop condition is tested at the beginning of the loop

A. beginning
B. initial
C. pretest
D. priming
Answer» D. priming
4254.

Function templates _____________

A. must have exactly one parameter
B. may have more than one parameter as long as they are of the same type
C. may have more than one parameter of any type
D. may not have parameters
Answer» D. may not have parameters
4255.

A member function uses the correct object when you call it because

A. a copy of the object is passed to the function
B. the address of the object is passed to the function
C. the address of the function is passed to another function
D. the address of the object is returned from the function
Answer» C. the address of the function is passed to another function
4256.

Two access specifiers in C++ are

A. public and private
B. int and double
C. formal and informal
D. void and free
Answer» B. int and double
4257.

If you want to use a class to define objects in many different programs, you should define the class in a C++ _____ file

A. header
B. program
C. source
D. text
Answer» B. program
4258.

When a class is derived from another derived class, the newly derived class

A. may have more liberal access to a base class member than its immediate predecessor
B. may have the same type of access to a base class member as its immediate predecessor
C. may have more limited access to a base class member than its immediate predecessor
D. both (b) and (c)
Answer» D. both (b) and (c)
4259.

With a template class, _____ type is generic

A. no
B. exactly one
C. at least one
D. at most one
Answer» D. at most one
4260.

If you assign a default value to any variable in a function prototype's parameter list, then _____

A. all other parameters in the function prototype must have default values
B. all parameters to the right of that variable must have default values
C. all parameters to the left of that variable must have default values
D. no other parameters in that prototype can have default values
Answer» C. all parameters to the left of that variable must have default values
4261.

The dot operator (or class member access operator) connects the following two entities (reading from left to right):

A. a class member and a class object
B. a class object and a class
C. a class and a member of that class
D. a class object and a member of that class
Answer» E.
4262.

Which of the following calls a function named displayName, passing it no actual arguments?

A. call displayName;
B. call displayName ();
C. displayName;
D. displayName();
Answer» E.
4263.

If you want only one memory location to be reserved for a class variable, no matter how many objects are instantiated, you should declare the variable as

A. static
B. unary
C. dynamic
D. volatile
Answer» B. unary
4264.

To use a template class member function, use the ________ with the instantiation

A. scope resolution operator
B. dot operator
C. class definition
D. keword template
Answer» C. class definition
4265.

The bitwise OR operator is a

A. unary operator
B. binary operator
C. ternary operator
D. octal operator
E. None of the above
Answer» C. ternary operator
4266.

Precedence determines which operator

A. is evaluated first
B. is most important
C. is fastest
D. operates on the largest number
E. None of the above
Answer» B. is most important
4267.

Which of the following is not a programming control structure?

A. repetition
B. selection
C. sequency
D. sorting
Answer» E.
4268.

A class Stockltems has four data members and three function members. You define 50 objects as members of the class. Which is true?

A. Only one copy of each of the tnree functions exists
B. Only one copy of each of the four data members exists
C. Both (a) and (b) are true
D. Neither (a) nor (b) is true
Answer» B. Only one copy of each of the four data members exists
4269.

The continue statement should be written only

A. in the body of a loop.
B. in the nested loops
C. outside the body of a loop
D. any where
E. None of the above
Answer» B. in the nested loops
4270.

Which of the following, if any, are invalid names for a variable?

A. bankAccountNumber
B. first_Name
C. doubleNumber
D. operator
E. All of the above are valid names for variables
Answer» E. All of the above are valid names for variables
4271.

Inheritance is the principle that

A. classes with the same name must be derived from one another
B. knowledge of a general category can be applied to more specific objects
C. C++ functions may be used only if they have logical predecessors
D. one function name may invoke different methods
Answer» C. C++ functions may be used only if they have logical predecessors
4272.

The name of a function ends with

A. double quotes
B. single quotes
C. parenthesis
D. #
E. None of the above
Answer» D. #
4273.

You typically initialize a String variable to _____

A. an asterisk
B. a space enclosed in single quotes
C. the number 0
D. a zero-length string
Answer» E.
4274.

The set of instructions for how to tie a bow is an example of the _____ structure

A. control
B. repetition
C. selection
D. sequence
E. switching
Answer» E. switching
4275.

If no exception is thrown ________

A. a catch block will cause an error
B. the first catch block coded will execute
C. the last catch block coded with execute
D. any catch blocks coded with be bypassed
Answer» E.
4276.

A program that predicts the exact sequence in which events will take place is said to be ________

A. compiled
B. interpreted
C. procedural
D. object-oriented
Answer» D. object-oriented
4277.

A blueprint for creating an object in C++ is called _____

A. a class
B. an instance
C. a map
D. a pattern
E. a sketch
Answer» B. an instance
4278.

The last statement in a function is often a(n) _____

A. return
B. goodbye
C. finish
D. endfunction
Answer» B. goodbye
4279.

When the function int someFunction(char c) throw( ) is executed, _____

A. it can throw anything
B. it may throw an integer
C. it may throw a character
D. it may not throw anything
Answer» E.
4280.

The two statements that can be used to change the flow of control are

A. if and switch
B. if and while
C. switch and do-while
D. break and continue
E. None of the above
Answer» B. if and while
4281.

If p and q are assigned the values 2 and 3 respectively then the statement p = q++

A. gives an error message
B. assigns a value 4 to p
C. assigns a value 3 to p
D. assigns a value 5 to p
E. None of the above
Answer» D. assigns a value 5 to p
4282.

Which of the following is the insertion operator?

A. >>
B. <<
C. //
D. /*
E. both (a) and (b)
Answer» C. //
4283.

In analyzing the compilation of PL/I program, the description "resolving symbolic address (labels) and generating machine language" is associated with

A. Assembly and output
B. Code generation
C. Storage assignment
D. Syntax analysis
Answer» B. Code generation
4284.

Convert the .WORD d#790 assemblylanguage pseudo-ops into hexadecimal machine language:

A. 0111EF
B. 03 16
C. F8
D. 42 65 61 72
Answer» C. F8
4285.

A certain power transformer has a turns ratio of 5. What voltage can you expect at the secondary winding when you apply 120 V to the primary winding?

A. 4.73
B. 0.4 V
C. 24 V
D. 600 V
E. None of the above
Answer» D. 600 V
4286.

Which one of the following statements is true for the currents in a parallel RC circuit?

A. The total current is equal to the sum of the currents for the resistance and capacitance
B. The current always has the same amplitude and phase for every part of the circuit
C. The total current is less than the sum of the currents for the resistance and capacitance
D. The total current. is greater than the sum of the currents for the resistance and capacitance
E. None of the above
Answer» B. The current always has the same amplitude and phase for every part of the circuit
4287.

Which of the following program is not a utility?

A. Debugger
B. Editor
C. Spooler
D. All of the above
Answer» D. All of the above
4288.

Which one of the following statements is true for current flowing in a parallel circuit?

A. The amount of current flow through each branch of a parallel circuit can be different, depending on the resistance of each branch part and the amount of voltage applied to it
B. The same current always flows through every part of a parallel circuit
C. The total current in a parallel circuit is equal to the total voltage multiplied by the total resistance
D. The total current in a parallel circuit is always less than the smallest amount of current
E. None of the above
Answer» B. The same current always flows through every part of a parallel circuit
4289.

Holes are the minority carriers in which type of semiconductor?

A. Extrinsic
B. Intrinsic
C. n-type
D. p-type
E. None of the above
Answer» D. p-type
4290.

Doubling the number of turns of wire in an inductor:

A. reduces the value of inductance by one-half
B. multiplies the value of inductance by two
C. multiplies the value of inductance by four
D. reduces the value of inductance by one-fourth
E. None of the above
Answer» D. reduces the value of inductance by one-fourth
4291.

A farad is defined as the amount of capacitance necessary for:

A. dissipating 1 W of power
B. causing an ac phase shift greater than 90 degree
C. storing 1 V for 1 second
D. changing the voltage on the plates at the rate of 1 V per second when 1 A of current is flowing
E. None of the above
Answer» E. None of the above
4292.

The Process Manager has to keep track of:

A. the status of each program
B. the priority of each program
C. the information management support to a programmer using the system
D. both (a) and (b)
Answer» E.
4293.

In which way(s) can a macro processor for assembly language be implemented?

A. independent two-pass processor
B. independent one-pass processor
C. processor incorporated into pass of a standard two-pass assembler
D. All of the above
Answer» E.
4294.

A system program that combines the separately compiled modules of a program into a form suitable for execution

A. assembler
B. linking loader
C. cross compiler
D. load and go
Answer» C. cross compiler
4295.

A compiler is

A. a program that places programs into memory and prepares them for execution
B. a program that automate the translation of assembly language into machine language
C. program that accepts a program written in a high level language and produces an object program
D. is a program that appears to execute a source program as if it were machine language
Answer» D. is a program that appears to execute a source program as if it were machine language
4296.

In an absolute loading scheme, which loader function is accomplished by loader?

A. Reallocation
B. Allocation
C. Linking
D. Loading
Answer» E.
4297.

Convert the 080D4E machine language instructions into assembly language, assuming that they were not generated by pseudo-ops:

A. ASRA
B. LOADA h#OD4E, i
C. STOREA h#014B, d
D. ADDA h#01FE, i
Answer» C. STOREA h#014B, d
4298.

Which of the following system program forgoes the production of object code to generate absolute machine code and load it into the physical main storage location from which it will be executed immediately upon completion of the assembly?

A. two pass assembler
B. load-and-go assembler
C. macroprocessor
D. compiler
Answer» C. macroprocessor
4299.

Convert the 48 machine language instructions into assembly language, assuming that they were not generated by pseudo-ops:

A. ASRA
B. LOADA h#OD4E, i
C. STOREA h#014B, d
D. ADDA h#01FE, i
Answer» B. LOADA h#OD4E, i
4300.

The macro processor must perform

A. recognize macro definitions and macro calls
B. save the macro definitions
C. expand macro calls and substitute arguments
D. All of the above
Answer» E.