Class 12 Computer Science · Chapter 3 · Test 1
OOP Basics
36 MCQs
36 questions · 30 min · 36 marks
Want to try first? Take the free Computer Science test: Networks Basics
Sample questions
The first 5 of 36. Try each one, then tap to see the answer.
Question 1
The keyword used to define a class in Python is:
- Adef
- Bclass
- Cfunction
- DObject
Show answerHide answer
Answer: B
Python uses the class keyword to define a class.
Question 2
Object-Oriented Programming is a method of designing programs using:
- AFunctions and loops
- BTables and keys
- CModules and packages
- DObjects and classes
Show answerHide answer
Answer: D
OOP designs programs around objects and classes.
Question 3
Each object in OOP represents:
- AA reusable loop
- BA single variable
- CA real-world entity with properties and behaviours
- DA compiled file
Show answerHide answer
Answer: C
An object models a real-world entity with specific properties and behaviours.
Question 4
Classes act as:
- ATemplates for creating several similar objects
- BContainers for one fixed value
- CStorage for deleted data
- DCopies of finished programs
Show answerHide answer
Answer: A
A class is a template used to create multiple objects with similar characteristics.
Question 5
Which three concepts does OOP emphasise to manage data and behaviour?
- ALooping and branching and recursion
- BEncapsulation and inheritance and polymorphism
- CCompilation and linking and debugging
- DSorting and searching and hashing
Show answerHide answer
Answer: B
OOP emphasises encapsulation and inheritance and polymorphism.
More tests in Object Oriented Programming Using Python
Practise with a free account
Save your scores, see which chapters need work, and keep a notebook of every question you got wrong.