Object Oriented Programming MCQs

Page No. 42

Why do we use user defined classes?


aTo design a user intended code


bTo model real world objects


cTo design the interfaces


d To model the functions



Which feature is exhibited by the inbuilt classes?


aCode reusability


bCode efficiency


c Code readability


dCode reusability, efficiency and readability



What is the use of inbuilt classes?


a Provide predefined data


bProvide predefined functions


cProvide predefined data and functions


dProvide predeclared data to be overridden



In which case the classes can be used to make the more efficient program?


aTo define a function that is called frequently in a program


bTo structure data that is most similar


cTo group the most similar data and operations


dTo define a blueprint that shows memory location of data



Class is _____________ of an object.


aBasic function definition


bDetailed description with values


cBlueprint


dSet of constant values


View Answer Blueprint

Which among the following is a feature of class?


aObject orientation


b Procedure orientation


cBoth object and procedure orientation


dNeither object nor procedure orientation


View Answer Object orientation

Which among the following is an advantage of using classes over structures of C?


aFunctions are restricted


bFunctions can’t be defined


cFunctions can also be encapsulated


d Functions can have more security



Which class represents the most abstracted information?


a Nested


bDerived


cEnclosed


d Base


View Answer Base

If a database have to be maintained using OOP, to store the details of each employee in a company, which would be the best choice among the following?


aDefine a generic type to store string and number details


bDefine a structure to store details of each employee


cDefine separate variable for each detail


dDefine a generic type to store string and number details



If a class have two data members and two functions to add those two numbers and to subtract them, which among the following is most efficient if the programmer wants to implement multiplication too?


aDefine a public function which multiplies two numbers


bDefine a public function that returns values of two data members


c Define a private function which multiplies two numbers


dDefine a private function that returns values of two data members



Goto Page No.

Page 42 of 93

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan