MCQ Mojo
access_time
menu
Quiz
Web Stories
CBSE
arrow_drop_down
MCQ Questions for CBSE Class 12 with Answers
MCQ Questions for CBSE Class 11 with Answers
MCQ Questions for CBSE Class 10 with Answers
MCQ Questions for CBSE Class 9 with Answers
MCQ Questions for CBSE Class 8 with Answers
MCQ Questions for CBSE Class 7 with Answers
MCQ Questions for CBSE Class 6 with Answers
MCQ Questions for CBSE Class 5 with Answers
MCQ Questions for CBSE Class 4 with Answers
MCQ Questions for CBSE Class 3 with Answers
MCQ Questions for CBSE Class 2 with Answers
MCQ Questions for CBSE Class 1 with Answers
CBSE
arrow_drop_down
MCQ Questions for CBSE Class 12 with Answers
MCQ Questions for CBSE Class 11 with Answers
MCQ Questions for CBSE Class 10 with Answers
MCQ Questions for CBSE Class 9 with Answers
MCQ Questions for CBSE Class 8 with Answers
MCQ Questions for CBSE Class 7 with Answers
MCQ Questions for CBSE Class 6 with Answers
MCQ Questions for CBSE Class 5 with Answers
MCQ Questions for CBSE Class 4 with Answers
MCQ Questions for CBSE Class 3 with Answers
MCQ Questions for CBSE Class 2 with Answers
MCQ Questions for CBSE Class 1 with Answers
Quiz
Quiz
/
OOPs Gate & PSU MCQ Questions With Answers
1.
we need to write the c++ code using binary numbers
true
false
maybe
2.
_________ in programming come into use when we need to repeatedly execute a block of statements.
nested for loop
none
for loop
loop
3.
Attributes of a real word application collection is also called as
entity
behavior
object
All
4.
Which of the following best defines a class?
Parent of an object
Instance of an object
Blueprint of an object
Scope of an object
5.
Pure OOP can be implemented without using class in a program. (True or False)
True
False
6.
Once we compile the C++ code and the .exe is generated,we can run the program from DOS prompt
maybe
no
true
false
7.
Identifiers can start with a number. True or False?
True
False
8.
OOPS is a
Modular Programming
Structural Programming
Procedure programming
None
9.
How are variable length arguments specified in the function heading?
one star followed by a valid identifier
one underscore followed by a valid identifier
two stars followed by a valid identifier
two underscores followed by a valid identifier
10.
Choose the behaviour of Class: time
getHour
Print Time
Second
Both A & B
11.
Advantage of inheritance in java programming is/are
Code Re-usability
Class Extendibility
Save development time
All
12.
What type of inheritance is illustrated in the following Python code?class A(): passclass B(): passclass C(A,B): pass
Multi-level inheritance
Multiple inheritance
Hierarchical inheritance
Single-level inheritance
13.
_________ are fixed values used by a program
constant
variable
boolean
float
14.
An instance of class is called
class
entity
member
object
15.
Ada is ..............................language
High level
OOP
Modular programming
all
16.
Encapsulation is a process of wrapping of data and methods in a single unit called ------------------------------
Variable
Functions
Class
Box
17.
What will be the output of the following Python code?def func(a, b=5, c=10): print('a is', a, 'and b is', b, 'and c is', c)func(3, 7)func(25, c = 24)func(c = 50, a = 100)
a is 7 and b is 3 and c is 10a is 25 and b is 5 and c is 24a is 5 and b is 100 and c is 50
a is 3 and b is 7 and c is 10a is 5 and b is 25 and c is 24a is 50 and b is 100 and c is 5
a is 3 and b is 7 and c is 10a is 25 and b is 5 and c is 24a is 100 and b is 5 and c is 50
Error
18.
What is subclass in java?
A subclass is a class that extends another class
A subclass is a class declared inside a class
Both above.
None of the above.
19.
Assuming Point is a valid class, what would be the result of this code: Point p[] = new Point[10]; System.out.println(p[3].getX());
0
Null Pointer Exception
-999
Index Out of Bound Error
20.
OOPS concepts starts from C programs ..................
Structure
Enum
Array
All
21.
the
provides the basic INPUT and output fundamentales
true
false
maybe
All of above
22.
Is it necessary for an abstract class to have an abstract method?
Yes
No
23.
How many types of polymorphism in the C++ programming language?
Three types of polymorphism
Two types of polymorphism
Five types of polymorphism
Four types of polymorphism
24.
Which definition best defines the concept of abstraction?
Hides the important data
Hides the implementation and showing only the features
Hiding the implementation
Showing the important data
Report Question
Previous
Next
warning
Submit
access_time
Time
Report Question
A bunch of text
Support mcqmojo.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page