TRB-CS-VIP ONLINE COACHING CENTER (QUIZ-6) C++ PROGRAMMING
Quiz
- The outline or the definition of a function is called its
- beta test
- forerunner
- outline
- prototype
- Which of the following is false?
- Data stored in an array can be accessed faster than data stored in a disk file
- Data stored in an array needs to be entered only once, typically at the beginning of the program
- Arrays allow the programmer to store information in the computer's internal memory
- None of the preceding statements are false
- A function stub typically contains
- the function header
- the function braces
- the return statement, if it's value- returning function
- All of the above
- A variable's _____ indicates which portions of the program can use the variable
- area
- extent
- lifetime
- scope
- If an integer object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is _____
- const int &
- int &
- either (a) or (b)
- neither (a) nor (b)
- _____ variables are declared outside of any statement block
- Area
- Global
- Local
- Reference
- The end of string is recognized by
- the null character
- the newline character
- the $ sign
- the / sign
- Variable names known only to the procedure in which they are declared are ________
- local
- global
- recent
- internal
- Whis is true?
- A derived class may have more than one base class
- A base class may have more than one derived class
- both (a) and (b)
- neither (a) nor (b)
- The keyword used to define a structure is
- stru
- stt
- struct
- unlimited
- If you omit any constructor argument when you instantiate an object, you must use default values
- for all parameters to the constructor
- for all parameters to the right of the argument
- for all parameters to the left of the argument
- for no other parameters
- The C++ expression p --> val means the same thing as
- *p.val
- *(p.val)
- (*p).vai
- p.val
- Which of the following tells C++ to display numbers with zero decimal places?
- setiosflags(0)
- setiosflags(zero)
- setprecision(0)
- setprecision(zero)
- Code that has already been tested is said to be _____
- inherited
- reusable
- reliable
- polymorphic
- The get() function returns _____
- a character
- void
- a reference to the object that invoked it
- a copy of the object that invoked it
- The most efficient data type for a variable that the number 20000 is the _____ data type
- Character
- Double
- Float
- Long Integer
- The number 5.5e3 is a _____ constant
- character literal
- named literal
- numeric literal
- string literal
- The compiler determines the type used in a template function via ___________
- the name of the function
- the first variable declared within the function
- the type of the argument passed to the function
- the type of the value returned from the function
- Simple routines that programmers use as place holders while a system is being tested are called ____
- stubs
- stumps
- holders
- templates
- You can place function templates
- at the end of main()
- at the start of a program above main()
- in two files-one for the definition and one for the function
- any of the above
- The two operators && an || are
- arithmetic operators
- equality operators
- logical operators
- relational operators
- The arguments that determine the state of the cout object are called _____
- classes
- manipulators
- format flags
- state controllers
- Static variables are sometimes called
- class variables
- functional variables
- dynamic variables
- auto variables
- The variables declared in a statement block or listed in a function header's parameterlist are considered _____ variables
- area
- global
- local
- reference
- is a collection of data objects and operators that can be evaluated to a single value
- is a collection of data objects and operators that can be evaluated to a single value
- is a name that substitutes for a sequence of characters
- causes the computer to carry out some action
- All of the above
The complement operator is represented by the symbol (this answer is worng in ur answer key please change)
பதிலளிநீக்கு