http://www.VUSR.net BC090402252 : Zahra Ashraf Time Left 87 sec(s) Quiz Start Time: 01:58 PM Question # 1 of 15 ( Start time: 01:58:56 PM ) The static data members of a class can be accessed by ________ Total Marks: 1 Select correct option: only class only objects both class and objects none of given options BC090402252 : Zahra Ashraf Time Left 68 sec(s) Quiz Start Time: 01:58 PM Question # 2 of 15 ( Start time: 01:59:25 PM ) Total Marks: 1 Below is given a code snippet char name[50]; cin>>name; cout<<="" span=""> Select correct option: Sohail Aslam Aslam Sohail Sohail Aslam BC090402252 : Zahra Ashraf Time Left 50 sec(s) Quiz Start Time: 01:58 PM Question # 3 of 15 ( Start time: 01:59:59 PM ) Total Marks: 1 Suppose int i = 10; then what is the output of cout<< oct<<i;< span=""> </i;<> Select correct option: 10 11 12 13 BC090402252 : Zahra Ashraf Time Left 84 sec(s) Quiz Start Time: 01:58 PM Question # 4 of 15 ( Start time: 02:00:49 PM ) What is the difference between cout and cerr ? Total Marks: 1 Select correct option: cout is unbuffered output and cerr is buffered outp cout is standard output and cerr is not a standard o cout is not a standard output and cerr is standard o cout is buffered output and cerr is unbuffered outp BC090402252 : Zahra Ashraf Time Left 43 sec(s) Quiz Start Time: 01:58 PM Question # 5 of 15 ( Start time: 02:01:06 PM ) The endl and flush are _______ Select correct option: Functions Operators Total Marks: 1 Manipulators Objects BC090402252 : Zahra Ashraf Time Left 82 sec(s) Quiz Start Time: 01:58 PM Question # 6 of 15 ( Start time: 02:02:05 PM ) A variable which is defined inside a function is called Total Marks: 1 Select correct option: Global variable Functional variable None of the given option Automatic variable BC090402252 : Zahra Ashraf Time Left 77 sec(s) Quiz Start Time: 01:58 PM Question # 7 of 15 ( Start time: 02:02:29 PM ) Total Marks: 1 The get member function, when passed no arguments, inputs an entire stream and returns it as the value of the function call. Select correct option: True False BC090402252 : Zahra Ashraf Time Left 87 sec(s) Quiz Start Time: 01:58 PM Question # 1 of 15 ( Start time: 01:58:56 PM ) The static data members of a class can be accessed by ________ Total Marks: 1 Select correct option: only class only objects both class and objects none of given options BC090402252 : Zahra Ashraf Time Left 68 sec(s) Quiz Start Time: 01:58 PM Question # 2 of 15 ( Start time: 01:59:25 PM ) Total Marks: 1 Below is given a code snippet char name[50]; cin>>name; cout<<="" span=""> Select correct option: Sohail Aslam Aslam Sohail Sohail Aslam BC090402252 : Zahra Ashraf Time Left 50 sec(s) Quiz Start Time: 01:58 PM Question # 3 of 15 ( Start time: 01:59:59 PM ) Total Marks: 1 Suppose int i = 10; then what is the output of cout<< oct<<i;< span=""> </i;<> Select correct option: 10 11 12 13 BC090402252 : Zahra Ashraf Time Left 84 sec(s) Quiz Start Time: 01:58 PM Question # 4 of 15 ( Start time: 02:00:49 PM ) What is the difference between cout and cerr ? Total Marks: 1 Select correct option: cout is unbuffered output and cerr is buffered outp cout is standard output and cerr is not a standard o cout is not a standard output and cerr is standard o cout is buffered output and cerr is unbuffered outp BC090402252 : Zahra Ashraf Time Left 43 sec(s) Quiz Start Time: 01:58 PM Question # 5 of 15 ( Start time: 02:01:06 PM ) The endl and flush are _______ Select correct option: Total Marks: 1 Functions Operators Manipulators Objects BC090402252 : Zahra Ashraf Time Left 82 sec(s) Quiz Start Time: 01:58 PM Question # 6 of 15 ( Start time: 02:02:05 PM ) A variable which is defined inside a function is called Select correct option: Global variable Functional variable None of the given option Automatic variable Total Marks: 1 BC090402252 : Zahra Ashraf Time Left 77 sec(s) Quiz Start Time: 01:58 PM Question # 7 of 15 ( Start time: 02:02:29 PM ) Total Marks: 1 The get member function, when passed no arguments, inputs an entire stream and returns it as the value of the function call. Select correct option: True False BC090402252 : Zahra Ashraf Time Left 74 sec(s) Quiz Start Time: 01:58 PM Question # 8 of 15 ( Start time: 02:03:27 PM ) Total Marks: 1 The pointer returned by the new operator points to --------------- of memory chunks allocated by the new operator Select correct option: First memory address Second memory address Last memory address None of the above Saving... BC090402252 : Zahra Ashraf Time Left 32 sec(s) Quiz Start Time: 01:58 PM Question # 9 of 15 ( Start time: 02:04:02 PM ) Total Marks: 1 What functionality the following program is performing? #include int main(0 { const int SIZE = 80; char buffer[SIZE]; cout <<” Enter a sentence : “<<<="" “="" the="" sentence="" entered="" is="" :="" <<="" span=""> Select correct option: read and w rite member functions of cin and cout objects respectively to read a sentence from the key board a read and put member functions of cin and cout objects ar to read a sentence from the key board and then prin get and w rite member functions of cout and cin objects respectively to read a sentence from the key board a read and w rite member functions of cin and cout objects respectively to read a w ord from the key board and BC090402252 : Zahra Ashraf Time Left 85 sec(s) Quiz Start Time: 01:58 PM Question # 10 of 15 ( Start time: 02:05:12 PM ) To get the memory address of a variable we use ____ . Select correct option: Total Marks: 1 & % * $ BC090402252 : Zahra Ashraf Time Left 82 sec(s) Quiz Start Time: 01:58 PM Question # 11 of 15 ( Start time: 02:05:45 PM ) Which of the following concept is NOT associated with stream? Select correct option: Source Template Destination State Total Marks: 1 BC090402252 : Zahra Ashraf Time Left 80 sec(s) Quiz Start Time: 01:58 PM Question # 12 of 15 ( Start time: 02:06:10 PM ) Total Marks: 1 What will be the output of following statement? cout << setfill(‘0’) << setw(7) << 128 ; Select correct option: 0128128 0000128 1280000 0012800 BC090402252 : Zahra Ashraf Time Left 80 sec(s) Quiz Start Time: 01:58 PM Question # 13 of 15 ( Start time: 02:06:27 PM ) Total Marks: 1 The second parameter of operator function for >> operator must always be passed Select correct option: By reference Function takes no argument By value None of the given options BC090402252 : Zahra Ashraf Time Left 60 sec(s) Quiz Start Time: 01:58 PM Question # 14 of 15 ( Start time: 02:06:49 PM ) Total Marks: 1 If we use cin stream to read some value and store it in some integer variable and press some alphabet key instead of numeric keys. then what will happen? Select correct option: Its binary representation w ill be ignored and the char Its binary representation w ill be ignored and the valu Its ASCII code w ill be stored inside the computer Some error w ill occur and cin stream w ill detect this BC090402252 : Zahra Ashraf Time Left 75 sec(s) Quiz Start Time: 01:58 PM Question # 15 of 15 ( Start time: 02:07:35 PM ) dec, hex, oct are all __________ Total Marks: 1 Select correct option: Member functions Objects of input/output streams Parameterized manipulators Non-parameterized manipulators