McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Mechanical Engineering , Programming Languages .
1. |
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» C. software dependent |
2. |
Which of the following is a functional programming language? |
A. | c |
B. | c++ |
C. | ml |
D. | ada |
Answer» C. ml |
3. |
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» D. system acceptance |
4. |
_________ is a module based programming language |
A. | c |
B. | c++ |
C. | ml |
D. | ada |
Answer» D. ada |
5. |
Which of the following is an object oriented programming language? |
A. | c |
B. | c++ |
C. | ml |
D. | ada |
Answer» B. c++ |
6. |
Which of the following is secondary memory device? |
A. | keyboard |
B. | disk |
C. | alu |
D. | all of the above |
Answer» B. disk |
7. |
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» A. the sdlc is not iterative. |
8. |
Which step of SDLC performs cost/benefit analysis? |
A. | feasibility study |
B. | analysis |
C. | design |
D. | none of these |
Answer» B. analysis |
9. |
The detailed study of existing system is referred to as |
A. | system planning |
B. | system analysis |
C. | feasibility study |
D. | design dfd |
Answer» B. system analysis |
10. |
Prototyping aims at |
A. | end user understanding and approval |
B. | program logic |
C. | planning of dataflow organization |
D. | none of these |
Answer» A. end user understanding and approval |
11. |
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» A. mini-model of existing system |
12. |
The Logic programming technique is implemented in : |
A. | declarative programming |
B. | object oriented programming |
C. | functional programming |
D. | generic programming |
Answer» A. declarative programming |
13. |
ALU stands for: |
A. | array logic unit |
B. | application logic unit |
C. | arithmetic logic unit |
D. | none of these |
Answer» C. arithmetic logic unit |
14. |
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» A. temporary,permanent |
15. |
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» C. assembly languages |
16. |
Which of the following is machine independence program? |
A. | high level language |
B. | low level language |
C. | assembly language |
D. | machine language |
Answer» A. high level language |
17. |
For specifying the syntax of a language _____________ is used. |
A. | context free language |
B. | regular expression |
C. | finite automata |
D. | none of these |
Answer» A. context free language |
18. |
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» A. format of a program |
19. |
The graphical representation of syntax is represented by ___________. |
A. | finite diagram |
B. | er diagram |
C. | syntax diagram |
D. | none of these |
Answer» C. syntax diagram |
20. |
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» B. problem identification |
21. |
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» C. it is required to create a load module |
22. |
#include<stdio.h> #define count 10; void main() { printf("%d",count); } |
A. | 10 |
B. | syntax error |
C. | 0 |
D. | none of these |
Answer» B. syntax error |
23. |
FORTRAN stands for: |
A. | free translator |
B. | formula translator |
C. | formula translation |
D. | free translation |
Answer» B. formula translator |
24. |
Which is the longest scope in the following code?
|
A. | x |
B. | y |
C. | z |
D. | both a and b |
Answer» A. x |
25. |
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» C. unpredictable |
26. |
In C, reference is declared using the symbol |
A. | * |
B. | & |
C. | && |
D. | ! |
Answer» B. & |
27. |
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» B. call by value |
28. |
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» A. temporary, permanent |
29. |
What is relationship between reliability and failure? |
A. | direct relation |
B. | inverse relation |
C. | no relation |
D. | varying relationdepending upon the situation |
Answer» B. inverse relation |
30. |
Language efficiency can be achieved by ___________. |
A. | maximum speed |
B. | less memory consumption |
C. | reusability |
D. | all of these |
Answer» D. all of these |
31. |
Programming language FOTRAN stands for: |
A. | free translator |
B. | formula translator |
C. | formula translation |
D. | free translation |
Answer» B. formula translator |
32. |
The full form of BNF is_____________. |
A. | beginning normal form |
B. | backus naur form |
C. | best normal form |
D. | none of these |
Answer» B. backus naur form |
33. |
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» B. meaning of a program |
34. |
What is the output of the following code?
|
A. | name will contain value 10 |
B. | p will contain 10 |
C. | syntax error |
D. | none of these |
Answer» C. syntax error |
35. |
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» A. int sum(int,int); |
36. |
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» C. runtime storage |
37. |
What is relationship between reliability and failure? |
A. | direct relationship |
B. | inverse relationship |
C. | no relation |
D. | varying relation depending upon the situation |
Answer» D. varying relation depending upon the situation |
38. |
#include <stdio.h>
|
A. | 10 |
B. | syntax error |
C. | infinity |
D. | none of these |
Answer» B. syntax error |
39. |
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» B. integer data type |
40. |
Class is _______. |
A. | template which associates code and data |
B. | data abstraction |
C. | implementation of abstract data type |
D. | object oriented |
Answer» D. object oriented |
41. |
What will be the output of following code? #include <iostream> using namespace std;
|
A. | 0 1 2 |
B. | 1 2 3 |
C. | syntax error |
D. | none of these |
Answer» C. syntax error |
42. |
What is the output of following code?
|
A. | syntax error |
B. | 3 4 5 6 7 |
C. | 1 2 3 4 5 |
D. | none of these |
Answer» B. 3 4 5 6 7 |
43. |
Which size should be used when double precision is required? |
A. | float |
B. | double |
C. | long double |
D. | none of these |
Answer» B. double |
44. |
#include <iostream>
|
A. | matching |
B. | non matching |
C. | syntax error |
D. | none of these |
Answer» B. non matching |
45. |
Explicit type conversion is known as_____. |
A. | conversion |
B. | casting |
C. | separation |
D. | none of these |
Answer» B. casting |
46. |
What is the role of compiler by templates? |
A. | probability |
B. | type-safe |
C. | code elimination |
D. | allof these |
Answer» B. type-safe |
47. |
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» B. abstract data type |
48. |
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» C. a type system that guarantees not to generate type errors. |
49. |
Identify the built-in data type__________________. |
A. | struct |
B. | class |
C. | int |
D. | enum |
Answer» C. int |
50. |
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» B. the boolean value is evaluated to false |
Done Studing? Take A Test.
Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.