MCQOPTIONS
Saved Bookmarks
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.
| 4151. |
Format flags may be combined using |
| A. | the bitwise OR operator (|) |
| B. | the logical OR operator (||) |
| C. | the bitwise AND operator (&) |
| D. | the logical AND operator (&&) |
| Answer» B. the logical OR operator (||) | |
| 4152. |
The use of the break statement in a switch statement is |
| A. | optional |
| B. | compulsory |
| C. | not allowed. It gives an error message |
| D. | to check an error |
| E. | None of the above |
| Answer» B. compulsory | |
| 4153. |
The advantage(s) of incorporating the macro processor into pass 1 is/ are: |
| A. | many functions do not have to be implemented twice |
| B. | Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler |
| C. | more flexibility is available to the programmer in which he/she may use all the features of the assembler in conjunction with macros |
| D. | All of the above |
| Answer» E. | |
| 4154. |
In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of register? |
| A. | absolute mode |
| B. | indirect mode |
| C. | immediate mode |
| D. | index mode |
| Answer» E. | |
| 4155. |
A self-relocating program is one which |
| A. | cannot be made to execute in any area of storage other than the one designated for it at the time of its coding or translation |
| B. | consists of a program and relevant information for its relocation |
| C. | can itself perform the relocation of its address-sensitive portions |
| D. | All of the above |
| Answer» D. All of the above | |
| 4156. |
In an intrinsic semiconductor, the number of free electrons |
| A. | Equals the number of holes |
| B. | Is less than the number of holes |
| C. | Is greater than the number of holes |
| D. | Impossible to say |
| E. | None of the above |
| Answer» B. Is less than the number of holes | |
| 4157. |
A device that converts mechanical into electrical energy is? |
| A. | solar cell |
| B. | thermocouple |
| C. | chemical cell |
| D. | generator |
| E. | None of the above |
| Answer» E. None of the above | |
| 4158. |
Which one of the following kinds of materials has the lowest permeability? |
| A. | A diamagnetic material |
| B. | A paramagnetic material |
| C. | A feiTomagnetic material |
| D. | All of the above |
| E. | None of the above |
| Answer» B. A paramagnetic material | |
| 4159. |
The total impedance of a parallel RLC circuit: |
| A. | always increases as the applied frequency increases |
| B. | is equal to the sum of the values of resistance, inductive reactance and capacitive reactance |
| C. | always decreases as the applied frequency increases |
| D. | is maximum at the resonant frequency |
| E. | None of the above |
| Answer» E. None of the above | |
| 4160. |
The rise time of a pulse waveform is the time required for the voltage to rise: |
| A. | from zero to its rms value |
| B. | from zero to its peak value |
| C. | from 10% of the peak value to 70.7% of the peak value |
| D. | from 10% of the peak value to 90% of the peak value |
| E. | None of the above |
| Answer» E. None of the above | |
| 4161. |
A certain electromagnet has 1000 turns of wire. How much current must flow through the coil in order to generate an mmf of 100 ampere-turns? |
| A. | 0.1 A |
| B. | 1000 A |
| C. | 10 A |
| D. | 100 A |
| E. | None of the above |
| Answer» C. 10 A | |
| 4162. |
If a load resistance is 1 kW, a stiff current source has a resistance of |
| A. | At least 10 Ohm |
| B. | Less than 10 Ohm |
| C. | More than 100 k Ohm |
| D. | Less than 100 k Ohm |
| E. | None of the above |
| Answer» D. Less than 100 k Ohm | |
| 4163. |
A dielectric material is: |
| A. | a good conductor |
| B. | a good insulator |
| C. | a poor conductor of electrostatic fields |
| D. | a good conductor of magnetic fields |
| E. | None of the above |
| Answer» C. a poor conductor of electrostatic fields | |
| 4164. |
A flashlight battery has internal resistance of 1W. For what values of load resistance does the flashlight battery appear stiff? |
| A. | 60 Ohm |
| B. | 50 Ohm |
| C. | 100 Ohm or more |
| D. | 10 Ohm |
| E. | None of the above |
| Answer» D. 10 Ohm | |
| 4165. |
In an absolute loading scheme, which loader function is accomplished by assembler |
| A. | Reallocation |
| B. | Allocation |
| C. | Linking |
| D. | Loading |
| Answer» B. Allocation | |
| 4166. |
Convert the .BYTE h#F8 assembly language pseudo-ops into hexadecimal machine language: |
| A. | 0111EF |
| B. | 03 16 |
| C. | F8 |
| D. | 42 65 61 72 |
| Answer» D. 42 65 61 72 | |
| 4167. |
In what module, multiple instances of execution will yield the same result even if one instancy has not terminated before the next one has begun? |
| A. | non-reusable module |
| B. | serially reusable |
| C. | reenterable module |
| D. | recursive module |
| Answer» D. recursive module | |
| 4168. |
A loader 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. | is a program that appears to execute a source program as if it were machine language |
| D. | program that accepts a program written in a high level language and produces an object program |
| Answer» B. a program that automate the translation of assembly language into machine language | |
| 4169. |
Bug means |
| A. | A logical error in a program |
| B. | A difficult syntax error in a program |
| C. | Documenting programs using an efficient documentation tool |
| D. | All of the above |
| Answer» B. A difficult syntax error in a program | |
| 4170. |
A base register table |
| A. | is a term that refers to the control programs of an operating system |
| B. | is used to remember which of the general-purpose registers are currently available as base registers, and what base addresses they contain |
| C. | allows multiple programs to reside in separate areas of core at the same time |
| D. | allows the programmer to write base registers and displacements explicitly in the source program |
| Answer» C. allows multiple programs to reside in separate areas of core at the same time | |
| 4171. |
A sequence of instructions, in a computer language, to get the desired result, is known as |
| A. | Algorithm |
| B. | Decision Table |
| C. | Program |
| D. | All of the above |
| Answer» D. All of the above | |
| 4172. |
The function(s) of the Storage Assignment is/are: |
| A. | to assign storage to all variables referenced in the source program |
| B. | to assign storage to all temporary locations that are necessary for intermediate results |
| C. | to assign storage to literals, and to ensure that the storage is allocated and appropriate locations are initialized |
| D. | All of the above |
| Answer» E. | |
| 4173. |
An algorithm is best described as |
| A. | A computer language |
| B. | A step by step procedure for solving a problem |
| C. | A branch of mathematics |
| D. | All of the above |
| Answer» C. A branch of mathematics | |
| 4174. |
Indicate whether the statement LDA B is a statement, in |
| A. | Machine language |
| B. | Assembly language |
| C. | High level language |
| D. | All of the above |
| Answer» C. High level language | |
| 4175. |
Convert the CHARI h#000F, s assembly language instructions into hexadecimal machine language: |
| A. | 0111EF |
| B. | 9001E6 |
| C. | DA000F |
| D. | 40 |
| Answer» D. 40 | |
| 4176. |
The table created by lexical analysis to describe all literals used in the source program, is: |
| A. | Terminal table |
| B. | Literal table |
| C. | Identifier table |
| D. | Reductions |
| Answer» C. Identifier table | |
| 4177. |
Advantage(s) of using assembly language rather than machine language is/are: |
| A. | It is mnemonic and easy to read |
| B. | Addresses any symbolic, not absolute |
| C. | Introduction of data to program is easier |
| D. | All of the above |
| Answer» E. | |
| 4178. |
The action of parsing the source program into the proper syntactic classes is known as |
| A. | syntax analysis |
| B. | lexical analysis |
| C. | interpretation analysis |
| D. | general syntax analysis |
| Answer» C. interpretation analysis | |
| 4179. |
When using the standard files that come with the C++ compiler, you should surround the header file name with _____ |
| A. | square brackets |
| B. | angle brackets |
| C. | parentheses |
| D. | quotes |
| Answer» C. parentheses | |
| 4180. |
The loop condition in a flowchart is represented by a(n) _____ |
| A. | diamond |
| B. | oval |
| C. | parallelogram |
| D. | rectangle |
| Answer» B. oval | |
| 4181. |
The function whose prototype is Item getData(void); returns _____ |
| A. | the address of a structure |
| B. | a copy of a structure |
| C. | a pointer to a structure |
| D. | nothing |
| Answer» E. | |
| 4182. |
A _____ is a single item of information about a person, place, or thing |
| A. | data file |
| B. | field |
| C. | program file |
| D. | record |
| Answer» C. program file | |
| 4183. |
Which (if any) of the following is NOT a programmer-defined type |
| A. | an array |
| B. | a structure |
| C. | a class |
| D. | All of the above are programmer-defined types |
| Answer» E. | |
| 4184. |
Files whose names end in .h are called _____ files |
| A. | handy |
| B. | header |
| C. | helper |
| D. | helping |
| Answer» C. helper | |
| 4185. |
The feature that allows the same operations to be carried out differently depending on the object is _____ |
| A. | polymorphism |
| B. | polygamy |
| C. | inheritane |
| D. | multitasking |
| Answer» B. polygamy | |
| 4186. |
A major advantage of inheritance is |
| A. | reducing the time it takes to create new objects |
| B. | not having to think about how objects will be used |
| C. | reducing the amount of memory required to execute a progrma |
| D. | enabling people who have not studied programming to create useful applications |
| Answer» B. not having to think about how objects will be used | |
| 4187. |
When a variable exists or is accessible, it is said to be _____ |
| A. | immediate |
| B. | in the path |
| C. | available |
| D. | in scope |
| Answer» E. | |
| 4188. |
Which of the following is a C++ class? |
| A. | >> |
| B. | read() |
| C. | cin |
| D. | iostream |
| Answer» E. | |
| 4189. |
Using new may result in less _____ memory than using an array |
| A. | wasted |
| B. | used |
| C. | RAM |
| D. | ROM |
| Answer» B. used | |
| 4190. |
The most common operation used in constructors is |
| A. | addition |
| B. | overloading |
| C. | assignment |
| D. | polymorphism |
| Answer» D. polymorphism | |
| 4191. |
In a simple 'if' statement with no 'else'. What happens if the condition following the 'if is false? |
| A. | the program searches for the last else in the program |
| B. | nothing |
| C. | control 'falls through' to the statement following 'if |
| D. | the body of the statement is executed |
| E. | None of the above |
| Answer» D. the body of the statement is executed | |
| 4192. |
If two types of errors may be thrown, you should write _______ |
| A. | no catch blocks |
| B. | one catch block with two arguments |
| C. | two catch block-one with an argument, and one without |
| D. | two catch blocks with one argument each |
| Answer» E. | |
| 4193. |
Assume a program contains a void function named displayName, which requires no formal parameters. Which of the following is a correct function prototype for this function? |
| A. | displayName; |
| B. | displayName(void); |
| C. | void displayName; |
| D. | void displayName(); |
| E. | void displayName(none); |
| Answer» E. void displayName(none); | |
| 4194. |
A file pointer always contains the address of the file |
| A. | True |
| B. | False |
| Answer» C. | |
| 4195. |
You declare a function with a function _____, which is typically entered at the beginning of the program, below the #include directives |
| A. | call |
| B. | prototype declaration |
| C. | definition |
| D. | pointer |
| Answer» C. definition | |
| 4196. |
When accessing a structure member, the identifier to the left of the dot operator is the name of |
| A. | a structure member |
| B. | a structure tag |
| C. | a structure variable |
| D. | the keyword struct |
| Answer» D. the keyword struct | |
| 4197. |
Assume that a program contains a programmer-defined void function. When C++ encounters the function's closing brace (}), C++ returns to the statement _____ |
| A. | immediately above the statement that called the function |
| B. | that called the function |
| C. | immediately below the statement that called the function |
| Answer» D. | |
| 4198. |
Inheritance occurs when a class adopts all the traits of _________ |
| A. | an object |
| B. | a parent class |
| C. | a variable |
| D. | a function |
| Answer» C. a variable | |
| 4199. |
Template classes that have already been written to perform common class tasks are called _____ |
| A. | container classes |
| B. | receptacle classes |
| C. | repository classes |
| D. | alembic classes |
| Answer» B. receptacle classes | |
| 4200. |
Functions that returns information about an object's state can be classified as ________ |
| A. | inspector functions |
| B. | mutator functions |
| C. | auxiliary functions |
| D. | manager functions |
| Answer» B. mutator functions | |