1. Which of the following statements is not correct with regard to Procedural Language?
Answer
Correct Answer:
Data is emphasized over procedure
Note: This Question is unanswered, help us to find answer for this one
2. Which of the following are object oriented programming language?
Answer
Correct Answer:
All of the above are object oriented programming language
Note: This Question is unanswered, help us to find answer for this one
3. Which of the following is honored as the first Object Oriented Programming language having notion of objects, classes and inheritance in it?
Answer
Correct Answer:
Simula
Note: This Question is unanswered, help us to find answer for this one
4. In Public derivation using C++, which of the following are the ways to access base class members through derived class?
Answer
Correct Answer:
protected --> protected
Note: This Question is unanswered, help us to find answer for this one
5. Which of the following options are correct with regard to a static variable?
Answer
Correct Answer:
It is privileged to get initialized first
Note: This Question is unanswered, help us to find answer for this one
6. Which of the following statements is correct with regard to class based OOPS?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
7. Which of the following is the starting point for program execution in C++?
Answer
Correct Answer:
main function
Note: This Question is unanswered, help us to find answer for this one
8. Inheritance is a process by which the objects of parent class acquire the properties of a child class.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
9. What is Abstraction?
Answer
Correct Answer:
An act of representing essential features without including details or working methodology
Note: This Question is unanswered, help us to find answer for this one
10. Which of the following cannot apply to constructors?
Answer
Correct Answer:
Void return type
Note: This Question is unanswered, help us to find answer for this one
11. Which of the following describes the Function Overloading?
Answer
Correct Answer:
Same function name, different order of parameters
Note: This Question is unanswered, help us to find answer for this one
12. What is Encapsulation?
Answer
Correct Answer:
Wrapping functions and data into a single unit
Note: This Question is unanswered, help us to find answer for this one
13. Which of the following statements correctly explains Operator Overloading?
Answer
Correct Answer:
An operator exhibits ambiguous behavior in different instances
Note: This Question is unanswered, help us to find answer for this one
14. Which of the following does not constitute the classes relationship?
Answer
Correct Answer:
has-parts
Note: This Question is unanswered, help us to find answer for this one
15. Which of the following statements is not correct with regard to Operator Overloading?
Answer
Correct Answer:
It can be static or protected
Note: This Question is unanswered, help us to find answer for this one
16. What is an Object in Object Oriented Programming?
Answer
Correct Answer:
An entity having state and behavior
Note: This Question is unanswered, help us to find answer for this one
17. The dynamic binding is the linking of a procedure call with the code to be executed at runtime.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
18. Which of the following is a benefit derived from using OOPS?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
19. Which of the following help increase the code clarity?
Answer
Correct Answer:
Abstraction
Note: This Question is unanswered, help us to find answer for this one
20. Two functions are defined with the same name and same return type. The first one accepts string input parameter type and the second one accepts integer. This represents Abstraction.
Answer
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
21. Which of the following cannot be passed to a function?
Answer
Correct Answer:
Header File
Note: This Question is unanswered, help us to find answer for this one
22. You have three classes named A, B, and C. The class B is derived from class A and class C is derived from B. Which of the following relations are correct for the given classes?
Answer
Correct Answer:
B is a A
Note: This Question is unanswered, help us to find answer for this one
23. What is Function Overriding?
Answer
Correct Answer:
Late binding
Note: This Question is unanswered, help us to find answer for this one
24.
A shared/static method is associated with a Class.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
25. What does the following classes (as shown in the given figure) represent? A --> B --> C --> D
Answer
Correct Answer:
Multi-level inheritance
Note: This Question is unanswered, help us to find answer for this one
26. Which of the following helps convert a Class into an Abstract?
Answer
Correct Answer:
Converting a function into pure virtual
Note: This Question is unanswered, help us to find answer for this one
27. Which of the following statements are correct with regard to Polymorphism?
Answer
Correct Answer:
Polymorphism is a process by which a class can exist in multiple forms
Note: This Question is unanswered, help us to find answer for this one
28. Which of the following types of Inheritance is not known?
Answer
Correct Answer:
Ternary
Note: This Question is unanswered, help us to find answer for this one
29. Object-based programming languages do not support Inheritance and dynamic binding.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
30. Which of the following is not a procedural language?
Answer
Correct Answer:
Small talk
Note: This Question is unanswered, help us to find answer for this one
31. Which of the following is not valid for an inline function?
Answer
Correct Answer:
It allows recursion
Note: This Question is unanswered, help us to find answer for this one
32. Which of the following is an "Intermediate Base Class" with regard to the given figure: Class A --> Class B (Derived) --> Class C (Derived)
Answer
Correct Answer:
Class B
Note: This Question is unanswered, help us to find answer for this one
33. In Java, how many times can classes be nested within a class?
Answer
Correct Answer:
Any number of times
Note: This Question is unanswered, help us to find answer for this one
34. Function Overloading is based upon the number and/or type of arguments passed.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
35. How much memory does a function use up within an object?
Answer
Correct Answer:
0 byte
Note: This Question is unanswered, help us to find answer for this one
36. Is it possible to call a main() inside another main() function in C++?
Answer
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
37. Which of the following statements are correct?
Answer
Correct Answer:
A class is an instance factory
Note: This Question is unanswered, help us to find answer for this one
38. What does Data Hiding refer to?
Answer
Correct Answer:
Insulating data from being accessed by the program directly
Note: This Question is unanswered, help us to find answer for this one
39. Which of the following is not correct with regard to a virtual function in C++?
Answer
Correct Answer:
It implements early binding
Note: This Question is unanswered, help us to find answer for this one
40. Which of the following statements are correct with regard to Prototype based programming?
Answer
Correct Answer:
It is a means of achieving object-oriented behavior sharing.
Note: This Question is unanswered, help us to find answer for this one
41. Why is composition considered a simpler method than inheritance?
Answer
Correct Answer:
Composition lacks the namespace clash, and the complicated inheritance hierarchies.
Note: This Question is unanswered, help us to find answer for this one
42. What is the difference between interfaces and abstract classes?
Answer
Correct Answer:
abstract classes can provide default implementation whereas interfaces cannot provide implementations
Note: This Question is unanswered, help us to find answer for this one
43. What plays a critical role in testing for syntactic legality?
Answer
Correct Answer:
Termination proofs.
Note: This Question is unanswered, help us to find answer for this one
44. True or false? Private variables are visible outside of the class.
Answer
Correct Answer:
only through methods
Note: This Question is unanswered, help us to find answer for this one
45. If a system is systematically computing “metadata”, what would you use to define that system?
Answer
Correct Answer:
Attribute grammars.
Note: This Question is unanswered, help us to find answer for this one
46. What class and extension best demonstrate a HAS-A Relationship?
Answer
Correct Answer:
Feline, Lion
Note: This Question is unanswered, help us to find answer for this one
47. Virtual inheritance is:
Answer
Correct Answer:
where only one base class object is created
Note: This Question is unanswered, help us to find answer for this one
48. Programming languages supporting the OOPS paradigm are typically contained within what two classes?
Answer
Correct Answer:
Prototype-based, or class-based.
Note: This Question is unanswered, help us to find answer for this one
49. A clone method is needed to:
Answer
Correct Answer:
to create a second copy of all contained subobjects
Note: This Question is unanswered, help us to find answer for this one
50. What are classes used for?
Answer
Correct Answer:
Classes are used to define specific types.
Note: This Question is unanswered, help us to find answer for this one
51. When two methods have the same name, what are they considered, and what kind of binding do they have?
Answer
Correct Answer:
Overloaded, static.
Note: This Question is unanswered, help us to find answer for this one
52. Semantically, what has happened if the result rendered is non-computational?
Answer
Correct Answer:
Syntactically illegal strings have occurred.
Note: This Question is unanswered, help us to find answer for this one
53. True or false? Static variables are visible outside of the class
Answer
Correct Answer:
depends
Note: This Question is unanswered, help us to find answer for this one
54. An abstract class can:
Answer
Correct Answer:
Be subclassed
Note: This Question is unanswered, help us to find answer for this one
55. True or false? Abstract methods are only defined in the parent.
Answer
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
56. What is the most important trait of a polymorphism?
Answer
Correct Answer:
The common interface.
Note: This Question is unanswered, help us to find answer for this one
57. When a variable is defined within a class, what is it considered?
Answer
Correct Answer:
An instance variable.
Note: This Question is unanswered, help us to find answer for this one
58. A mutator method is also known as a:
Answer
Correct Answer:
setter
Note: This Question is unanswered, help us to find answer for this one
59. Which of the following is included in the field of formal semantics?
Answer
Correct Answer:
The definition of semantic models.
Note: This Question is unanswered, help us to find answer for this one
60. Lambda functions are allowed in class definitions
Answer
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
61. Which of the following could be considered a polymorphism?
Answer
Correct Answer:
The class, “clsCalculation” with two functions, both named “Add”.
Note: This Question is unanswered, help us to find answer for this one
62. True or false? A class can implement one or more interfaces.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
63. What is a simple way to think of inheritance?
Answer
Correct Answer:
One object acquiring the properties of another.
Note: This Question is unanswered, help us to find answer for this one
64. Which of the following classes allows only one object of it to be created?
Answer
Correct Answer:
Singleton class
Note: This Question is unanswered, help us to find answer for this one
65. If a user were to observe Java code from the outside world, what would they be able to access?
Answer
Correct Answer:
The public methods.
Note: This Question is unanswered, help us to find answer for this one
66. True or false? Using traits gives single inheritance languages most of the power of multiple inheritance.
Answer
Correct Answer:
True
Note: This Question is unanswered, help us to find answer for this one
67. True or false? An interface is another name for a class.
Answer
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
68. Ref counts are:
Answer
Correct Answer:
a way of managing object lifetimes
Note: This Question is unanswered, help us to find answer for this one
69. What is a primary motivation for using OOP?
Answer
Correct Answer:
To increase reusability and maintainability of code.
Note: This Question is unanswered, help us to find answer for this one