

MCQOPTIONS
Saved Bookmarks
This section includes 199 Mcqs, each offering curated multiple-choice questions to sharpen your Mechanical Engineering knowledge and support exam preparation. Choose a topic below to get started.
151. |
When the type conversion is required? |
A. | the value to be stored is in the form not supported by data type |
B. | the value supported is beyond the max limit |
C. | to reduce the memory in use associated with that value |
D. | all of these |
Answer» E. | |
152. |
Identify the built-in data type__________________. |
A. | struct |
B. | class |
C. | int |
D. | enum |
Answer» D. enum | |
153. |
What will happen if null pointer is converted to boolean___________. |
A. | the boolean value is evaluated to true |
B. | the boolean value is evaluated to false |
C. | errror is raised |
D. | none of these |
Answer» C. errror is raised | |
154. |
What is strong type system? |
A. | the type system in which only built-in data types are allowed. |
B. | the type system in which only user defined data types are allowed. |
C. | a type system that guarantees not to generate type errors. |
D. | none of these |
Answer» D. none of these | |
155. |
A mathematical model with a collection of operations defined on that model is called__________. |
A. | data structure |
B. | abstract data type |
C. | built in data type |
D. | none of these |
Answer» C. built in data type | |
156. |
What is the role of compiler by templates? |
A. | probability |
B. | type-safe |
C. | code elimination |
D. | allof these |
Answer» C. code elimination | |
157. |
Explicit type conversion is known as_____. |
A. | conversion |
B. | casting |
C. | separation |
D. | none of these |
Answer» C. separation | |
158. |
Which size should be used when double precision is required? |
A. | float |
B. | double |
C. | long double |
D. | none of these |
Answer» C. long double | |
159. |
What will be the output of the follwing code? #include
|
A. | matching |
B. | non matching |
C. | syntax error |
D. | none of these |
Answer» C. syntax error | |
160. |
What is the output of following code? #include |
A. | syntax error |
B. | 3 4 5 6 7 |
C. | 1 2 3 4 5 |
D. | none of these |
Answer» C. 1 2 3 4 5 | |
161. |
Class is _______. |
A. | template which associates code and data |
B. | data abstraction |
C. | implementation of abstract data type |
D. | object oriented |
Answer» E. | |
162. |
When variable used in the program is a whole number,then variable is stored as ___________. |
A. | string data type |
B. | integer data type |
C. | negative whole number |
D. | positive whole number |
Answer» C. negative whole number | |
163. |
What will be the output of following code? #include
|
A. | 0 1 2 |
B. | 1 2 3 |
C. | syntax error |
D. | none of these |
Answer» D. none of these | |
164. |
During execution of a program the compiler demands for block of memory to operating system.This block is called as _____________. |
A. | code memory |
B. | data memory |
C. | runtime storage |
D. | none of these |
Answer» D. none of these | |
165. |
Which of the following represents correct syntax for function declaration? |
A. | int sum(int,int); |
B. | int sum(int,int){} |
C. | int sum; |
D. | both a and c |
Answer» B. int sum(int,int){} | |
166. |
What is the output of the following code? Int main(void) { char name='P'; 'P'=10;return 0; } |
A. | name will contain value 10 |
B. | p will contain 10 |
C. | syntax error |
D. | none of these |
Answer» D. none of these | |
167. |
The full form of BNF is_____________. |
A. | beginning normal form |
B. | backus naur form |
C. | best normal form |
D. | none of these |
Answer» C. best normal form | |
168. |
Programming language FOTRAN stands for: |
A. | free translator |
B. | formula translator |
C. | formula translation |
D. | free translation |
Answer» C. formula translation | |
169. |
Language efficiency can be achieved by ___________. |
A. | maximum speed |
B. | less memory consumption |
C. | reusability |
D. | all of these |
Answer» E. | |
170. |
Semantic of a program means- |
A. | format of a program |
B. | meaning of a program |
C. | simply content of a program |
D. | none of these |
Answer» C. simply content of a program | |
171. |
What is relationship between reliability and failure? |
A. | direct relation |
B. | inverse relation |
C. | no relation |
D. | varying relationdepending upon the situation |
Answer» C. no relation | |
172. |
The difference between memory and storage is that memory is __________________ and storage is __________. |
A. | temporary, permanent |
B. | permanent,temporary |
C. | slow,fast |
D. | all of above |
Answer» B. permanent,temporary | |
173. |
Which is the longest scope in the following code? #include
|
A. | x |
B. | y |
C. | z |
D. | both a and b |
Answer» B. y | |
174. |
The default parameter passing method used in C++ is ____________. |
A. | call by reference |
B. | call by value |
C. | call by name |
D. | none of these |
Answer» C. call by name | |
175. |
The value of an automatic variable that is declared but not initialized will be |
A. | 0 |
B. | -1 |
C. | unpredictable |
D. | none of these |
Answer» D. none of these | |
176. |
Progarmming Language FORTRAN stands for: |
A. | free translator |
B. | formula translator |
C. | formula translation |
D. | free translation |
Answer» C. formula translation | |
177. |
#include
|
A. | 10 |
B. | syntax error |
C. | none of these |
Answer» C. none of these | |
178. |
In C, reference is declared using the symbol |
A. | * |
B. | & |
C. | && |
D. | ! |
Answer» C. && | |
179. |
Which one of the following is not the stage of software development? |
A. | requirement analysis and gathering |
B. | problem identification |
C. | software design |
D. | maintenance |
Answer» C. software design | |
180. |
The Linker __________________. |
A. | is similar to interpreter |
B. | uses source code as its input |
C. | it is required to create a load module |
D. | none of these |
Answer» D. none of these | |
181. |
The graphical representation of syntax is represented by ___________. |
A. | finite diagram |
B. | er diagram |
C. | syntax diagram |
D. | none of these |
Answer» D. none of these | |
182. |
Semantic of aprogram means |
A. | format of a program |
B. | meaning of a program |
C. | simply content of a program |
D. | none of these |
Answer» B. meaning of a program | |
183. |
Which of the following is machine independence program? |
A. | high level language |
B. | low level language |
C. | assembly language |
D. | machine language |
Answer» B. low level language | |
184. |
For specifying the syntax of a language _____________ is used. |
A. | context free language |
B. | regular expression |
C. | finite automata |
D. | none of these |
Answer» B. regular expression | |
185. |
Which programming languages are classified as low level languages? |
A. | cobol,fortran,pascal |
B. | prolog 2,expert systems |
C. | assembly languages |
D. | knowledge based systems |
Answer» D. knowledge based systems | |
186. |
The difference between memory and storage is that memory is _________ and storage is _________. |
A. | temporary,permanent |
B. | permanent,temporary |
C. | slow,fast |
D. | all of above |
Answer» B. permanent,temporary | |
187. |
ALU stands for: |
A. | array logic unit |
B. | application logic unit |
C. | arithmetic logic unit |
D. | none of these |
Answer» D. none of these | |
188. |
The Logic programming technique is implemented in : |
A. | declarative programming |
B. | object oriented programming |
C. | functional programming |
D. | generic programming |
Answer» B. object oriented programming | |
189. |
What is a prototype |
A. | mini-model of existing system |
B. | mini-model of proposed system |
C. | working model of existing system |
D. | none of these |
Answer» B. mini-model of proposed system | |
190. |
Prototyping aims at |
A. | end user understanding and approval |
B. | program logic |
C. | planning of dataflow organization |
D. | none of these |
Answer» B. program logic | |
191. |
The detailed study of existing system is referred to as |
A. | system planning |
B. | system analysis |
C. | feasibility study |
D. | design dfd |
Answer» C. feasibility study | |
192. |
Which step of SDLC performs cost/benefit analysis? |
A. | feasibility study |
B. | analysis |
C. | design |
D. | none of these |
Answer» C. design | |
193. |
Which of the following is secondary memory device? |
A. | keyboard |
B. | disk |
C. | alu |
D. | all of the above |
Answer» C. alu | |
194. |
Which of the following is a true statement regarding the SDLC phases. |
A. | the sdlc is not iterative. |
B. | the life cycle is always a sequentially ordered sets of phases. |
C. | it is not possible to completed some activities in one phase in parallel with those of another phase. |
D. | the life cycle may be thought of as a circular process. |
Answer» B. the life cycle is always a sequentially ordered sets of phases. | |
195. |
Which of the following is an object oriented programming language? |
A. | c |
B. | c++ |
C. | ml |
D. | ada |
Answer» C. ml | |
196. |
_________ is a module based programming language |
A. | c |
B. | c++ |
C. | ml |
D. | ada |
Answer» E. | |
197. |
Which of the following phase of software development is associated with creation of test data ? |
A. | system analysis |
B. | design |
C. | coding |
D. | system acceptance |
Answer» E. | |
198. |
Which of the following is a functional programming language? |
A. | c |
B. | c++ |
C. | ml |
D. | ada |
Answer» D. ada | |
199. |
Which of the following is not the part of software development phases? |
A. | software designing |
B. | software validation |
C. | software dependent |
D. | software implementation |
Answer» D. software implementation | |