Object Oriented Programming MCQs

Page No. 91

Which function should be used to exit from the program that is provided by System class?


aexit(int);

✓


bgc();

✖


cterminate();

✖


dhalt();

✖


View Answer exit(int);

Number class can’t manipulate ____________________


aInteger values

✖


bFloat values

✖


cByte values

✖


dCharacter values

✓


View Answer Character values

Which attribute can be used to get the size of an array?


aSize.Array

✖


bArray.Size

✖


cArray_name.length

✓


d length.Array_name

✖


View Answer Array_name.length

DataInputStream is derived from ______________________


aStreamingInput

✖


bStreamedInput

✖


c StreameInput

✖


dStreamInput

✓


View Answer StreamInput

What is the use of Math class?


aTo use the mathematical functions with strings

✖


bTo use the mathematical functions

✓


cTo suppress the use of mathematical functions

✖


dTo complex the calculations

✖



Which statement is true for the Array class?


aArrays can have variable length

✖


bThe length array can be changed

✖


cEach class has an associated Array class

✓


dArrays can contain different type of values

✖



What is the InputStream class meant for?


aTo handle all input streams

✓


bTo handle all output streams

✖


cTo handle all input and output streams

✖


dTo handle only input from file

✖



Which among the following not an inbuilt class in C++?


aSystem

✖


bColor

✖


c String

✖


dFunctions

✓


View Answer Functions

What doesn’t inbuilt classes contain?


aFunction prototype

✖


bFunction declaration

✖


cFunction definitions

✓


dObjects

✖


View Answer Function definitions

Inbuilt class __________________________


aMust be included before use

✓


bAre not necessary to be included for use

✖


cAre used by the compiler only

✖


dCan be modified by programmer always

✖



Goto Page No.

Page 91 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