McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Computer Applications (BCA) , Programming Languages .
1. |
In object oriented Programming the program is divided into ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐. |
A. | class |
B. | object |
C. | function |
D. | none of these |
Answer» B. object |
2. |
Which one is the Object Oriented Programming language? |
A. | Cobol |
B. | C |
C. | C++ |
D. | both C & C++ |
Answer» C. C++ |
3. |
The wrapping up of data and functions into a single unit is called ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐. |
A. | inheritance |
B. | encapsulation |
C. | data hiding |
D. | polymorphism |
Answer» B. encapsulation |
4. |
The process by which objects of one class acquire the properties of objects of another class is called ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ . |
A. | abstraction |
B. | inheritance |
C. | encapsulation |
D. | polymorphism |
Answer» B. inheritance |
5. |
In OOP which cocept provides the idea of reusability. |
A. | inheritance |
B. | encapsulation |
C. | data hiding |
D. | polymorphism |
Answer» A. inheritance |
6. |
The process of making an operator to exhibit different behaviors in different instances is called ‐‐‐ ‐‐. |
A. | function overloading |
B. | operator overloading |
C. | inheritance |
D. | none of these |
Answer» B. operator overloading |
7. |
The process of making a function to exhibit different behaviors in different instances is called ‐‐‐‐‐. |
A. | function overloading |
B. | operator overloading |
C. | inheritance |
D. | none of these |
Answer» A. function overloading |
8. |
Objects communicate with one another by using ‐‐‐‐‐‐‐‐‐‐. |
A. | message passing |
B. | operator overloading |
C. | inheritance |
D. | both a & b |
Answer» A. message passing |
9. |
Through ‐‐‐‐‐‐‐‐ we can eliminate redundant code and extend the use of existing class. |
A. | inheritance |
B. | operator overloading |
C. | encapsulation |
D. | both a & b |
Answer» A. inheritance |
10. |
The ‐‐‐‐‐‐‐‐‐ principle helps the programmer to build secure programs. |
A. | operator overloading |
B. | encapsulation |
C. | data hiding |
D. | polymorphism |
Answer» C. data hiding |
11. |
What are the basic run time entities in an object oriented program? |
A. | objects |
B. | functions |
C. | datas |
D. | none of these |
Answer» A. objects |
12. |
OOPs follows ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ approach during program design. |
A. | top down |
B. | bottom ‐up |
C. | both a & b |
D. | none of these |
Answer» B. bottom ‐up |
13. |
The technique of Hiding internal details in an object is called‐‐‐‐‐ |
A. | encapsulation |
B. | functions |
C. | Abstraction |
D. | inheritance |
Answer» C. Abstraction |
14. |
classes are ‐‐‐‐‐‐‐‐ datatype. |
A. | derived |
B. | user‐defined |
C. | built‐in |
D. | both a & c |
Answer» B. user‐defined |
15. |
‐‐‐‐‐‐‐‐‐‐ provides interface between the object’s data and program. |
A. | object |
B. | functions |
C. | class |
D. | polymorphism |
Answer» B. functions |
16. |
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ refers to the linking of procedure call to the code to be executed in response to the call. |
A. | polymorphism |
B. | functions |
C. | dynamic binding |
D. | object |
Answer» C. dynamic binding |
17. |
A ‐‐‐‐‐‐‐‐ for an object is a request for execution of a procedure. |
A. | object |
B. | functions |
C. | dynamic binding |
D. | message |
Answer» D. message |
18. |
The << operator is known as‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐. |
A. | put to |
B. | get from |
C. | insertion |
D. | both a & c |
Answer» D. both a & c |
19. |
The >> operator is known as‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐. |
A. | put to |
B. | get from |
C. | extraction |
D. | both b & c |
Answer» D. both b & c |
20. |
‐‐‐‐‐‐‐‐ contains function prototype for the standard input and output functions. |
A. | iomanip.h |
B. | iostream.h |
C. | stdlib.h |
D. | both a & b |
Answer» B. iostream.h |
21. |
In C++ default return type for all the functions is ‐‐‐‐‐‐‐‐‐. |
A. | int |
B. | void |
C. | float |
D. | none of these |
Answer» A. int |
22. |
Tne multiple use of input and output operator is called ……………. |
A. | polymorphism |
B. | inheritance |
C. | cascading |
D. | none of these. |
Answer» C. cascading |
23. |
Which of the following is not a feature of OOPs. |
A. | polymorphism |
B. | inheritance |
C. | dynamic binding |
D. | none of these. |
Answer» D. none of these. |
24. |
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ model is also known as linear sequential model. |
A. | prototype model |
B. | waterfall model |
C. | spiral model |
D. | none of these |
Answer» B. waterfall model |
25. |
In UML ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ is a collection of things tied together through relationships. |
A. | things |
B. | relationships |
C. | diagrams |
D. | none of these |
Answer» C. diagrams |
26. |
A ‐‐‐‐‐‐‐‐ is a physical device that exists at run time. |
A. | node |
B. | package |
C. | both a and b |
D. | none of these |
Answer» A. node |
27. |
Which of the following is a UML relationship. |
A. | dependency |
B. | association |
C. | generalization |
D. | all of the above |
Answer» D. all of the above |
28. |
Which of the following is a UML constituents |
A. | things |
B. | relationships |
C. | diagrams |
D. | all of the above |
Answer» D. all of the above |
29. |
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ are conceptual things which exists only during the development process. |
A. | Package |
B. | node |
C. | class |
D. | none of the above |
Answer» A. Package |
30. |
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ relationship indicates that the change to an independent thing will affect the dependent thing. |
A. | inheritance |
B. | dependency |
C. | association |
D. | aggregation |
Answer» B. dependency |
31. |
‐‐‐‐‐‐‐ can represent items of varying data types to an item. |
A. | Class |
B. | Array |
C. | Structures |
D. | Object |
Answer» C. Structures |
32. |
‐‐‐‐‐‐ are the smallest or the atomic elements of a language. |
A. | Identifiers |
B. | Literals |
C. | Keywords |
D. | Tokens |
Answer» D. Tokens |
33. |
Blanks, tabs, newlines, form feeds and comments are collectively called ‐‐‐‐‐‐‐ |
A. | Blank fields |
B. | White space |
C. | Null values |
D. | Literals |
Answer» B. White space |
34. |
Find the false statement from the following |
A. | An identifier in C++ is defined as an unlimited sequence of characters. |
B. | The first character must be an alphabet followed by digits or underscore or alphabets. |
C. | Identifiers are not case sensitive. |
D. | You can use both uppercase and lower case alphabets in the same identifier. |
Answer» C. Identifiers are not case sensitive. |
35. |
The instructions, which are used in programming, are called ‐‐‐‐‐‐‐‐ |
A. | Data type |
B. | Keywords |
C. | Objects |
D. | Identifiers |
Answer» B. Keywords |
36. |
‐‐‐‐‐ are the reserved words of the programming language. |
A. | Tokens |
B. | Literals |
C. | Separators |
D. | Keywords |
Answer» D. Keywords |
37. |
‐‐‐‐‐ refer to the names of variables, functions, arrays, classes, etc. |
A. | Identifiers |
B. | Operators |
C. | Punctuators |
D. | Manipulators |
Answer» A. Identifiers |
38. |
Write the range of value of the data type ‘char’ |
A. | 0 to 128 |
B. | 0 to 255 |
C. | ‐255 to 255 |
D. | ‐128 to 127 |
Answer» D. ‐128 to 127 |
39. |
Write the range of value of the data type ‘int’ |
A. | ‐32,768 to 32,767 |
B. | 0 to 65535 |
C. | 0 to 65536 |
D. | 0 to 32768 |
Answer» A. ‐32,768 to 32,767 |
40. |
The standard ASCII characters have numeric values from ‐‐‐ to ‐‐‐‐ |
A. | 0 to 128 |
B. | 0 to 127 |
C. | 0 to 255 |
D. | 0 to 256 |
Answer» B. 0 to 127 |
41. |
Identify the data type of the value ‐2567113254L |
A. | Long integer |
B. | Integer |
C. | Short integer |
D. | Big integer |
Answer» A. Long integer |
42. |
Identify the valid integer from the following: |
A. | 325.6 |
B. | 255 356UL |
C. | ‐3658 9586L |
D. | +324454ul |
Answer» D. +324454ul |
43. |
A ‐‐‐‐‐ is the name of the storage location |
A. | Identifier |
B. | Variable |
C. | Keyword |
D. | Token |
Answer» B. Variable |
44. |
The operator “>>” is called ‐‐‐‐‐ |
A. | Extraction operator |
B. | Insertion operator |
C. | Put to operator |
D. | Printing operator |
Answer» A. Extraction operator |
45. |
Array indexing always starts with the number |
A. | 0 |
B. | 1 |
C. | 2 |
D. | \0 |
Answer» A. 0 |
46. |
We declare a function with ______ if it does not have any return type |
A. | long |
B. | double |
C. | void |
D. | int |
Answer» C. void |
47. |
Which of the following is selection statement in C++? |
A. | Break |
B. | goto |
C. | exit |
D. | switch |
Answer» D. switch |
48. |
There is a unique function in C++ program by where all C++ programs start their execution |
A. | start() |
B. | begin() |
C. | main() |
D. | output() |
Answer» C. main() |
49. |
A block comment can be written by |
A. | Starting every line with double slashes (//) |
B. | Starting with /* and ending with */ |
C. | Starting with //* and ending with *// |
D. | Starting with <!‐ and ending with ‐!> |
Answer» B. Starting with /* and ending with */ |
50. |
Which of the following is a correct comment? |
A. | */ Comments */ |
B. | ** Comment ** |
C. | /* Comment */ |
D. | { Comment } |
Answer» C. /* Comment */ |
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.