CS201 Quiz Introduction to Programming C++
The following prototype of unary operator function indicates that it is ____________ .
Date operator++(int ) ► Member functions of post increment operator
► Member functions of pre increment operator
► Non-member functions of post increment operator
► Non-member functions of pre increment operator
Static variable which is defined in a function is initialized __________. ► Only once during its life time
► Every time the function call
► Compile time of the program
► None of the above
In the member initializer list, the data members are initialized, ► From left to right
► From right to left
► In the order in which they are defined within class
► None of the given options
If we do not indent the code properly it will __________________ ► Be a syntax error
► Be a logical error
► Not be an error at all
► None of the given options
Truth tables are used for analyzing ___________. ► logical expressions
► arithmetic expressions
► both logical and arithmetic expressions
► none of the given options.
Static memory allocation is also known as ____________ ► Dynamic allocation
► Compile time allocation
► Run time allocation
► None of the given options
What purpose do classes serve? ► Data encapsulation
► Providing a convenient way of modeling real-world objects
► Simplifying code reuse
► All of the given options
Which of the following function cannot be overloaded? ► Member functions
► Utility functions
► Constructor
► Destructor
The following prototype of unary operator function indicates that it is ____________ .
Date operator++(int ) ► Member functions of post increment operator
► Member functions of pre increment operator
► Non-member functions of post increment operator
► Non-member functions of pre increment operator