Object Oriented Programming In C++ MCQs
Multiple Choice Questions
37 Pages
MPC
Contributed by
Manpreet Prasad Chaudhuri
Loading
OBJECT ORIENTED PROGRAMMING IN C++For Off Campus BSc Computer Science ProgrammeUNIT 11.The goal of programmers is to develop software that are___________.A. CorrectB. Reliable and maintainableC. Satisfy all the user requirementsD. All of the above2.Software development is not a ________ process:A. ComplicatedB. StaticC. SimpleD. None of the above3. Whatdescribes the structure of a program?A.Programming paradigmB.Programming methodologyC. Both (a) and (b)D. None of the above4.Initially, when the computers were invented, what was used to write the programs?A. FRONTANB. BASICC. Binary programD. None of the above5.Any software needs to be modified or redesigned according to change in__________:A.User requirementsB.Business rulesC. StrategiesD. All of the above6.Then the assembly language was invented to write large programs, however, it was alsonot____________.A. InterestingB. EasyPage 1
C. User friendlyD. None of the above7.With the change in the user requirements, the size and the complexity of the programs continuedto grow, which led to the development of high-level languages, such asA. FRONTANB. BASICC. Both (a) and (b)D. Binary language8.In unstructured programming paradigm, all the instructions of a program were written one after theother in a single function and hence, suitable for writing only____________.A. Small programsB. Simple programsC. Large and simple programsD. Both (a) and (b9.For large and complex programs, it became difficult to____________.A. Trace and debug errorsB. Write programsC. Bug errorsD. None of the above10.To overcome the limitations of unstructured programming paradigm, which other programmingparadigms were developed?A. Procedural programming paradigms (PPP)B.Object-oriented programming paradigms (OOP)C. Both (a) and (b)D.Software programming paradigms11. Whichparadigm has revolutionized the process of software development?A. Software programmingB. OOPC. PPPD. None of the above12.The most important feature is that OOP divides the program into a number of_________.A. FunctionsB. SoftwareC. ObjectsD. None of the abovePage 2
13.An object is a unit of structural and behavioral modularity that contains a set of________.A. PropertiesB. DataC.Associated functionsD. All of the above14.What does OOP emphasizes on?A. FunctionsB. DataC. ProceduresD. None of the above15. __________are the small, self-contained and modular units with a well-defined boundary.A. ObjectsB. DataC. ClassesD. Abstractions16. Whatis defined as a user-defined data type which contains the entire set of similar data and thefunctions that the objects possess?A. InheritanceB.EncapsulationC. ClassD. None of the above17.Encapsulation is the technique of binding or keeping the __________-(that operate on them)together in a single unit called a class.A. DataB. FunctionsC. ObjectsD. Both (a) and (b)18.Polymorphism is a _________word.A. FrenchB. LatinC. GreekD. English19.In C++, polymorphism can be achieved either at___________.A. Compile timeB. Run-timePage 3
C. Both (a) and (b)D. Virtual functions20. Whatis the process of interacting between different objects in a program called?A. Abstract classesB. Message passingC. Concrete classesD. EncapsulationPage 4
UNIT 221.In any programming language, writing even an elementary program requires the knowledge andclear understanding of ___________.A. Data typesB. Variables and constantsC. OperatorsD. All of the above22.A character set can be defined as a set of characters that____________represents information.A. Individually or in combinationB. In combinationC. Do notD. Both (a) and (b)23.When a program is compiled, what scans the source code and parses it into tokens to find thesyntax errors?A.Data typesB.CompilerC.Horizontal tabD. None of the above24. __________________ are the predefined words that have special significance in anylanguage.A. VariablesB. Data typesC. ConstantsD. Keywords25. Every keyword is reserved for a specific purpose and hence must not be usedas__________________.A. User-defined namesB. IdentifiersC. PlainD. Both (a) and (b)26.Identifiers are the names given to uniquely identify various programming elementslike________.A.Variables and arraysB. Functions and classesPage 5
C.Structures and namespacesD. All of the above27.An identifier must contain only____________.A.Upper case and lower case lettersB.Underscore character (_) or digits 0 to 9C. Both (a) and (b)D. None of the above28.What should an identifier start with?A. LetterB. UnderscoreC. Letter or underscoreD. Digits 0 to 929.Identifiers that start with a double underscore ‘__’ or an underscore followed by an upper caseletter must be avoided as these names are reserved by the__________.A.Standard C++ LibraryB.Standard C LibraryC.C++ LibraryD. None of the above30.Numeric constants refer to the numbers consisting of a sequence of digits (with or withoutdecimal point) that can be________.A. PositiveB. NegativeC. AlphanumericD. Both (a) and (b)31. In to how many categories canC++ constants be broadly classified into?A. FourB. TwoC. ThreeD. Multiple32.There are few character constants that cannot be included in a program directly through akeyboard, such as__________.A. BackspaceB. NewlineC. Both (a) and (b)D. InsertPage 6
33.Wide character literal uses how many bytes of memory?A. TwoB. OneC. MultipleD. None of the above34.A data type determines the _______________ that can be performed on the data.A. TypeB. OperationsC. MemoryD. Both (a) and (b)35. What is termedas a set of named integer constants that specify all the permissible values thatcan be assigned to enumeration variables?A. EnumerationB. ReferenceC. PointerD. None of the above36. What forms an expression?A. VariablesB. ConstantsC. OperatorsD. All of the above37.The expressions that produce a bool type value, that is, either true or false are called______.A.Integral expressionsB.Float expressionsC.Relational or Boolean expressionsD.Constant expressions38.The statements that cause a set of statements to be executed repeatedly either for a specificnumber of times or until some condition is satisfied are known as_____________.A.Iteration statements or loopsB. Conditional operatorC. The if-else statementD. The if statementPage 7
39.The bool data type can hold only boolean values that is either true or false, where true represents________ and false represents__________.A. 0,-1B. 0,1C. 1, 0D. None of the above40.In addition to char data type, C++ provides another data type wchar_t which is used to store_________ wide characters.A. 10 bitB. 32 bitC. 16 bitD. 64 bit41. Whichvariable stores the memory address of another variable?A. ReferenceB. PointerC. ArrayD. None of the above42.What are thesignificant features of C language?A.Structure and unionB. ClassC.EnumerationsD. None of the above43. If a variable is used prior to its initialization, what is produced?A. Garbage resultsB. Undesirable resultsC. Both (a) and (b)D. 1044.The expressions that produce a bool type value after combining two or more relationalexpressions are called ________________.A.Logical expressionsB. Big Theta θ(f)C.Boolean expressionsD. None of the above45.____________is an assignment expression, which is enclosed within other assignmentexpression.Page 8
A.Chained assignmentB.Binary arithmetic operatorC.Compound assignmentD.Embedded assignment46Like built-in data types, memory can also be allocated dynamically to derived and userdefineddata types such as__________.A. ArraysB. StructuresC. ClassesD. All of the above47.A single statement specifies a single action and is always terminated by a_________.A. Inverted commasB. ColonC. Semi colonD. Brackets48.The for loop is one of the most widely used loops in____________.A. C++B. CC. IterationsD. None of the above49.The break statement is extensively used in___________.A. LoopsB.switch statementsC. Both (a) and (b)D.continue statementPage 9
UNIT 350.Handling real world data requires a mechanism that deals with a collection of_________?A.StructuresB. Data itemsC. ArraysD. None of the above51. __________is defined as a fixed size sequence of same type of data elements.A. C++B. Data itemsC. ArraysD. None of the above52. What is the simplest form of an array?A. One- dimensional arrayB. Multi- dimensional arrayC. Single- dimensional array53. If more than one subscript is used, an array is known as a__________.A. One- dimensional arrayB. Single dimensional arrayC. Multi- dimensional arrayD. None of the above54. The memory address of the first element of an array is contained in the _______.A. Next arrayB. Computer programC. Name of the arrayD. None of the above55. Each element in an array is associated with a unique subscript value, startingfrom__________:A. 1 to size-1B. 0 to size-1C. -1 to size-0Page 10
Download this file to view remaining 27 pages
Related documents:
- High Performance Computing - MCQ
- Sociology (Paper II) 2018 Question Paper - MCQ
- Commerce MCQs (TYBCom Sem VI ) - MCQ
- CORPORATE ACCOUNTING AND REPORTING - Question Paper
- Report Writing 4th Semester BBA - Notes
- LAW (Paper II) 2017 Question Paper - Question Paper
- Recent Trends in IT Solved MCQs - MCQ
- Aadhunik Hindi Kavya (Chhayavadottar) - Question Bank
- Commonwealth Literature (Option B) Question bank with Answers - Question Bank
- Drama - II Question bank with Answers - Question Bank
- Startup and Venture managment MCQs - MCQ
- MBA sem-3 Question bank for all the topics - Question Paper
- Chemistry Paper I QP - Question Paper
- History Of Sanskrit Language And Kerala Culture MCQs - MCQ
- Environmental Economics - Question Bank
- Indirect Tax GST Practice MCQ Questions - MCQ
- Public Administration (Paper II) 2016 Question Paper - Question Paper
- Public Relationship (PR) - Principles of Event Management - Notes
- MG6851-Principles of Management qbank - Question Bank
- Current Electricity Importabt Notes and MCQs - Notes