Object Oriented Programming MCQs

Page No. 90

Which condition is true if the extern variable is used in a file?


aAll the header files declare it


bOnly few required files declare it


c All header files declared it if required


dOnly one header file should declare it



What does a header file contain for an extern variable?


aOnly declaration of variables


bOnly definition of variables


cBoth declaration and definition of variables


d Neither declaration nor definition



To use extern variable _____________________


aThe source file must not be included in the new file code


b The source file itself must be used for a new program


cThe source file must be included in the new file


d The source file doesn’t matter for extern variables



Which among the following is true for the variables?


aVariable can be defined only once


bVariable can be defined any number of times


cVariable must be defined more than one time


dVariable can be defined in different files



Which among the following is a correct statement for variables?


aVariable can be declared many times


bVariable can be declared only one time


cVariable declaration can’t be done more than ones


dVariable declaration is always done more than one time



What is extern variable?


aVariables to be used that are declared in another object file


b Variables to be used that are declared in another source file


cVariables to be used that are declared in another executable file


dVariables to be used that are declared in another program



Which package contains the utility classes?


ajava.lang


bjava.utility


cjava.util


djava.io


View Answer java.util

Which is not a System class variable?


aerr


bOuter race


cin


dput


View Answer put

What does load(String)::= function do, in System class?


aLoads dynamic library for a path name


b Loads all the dynamic libraries


cLoads all the Number in string format


dLoads the processor with calculations



Which class contain runFinalization() method?


aFinalize


bSystem


cFinal


dSystemFinal


View Answer System

Goto Page No.

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