4th LCC ICTO test
4th LCC ICTO test
Mussawar Hussain
a. Polymorphism
b. Abstraction
c. Inheritance
d. Encapsulation
a. Ada
b. C++
c. Java
d. SmallTalk
4th IT related Test By Mr.Mussawar Hussain
a. Explicit
b. Implicit
c. Protected
d. Public
4. A constructor _____________.
5. The access specifier that is/are the most secure during inheritance is/are _______________.
4th IT related Test By Mr.Mussawar Hussain
a. Protected
b. Private
d. Default
6. If in case, in multiple inheritances, a class R would inherit the Class Q, while Class Q would
inherit the class P, then in which sequence would their destructors be called in case we
declare an object of Class R?
a. Cache
b. HDD
4th IT related Test By Mr.Mussawar Hussain
c. ROM
d. RAM
a. Integer
b. Maths
c. String
d. Digit
a. Small class
b. Subclass
c. Noticeable class
4th IT related Test By Mr.Mussawar Hussain
d. Big class
10. Which of these inheritances is shown in case we inherit some base class from another class,
then one of the classes derives it?
a. Single
b. Multiple
c. Multi-level
d. Hierarchical
a. Multilevel
b. Single level
c. Multiple
d. Hybrid
12. What is the name of the feature in which we enforce the definitions of the abstract function
at the compile time?
a. Dynamic Polymorphism
b. Static Polymorphism
d. Polymorphism
13. If in case a class is called in the main function directly and has a public member function,
then ____________________.
a. Maths
b. Object
c. Exceptions
d. Errors
15. For catching multiple exceptions in a single catch block, then how do we separate exceptions
in the syntax?
a. Hyphen
b. Vertical bar
c. Modulus
d. Plus
16. Where are the temporary objects (that are created during the return by value) created?
a. Implicit cast
b. Manual cast
c. Dynamic cast
d. Static cast
a. Null
b. Null pointer
c. Void pointer
d. Void
4th IT related Test By Mr.Mussawar Hussain
19. Which of these attributes can we use if we want to get the actual size of any array?
a. Array_name.length
b. Size.Array
c. Length.Array_name
d. Array.Size
20. Which function is used to get any character that is present at a certain index of a string?
a. Char charIn(StringName);
b. Char charAt(index);
c. Char charIn(index);
d. Char charAt(StringName);
1. Encapsulation
2. A Class
3. Inheritance
4. None of Above
View Answer
A Class is shared structure of a set of similar objects
1. An Interface
2. A Class
3. An Abstract Method
4. none of above
View Answer
An Abstract Method does not have a body
1. Java
2. SmallTalk
3. C++
4. Kotlin
View Answer
SmallTalk is is pure object oriented programming language
1. Classes
2. Access Modifiers
3. Interfaces
4. Method signature
View Answer
Public, private & protected are Access Modifiers in OOPs
1. every where
2. in sub class
4th IT related Test By Mr.Mussawar Hussain
View Answer
A private member of a class is visible to only members of same class
1. extends
2. extend
3. implement
4. inherit
View Answer
extends is used to inherit a class or abstract class.
1. Double
2. String
3. Int
4. Class
View Answer
Class is an abstract data type
1. Yes
2. No
View Answer
No, we can't overload constructor in derived class
View Answer
4th IT related Test By Mr.Mussawar Hussain
1. Anonymous class
2. Nested class
3. Parent class
4. Abstract class
View Answer
We cannot create an instance of Abstract class
1. True
2. False
View Answer
False , Constructor cannot return any value
1. Andrea Ferro
2. Dennis Ritchie
3. Adele Goldberg
4. Alan Kay
View Answer
OOPs is invented by Alan Kay
View Answer
It can't be defined with zero arguments
1. Polymorphism
2. Inheritance
3. Abstraction
4. Encapsulation
View Answer
35. Inheritance encourges the code reusability in OOPs Which is correct syntax for
creating an object of Class in Java?
View Answer
classname objectname= new classname() is correct way to an object of Class in Java
1. C lanaguage
2. Java
3. Kotlin
4. C++
View Answer
C lanaguage don't have any concept of inheritance
1. Static function
2. Friend function
3. Const function
4. Virtual function
View Answer
Static function is not a member of a class.
1. Object
2. Errors
4th IT related Test By Mr.Mussawar Hussain
3. Exceptions
4. Maths
View Answer
Exceptions is universal class for exception handling
39. Which among the following handles the undefined class exception in
program?
1. ClassNotFound
2. NoClassException
3. ClassFoundException
4. ClassNotFoundException handles the undefined class exception in program
View Answer
ClassNotFoundException
40. How many catch blocks you can use with single Try block?
1. Only 2
2. Only 1
3. Maximum 256
4. As many as required
View Answer
You can use As many as required catch block with a single Try Block
View Answer
The principle of abstraction
1. Public variables
2. Local variables
3. Array variables
4. Global variables
4th IT related Test By Mr.Mussawar Hussain
View Answer
Global variables
1. =
2. ->
3. *
4. ()
View Answer
*
1. Inheritance
2. Abstraction
3. Polymorphism
4. Encapsulation
View Answer
Inheritance
1. Alan Kay
2. Andrea Ferro
3. Dennis Ritchie
4. Adele Goldberg
View Answer
Alan Kay