VUDESK

¤Virtual University Of Pakistan Network¤



Welcome Visitors to VUDESK Family .Join VUDESK For Free to Get more Access to study material and lot of infotainment stuff. Stay Connected!!

VUDESk ALL Subject CODES
Find Your Subject Code , Join Group And You Will Get ALL related Data
ACC - Fundamentals of auditing and business
ACC311ACC501
ACF - (Accounting And Finance Related)
ACF619ACFI619
COM - (Commerce Related)
COM619COMI619
ECO - (Economics Related)
ECO401 ECO402 ECO403 ECO404
ENG - (English Related)
ENG001 ENG101 ENG201 ENG301 ENG401
ETH201 - Ethics (for Non-Muslims)
ETH201
ISL201 - Islamic Studies
ISL201
IT - (Info Tech Related
IT000IT0001IT430IT619ITI619
MIS - (Project And Internship Report)
MIS619 MISI619MIS620 MISI620
PAD - (Public Administration Related)
PAD619 PADI619
PAK301 - Pakistan Studies
PAK301PAK302
PHY - (Physics Related)
PHY101 PHY301
PSC201 - International Relations
PSC201PSC401
SOC - (Socialogy Related)
SOC101 SOC401
STA - (Statistics and Research)
STA301 STA630
URDU - (Urdu Related)
URD101

All quiz of this subject now you can see here in one Discussion.

So u should  stay with us

Views: 65

Replies to This Discussion

Advertise Here

CS201 Solved Online Quizzes Latest Fall 2011


Quiz Start Time: 09:34 PM Time Left 82
sec(s) 


Question # 1 of 10 ( Start time: 09:34:54 PM ) Total Marks: 1
While developing a program; should we think about the user interface? //handouts main reusability hay..us ki yahan option hi nahi hay
Select correct option:


Yes

No



Quiz Start Time: 09:34 PM Time Left 75
sec(s) 


Question # 2 of 10 ( Start time: 09:35:20 PM ) Total Marks: 1
A character is stored in the memory in _________
Select correct option:


byte

integer

string

None of the given



Quiz Start Time: 09:34 PM 


Question # 3 of 10 ( Start time: 09:36:21 PM ) Total Marks: 1
These functions seekg() and seekp() requires an argument of type ____________to let them how many bytes to move forward or backward.
Select correct option:


int

short

long

double



Quiz Start Time: 09:34 PM Time Left 85
sec(s) 


Question # 4 of 10 ( Start time: 09:37:30 PM ) Total Marks: 1
dereferencing operator is represented by _______
Select correct option:


*

+



None of the given



Quiz Start Time: 09:34 PM Time Left 86
sec(s) 


Question # 5 of 10 ( Start time: 09:38:55 PM ) Total Marks: 1
______________ transfers the executable code from main memory to hard disk.

Select correct option:


Loader

Debugger

Compiler

Linker



Quiz Start Time: 09:34 PM Time Left 85
sec(s) 


Question # 6 of 10 ( Start time: 09:40:21 PM ) Total Marks: 1
When the logical operator OR (||) combine two expressions exp1 and exp2 then the result will be false only, //bitwise “or” applies here….
Select correct option:


When both exp1 and exp2 are true

When both exp1 and exp2 are false

When exp1 is true and exp2 is false

When exp1 is false and exp2 is true



Quiz Start Time: 09:34 PM Time Left 79
sec(s) 


Question # 7 of 10 ( Start time: 09:41:43 PM ) Total Marks: 1
suppose we have int y[10]; To access the 4th element of the array we write_________
Select correct option:


y[4];

y[3]; correct

y[2];

none of given




Quiz Start Time: 09:34 PM Time Left 82
sec(s) 


Question # 8 of 10 ( Start time: 09:43:10 PM ) Total Marks: 1
we have opened a file stream myfile for reading (getting), myfile.tellg () gives us the current get position of the file pointer. It returns a whole number of type___________
Select correct option:


long

int

short

double




Quiz Start Time: 09:34 PM Time Left 80
sec(s) 


Question # 9 of 10 ( Start time: 09:44:42 PM ) Total Marks: 1
ofstream is used for________
Select correct option:


Input file stream

Output file stream

Input and output file stream

All of the given




Quiz Start Time: 09:34 PM Time Left 80
sec(s) 


Question # 10 of 10 ( Start time: 09:46:11 PM ) Total Marks: 1
A structure is a collection of _____________under a single name.
Select correct option:
values
variables
data
None of the given
Question No: 1 ( Marks: 1 ) - Please choose one
In C/C++ the string constant is enclosed ……………. corrected r red one
► In curly braces
► In small braces
► In single quotes
► In double quotes

Question No: 2 ( Marks: 1 ) - Please choose one
The size of int data type is
► 1 bytes
► 2 bytes
► 3 bytes
► 4 bytes

Question No: 3 ( Marks: 1 ) - Please choose one
In Flow chart process is represented by

► Rectangle
► Arrow symbol
► Oval
► Circle

Question No: 4 ( Marks: 1 ) - Please choose one
If the break statement is missed in switch statement then,// a break statement with no label always completes abruptly, the reason being a break with no label. If no switch, while, do, or for statement in the immediately enclosing method, constructor or initializer encloses the break statement, a compile-time error occurs.

► The compiler will give error
► This may cause a logical error
► No effect on program
► Program stops its execution

Question No: 5 ( Marks: 1 ) - Please choose one
When we are using const keyword with a variable x then initializing it at the time of declaration is,

► Must
► Optional
► Not necessary
► A syntax error

Question No: 6 ( Marks: 1 ) - Please choose one
Which of the following is the correct way to assign an integer value 5 to element of a matrix say ‘m’ at second row and third column?




► m[2][3] = 5 ;

► m[3][2] = 5 ;

► m[1][2] = 5 ;
► m[2][3] = ‘5’;

Question No: 7 ( Marks: 1 ) - Please choose one
How many total elements must be in two-dimensional array of 3 rows and 2 columns?


► 4
► 5
► 6
► 7


Question No: 8 ( Marks: 1 ) - Please choose one
Which of the following is the correct statement for the following declaration?
const int *ptr.
ptr is a constant pointer ►       

ptr is constant integer pointer ►       

ptr is a constant pointer to int ►       

ptr is a pointer to const int ►       

Question No: 9 ( Marks: 1 ) - Please choose one
Consider the following code segment. What will be the output of this code segment?As arrays starts from 0 index………at 1st position is 3………n at position 4th is 5…
……5-3=2

int arr[6] = {2, 3, 7, 4, 5, 6} ;
int *ptr1 =&arr[1] ; 
int *ptr2 = &arr[4] ;
cout (ptr2-ptr1) ;


► 3
► 9
► 12
► 2




Question No: 10 ( Marks: 1 ) - Please choose one
What will be the correct syntax to assign an array named arr of 5 elements to a pointer ptr?

*ptr = arr ; ►        

ptr = arr ; ►       

       *ptr = arr[5] ; ►

ptr = arr[5] ; ►        


Question No: 11 ( Marks: 1 ) - Please choose one
C is a/an ______ language
low level ►       
object based ►       
object oriented ►       
function oriented ►       

Question No: 13 ( Marks: 1 ) - Please choose one
The variables having a name, type and size are just like empty boxes.
False ►
True ►       

Question No: 14 ( Marks: 1 ) - Please choose one

What's wrong with this for loop?
for (int k = 2, k <=12, k++)

► the increment should always be ++k
► the variable must always be the letter i when using a for loop
► there should be a semicolon at the end of the statement
► the commas should be semicolons

Question No: 15 ( Marks: 1 ) - Please choose one
Most efficient method of dealing with structure variables is to define the structure globally

True ►       
        False ►

Question No: 16 ( Marks: 1 ) - Please choose one
Syntax of union is identical to ______
       Structure ►
Class ►       
Function ►       
None of the given options ►       


Question No: 1 ( Marks: 1 ) - Please choose one

There are mainly -------------------- types of software.//

► Two
► Three
► Four
► Five

Question No: 2 ( Marks: 1 ) - Please choose one

seekg() and write() are functionally _________________ .//
Write() Writes a specified number of bytes from a memory location to the file.
seekg() Moves the file position indicator to a specific location in the file.
The Position property of TFileStream simplifies seeking in a file and performs the same function as the ifstream methods tellg() and seekg(). You can read Position to determine the current file position, or you can write to Position to move the file position.

► Different
► Identical
► Two names of same function
► None of the above

Question No: 3 ( Marks: 1 ) - Please choose one
When a pointer is incremented, it actually jumps the number of memory addresses

► According to data type
► 1 byte exactly
► 1 bit exactly
► A pointer variable can not be incremented

Question No: 4 ( Marks: 1 ) - Please choose one

setw is a parameterized manipulator.

► True
► False

Question No: 5 ( Marks: 1 ) - Please choose one

eof( ), bad( ), good( ), clear( ) all are manipulators.

► True
► False

Question No: 6 ( Marks: 1 ) - Please choose one

In functions that return reference, use __________variables.

► Local
► Global
► Global or static
► None of the given option

Question No: 7 ( Marks: 1 ) - Please choose one
//not confirmed

► Class-Name operator + (Class-Name rhs)
► operator Class-Name + ( )
► operator Class-Name + ( rhs)
► Class-Name operator + ( )

Question No: 8 ( Marks: 1 ) - Please choose one

The compiler does not provide a copy constructor if we do not provide it……….

//Normally it provides but in some cases of classes it is good practice to provide user define copy constructor…
► True
► False

Question No: 9 ( Marks: 1 ) - Please choose one

What is the functionality of the following syntax to delete an array of 5 objects named arr allocated using new operator?
delete arr ;

► Deletes all the objects of array
► Deletes one object of array 
► Do not delete any object
► Results into syntax error

Question No: 10 ( Marks: 1 ) - Please choose one

What is the sequence of event(s) when allocating memory using new operator?

► Only block of memory is allocated for objects
► Only constructor is called for objects
► Memory is allocated first before calling constructor
► Constructor is called first before allocating memory


Question No: 11 ( Marks: 1 ) - Please choose one
What is the sequence of event(s) when deallocating memory using delete operator?

► Only block of memory is deallocated for objects
► Only destructor is called for objects
► Memory is deallocated first before calling destructor
► Destructor is called first before deallocating memory

Question No: 12 ( Marks: 1 ) - Please choose one

new and delete operators cannot be overloaded as member functions.

► True
► False



Question No: 13 ( Marks: 1 ) - Please choose one

The operator function of and >> operators are always the member function of a class.

► True
► False

Question No: 14 ( Marks: 1 ) - Please choose one

A template function must have at least ---------- generic data type

► Zero
► One
► Two
► Three

Question No: 15 ( Marks: 1 ) - Please choose one
If we do not mention any return_value_type with a function, it will return an _____ value.

► int
► void
► double
► float

Question No: 16 ( Marks: 1 ) - Please choose one

Suppose a program contains an array declared as int arr[100]; what will be the size of array?

► 0
► 99
► 100
► 101

Question No: 17 ( Marks: 1 ) - Please choose one
The name of an array represents address of first location of array element.

► True
► False

Question No: 18 ( Marks: 1 ) - Please choose one
Reusing the variables in program helps to save the memory

► True
► False

Question No: 19 ( Marks: 1 ) - Please choose one
Which of the following option is true about new operator to dynamically allocate memory to an object?
// new is an operator that allows dynamic memory allocation on the heap. Except for a form called the "placement new", new attempts to allocate enough memory on the heap for the new data and, if successful, returns the address to the newly allocated memory. However if new can not allocate memory on the heap it will throw an exception of type std::bad_alloc. This removes the need to explicitly check the result of an allocation.

► The new operator determines the size of an object
► Allocates memory to object and returns pointer of valid type
► Creates an object and calls the constructor to initialize the object
► All of the given options

Question No: 20 ( Marks: 1 ) - Please choose one
new and delete are _____ whereas malloc and free are _____.

► Functions, operators
► Classes, operators
► Operators, functions
► Operators, classes


Question No: 21 ( Marks: 1 ) - Please choose one
Like member functions, ______ can also access the private data members of a class.
► Non-member functions
► Friend functions
► Any function outside class
► None of the given options

Question No: 22 ( Marks: 1 ) - Please choose one

Which of the following statement is best regarding declaration of friend function?
► Friend function must be declared after public keyword.
► Friend function must be declared after private keyword.
► Friend function must be declared at the top within class definition.
► It can be declared anywhere in class as these are not affected by the public and private keywords.

Question No: 23 ( Marks: 1 ) - Please choose one
The operator function overloaded for an Assignment operator (=) must be
► Non-member function of class
► Member function of class
► Friend function of class
► None of the given options



Question No: 24 ( Marks: 1 ) - Please choose one
For non-member operator function, object on left side of the operator may be

► Object of operator class
► Object of different class
► Built-in data type
► All of the given options

Question No: 25 ( Marks: 1 ) - Please choose one
The operator function will be implemented as _____, if obj1 drive the - operator whereas obj2 is passed as arguments to - operator in the statement given below.
obj3 = obj1 - obj2;

► Member function
► Non-member function
► Friend function
► None of the given options

Question No: 26 ( Marks: 1 ) - Please choose one
Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?
► Class-name operator +() ;
► Class-name operator +(int) ;
► Class-name operator ++() ;
► Class-name operator ++(int) ;

Question No: 27 ( Marks: 1 ) - Please choose one

The static data members of a class are initialized _______

► at file scope
► within class definition
► within member function
► within main function

Question No: 28 ( Marks: 1 ) - Please choose one

Class is a user defined___________.

► data type
► memory referee
► value
► none of the given options.

Question No: 29 ( Marks: 1 ) - Please choose one
We can also define a user-defines manipulators.

► True
► False

Question No: 30 ( Marks: 1 ) - Please choose one
Automatic variable are created on ________.

► Heap
► Free store
► static storage
► stack



Question No: 1 ( Marks: 1 ) - Please choose one

Compiler is a

► System software
► Application Software
► Driver
► Editor

Question No: 2 ( Marks: 1 ) - Please choose one

Operating System is

► An application software
► System Software
► Computer Language
► Interpreter

Question No: 3 ( Marks: 1 ) - Please choose one

Which one is the correct syntax for defining an identifier PI with preprocessor directive?

► #define PI 3.1415926;
► #define PI 3.1415926
► #define PI = 3.1415926 ;
► #define PI = 3.1415926

Question No: 4 ( Marks: 1 ) - Please choose one

Character strings are arrays of characters that can store

► Only one character
► Limited number of characters
► Number of characters specified.
► None of the given option

Question No: 5 ( Marks: 1 ) - Please choose one
Which of the following is NOT a preprocessor directive?

► #error
► #define
► #line
► #ndefine


Question No: 6 ( Marks: 1 ) - Please choose one

Which kind of functions can access private member variables of a class?
► Friend functions of the class
► Private member functions of the class
► Public member functions of the class
► Friend, private and public functions

Question No: 7 ( Marks: 1 ) - Please choose one
Let suppose int a, b, c, d, e;, a = b = c = d = e = 42;
This can be interpreted by the complier as:// assignment is right-associative.

[b]► a = (b = (c = (d = (e = 42))));[/b]
► (a = b = (c = (d = (e = 42))));
► a = b = (c = (d = (e = 42)));
► (a = b) = (c = d) = (e = 42);

Question No: 8 ( Marks: 1 ) - Please choose one

Friend function of a class is ______________ .

► Member function
► Non-member function
► Private function
► Public function

Question No: 9 ( Marks: 1 ) - Please choose one

Function implementation of friend function must be defined outside the class.
► True
► False

Question No: 10 ( Marks: 1 ) - Please choose one
When we define an array of objects then,

► Constructor will be called once for whole array
► Constructor will be called for each object of the array
► Constructor will never call
► Depends on the size of array

Question No: 11 ( Marks: 1 ) - Please choose one

The stream objects cin and cout are included in which header file?
► iostream.h
► fstream.h
► istream.h
► ostream.h

Question No: 12 ( Marks: 1 ) - Please choose one

What is the sequence of event(s) when allocating memory using new operator?

► Only block of memory is allocated for objects
► Only constructor is called for objects
► Memory is allocated first before calling constructor
► Constructor is called first before allocating memory

Question No: 13 ( Marks: 1 ) - Please choose one
Missing semicolon ‘;’ at the end of C++ statement is

► Logical error
► Syntax error
► Runtime error
► None of the given options

Question No: 14 ( Marks: 1 ) - Please choose one

An array stores the numbers into consecutive memory locations.

► True
► False

Question No: 15 ( Marks: 1 ) - Please choose one

The template functions do NOT promote the code reuse

► True


Question No: 16 ( Marks: 1 ) - Please choose one

What will be the correct syntax for initialization of pointer ptr of type int with variable x?

► int ptr = &x ;
► int ptr = x ;
► int *ptr = &x ;
► int ptr* = &x ;

Question No: 17 ( Marks: 1 ) - Please choose one

Which of the following function calling mechanism is true for the function prototype given below?
float func(float &);

► Call by value
► Call by reference using pointer
► Call by reference using reference variable
► None of the given options
▶ Reply
Message
Permalink Reply by M.Tariq Malik yesterday
Question No: 18 ( Marks: 1 ) - Please choose one

If overloaded plus operator is implemented as non-member function then which of the following statement will be true for the statement given below?
obj3 = obj1 + obj2 ;

► obj2 will be passed as an argument to + operator whereas obj2 will drive the + operator
► obj1 will drive the + operator whereas obj2 will be passed as an argument to + operator
► Both objects (obj1, obj2) will be passed as arguments to the + operator
► Any of the objects (obj1, obj2) can drive the + operator


Attachments:

The statement cout yptr will show the __________the yptr points to.
Value
Memory Address
Variabvle
None of given
char **argv can be read as__________________.
Pointer to Pimter
Pointer to Char
Pointer to Pointer to Char
None of given
_______________are conventional names of the command line parameters of the ‘main()’ function.
‘argb’ and ‘argv’
‘argc’ and ‘argv’
‘argc’ and ‘argu’
None of Given
___________ Returns true if c is a digit and false otherwise.
int isalpha( int c )
int isalnum( int c )
int isxdigit( int c )
int isdigit( int c )
In the case of pointer to pointer or _______________, the first pointer contains the address of the second pointer, which contains the address of the variable, which contains the desired value.
double dereference
Single dereference
dereference
None of the given
_______________________ contains functions for manipulations of character data.
ctype.h
iostream.h
string.h
None of the given
dereferencing operator is represented by _______
*
+
-
None of the given
In_________, we try to have a precise problem statement
Analysis
Design
Coding
None of the given
Memory allocated from heap or free store _____________________.
can be returned back to the system automatically
can be allocated to classes only
cannot be returned back unless freed explicitly using malloc and realloc
cannot be returned back unless freed explicitly using free and delete operators
Once the _______________ are created, they exist for the life time of the program
local variables
non static variables
static variables
automatic variables
Once the static variables are created, they exist for the life of the program. They do not die. So returning their reference is all right.
The members of a class declared with the keyword struct are _____________by default.
static
private
protected
public.
The members of a class declared with the keyword struct are public by default. A structure is inherited publicly by default.
If the memory in the free store is not sufficient ____________________.
Select correct option:
malloc function returns 1
malloc function returns 0
malloc functions returns NULL pointer
malloc function returns free space
if the memory in the free store is not sufficient enough to fulfill the request. malloc() function returns NULL pointer if the memory is not enough. In C++, 0 is returned instead of NULL pointer.
This reference to a variable can be obtained by preceding the identifier of a variable with ________________.
dot operator
ampersand sign &
^ sign
operator
Once an object is declared as a friend, _________________________.
it has access to all non-public members as if they were public
it has access to public members only
it has no access to data members of the class
it has to protected data members only
Reference variables must _________________.
not be initialized after they are declared
be initialized after they are declared
contain integer value
contain zero value
If the request of new operator is not fulfilled due to insufficient memory in the heap____________________.
the new operator returns 2
the new operator returns 1
malloc functions returns NULL pointer
malloc function returns free space
Reference is not really an address it is ______________.
a synonym
an antonym
a value
a number
If the request of new operator is not fulfilled due to insufficient memory in the heap ____________________.
the new operator returns 2
the new operator returns 1
the operator returns 0
free operator returns nothing
Functions declared with the _______________ specifier in a class member list are called friend functions of that class.
protected
private
Public
friend
Functions declared with the friend specifier in a class member list are called friend functions of that class. Classes declared with the friend specifier in the member list of another class are called friend classes of that class.
public or private keywords can be ____________
written only for once in the class or structure declaration
written multiple times in the class or structure declaration
written only twice in the class declaration
written outside the class
good practice is to write public or private keywords only once in the class or structure declaration, though there is no syntactical or logical problem in writing them multiple times.
The friend keyword provides access _____________.
in one direction only
in two directions
to all classes
to the data members of the friend class only
The friend keyword provides access in one direction only. This means that while OtherClass is a friend of ClassOne, the reverse is not true.
References cannot be uninitialized. Because it is impossible to _______________
reinitialize a pointer
reinitialize a reference
initialize a NULL pointer
cast a pointer
new operator can be used for ______________.
Select correct option:
only integer data type
only char and integer data types
integer , float, char and double data types
dot operator
Similarly, new operator can be used for other data types like char, float and double etc.
The destructor is used to ______________.
allocate memory
deallocate memory
create objects
allocate static memory
If we want to allocate memory to an array of 5 integers dynamically, the syntax will be _____________.
int *iptr ; iptr = new int[5] ;
integer iptr** ; iptr= new int[5]
int iptr ; iptr= int [5]
iptr= new[5]
Memory allocated from heap or free store _____________________.
can be returned back to the system automatically
can be allocated to classes only
cannot be returned back unless freed explicitly using malloc and realloc
cannot be returned back unless freed explicitly using free and delete operators
The memory allocated from free store or heap is a system resource and is not returned back to the system unless explicitly freed using delete or freeoperators.
Operator overloading is to allow the same operator to be bound to more than one implementation, depending on the types of the _________.
Select correct option:
Compilers
Operands
Function names
Applications
Operator overloading is to allow the same operator to be bound to more than one
implementation, depending on the types of the operands.
The operator to free the allocated memory using new operator is________________.
Select correct option:
free
del
delete
remove
The operator to free the allocated memory using new operator is delete. So whenever,
we use new to allocate memory, it will be necessary to make use of ‘delete’ to deallocate
the allocated memory.
The concept of friend function negates the concept of _________________.
Select correct option:
inheritance
polymorphism
persistence
encapsulation
New operator is used to allocate memory from the free store during ______________
Compile Time
Run Time
Link Time
None of above
To get the memory address of a variable we use _____

&

&&
*
|

If we have a program that writes the output data (numbers) to the disc, and if we collect the output Data and write it on the disc in one write operation instead of writing the numbers one by one. In the above situation the area where we will gather the number is called
Buffer
Stream
Memory
None of these
What functionality the following program is performing?
#include <iostream.h>
int main()
{
const int SIZE = 80;
char buffer[SIZE];
cout ” Enter a sentence : “;
cin.getline(buffer, SIZE);
coutbuffer endl;
system(“pause”);

}
objects are used respectively to read a sentence from the key board and then print it on the screen.
Using getline function
using character arrays
Doing nothing
The get member function, when passed no arguments, inputs an entire stream and returns it as the value of the function call.
True
False
New operator allocates memory from free store and returns ___________
Void
NULL
Nothing return
None of above
The statement cin.get (); is used to,
Read a character from keyboard
Read a an entire string
Read integer values
Read float values
Suppose int i = 10; then what will be the value of i after being converted in to octal value
10
12
14
16
Which of the following is a destination of cout stream?
Monitor /screen
Keyboard
Memory
None of these
Which of the following is the correct definition of streams ?
streams are memory locations
sequence of bytes are called streams
sequence of variables are called streams
sequence does not have any definition
Stream operators are heavily overloaded means , they allow to handle int and character data type only.
true
false
What functionality the following program is performing?
int main()
{
const int SIZE = 80;
char buffer[SIZE];
cout ” Enter a sentence : “;
cin.getline(buffer, SIZE);
coutbuffer endl;
system(“pause”);

}
read and write member functions of cin and cout objects are used respectively to read a sentence from the key board and then print it on the screen.
read and put member functions of cin and cout objects are used respectively to read a sentence from the key board and then print it on the screen.
get and write member functions of cout and cin objects are used respectively to read a sentence from the key board and then print it on the screen.
get and write member functions of cout and cin objects are used respectively to read a sentence from the key board and then print it on the screen.
Which of the following is a source for cout stream?
monitor / screen
keyboard
proccessor
none of these
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?
Its binary representation will be ignored and the character will be stored
Its binary representation will be ignored and the value will be stored
Its ASCII code will be stored inside the computer
Some error will occur and cin stream will detect this error.
The endl and flush are _____
Functions
Operators
Manipulators
Objects
What is the difference between cout and cerr ?
cout is unbuffered output and cerr is buffered output
cout is standard output and cerr is not a standard output
cout is not a standard output and cerr is standard output
cout is buffered output and cerr is unbuffered output
The operator function for (stream insertion) >> and stream extraction must be
Member function of class
Non-member function of class
Both member and non-member function
None of the given options
The pointer returned by the new operator points to ————— of memory chunks allocated by the new operator
First memory address
Second memory address
Last memory address
None of the above
When we used eof (end of file) with the file reading than which of the following is a true statement?
This is way to check source of the stream
This is way to check destination of the stream
This is way to check state of the stream
This is way to check type of the stream
The stream insertion and extraction operators are not already overloaded for ____
Built-in data types
User-defined data types
Both built-in and user-defined types
None of the given options
When a variable is defined as static in a class then ___________
Separate copy of this variable is created for each object
Only one copy is created for all objects of this class
A copy of this variable is created for only static objects.
None of the given options
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

RSS

*Member OF Week*

1. SiLeNt MooN(Admin)

SAHIWAL, Pakistan

=======================

Popular Social Events

=======================

+ Member of the Day

+ Member of the Week

+ Member of the Month

+ Member of the Year

+ Miss VU

+ Mr VU

+ Gold Members

+ Vote for Miss VU

+ Vote for Mr VU

+ Members Points Table

+ Profile Points Allocation

+ Competition Corner

+ Our Fans Club

+ Certificate Winners

---------------------------------------

௵ Scholars Of Desk

 Gold Members

 MR VU,S

௵ MISS VU,S

 Members Of Month

 Team Members

 Moderators 

  ADMINS

ʭAdministrationʭ

Senior Admin : Yasmeen

VUDESK Owner : Ismail Shah

DMCA.com

VUDESK GROUPS

© 2013   Created by ʭIsmail Shahʭ.

Badges  |  Report an Issue  |  Terms of Service

-->