CS201 Quiz Introduction to Programming C++ [7]
Question # 1
Which one of the following operators is a unary operator? 1) : OR ( || )
2) : AND ( &&)
3) : XOR ( ^ )
4) : Complement operator ( ~ )
Question # 2
The statement i++; is equivalent to 1) : i = i + i;
2) : i = i + 1;
3) : i = i - 1;
4) : i --;
Question # 3
A variable which is defined inside a function is called 1) : Automatic variable
2) : Global variable
3) : Functional variable
4) : None of the given option
Question # 4
If we open a file stream myfile for reading, what will give us the current position of the file pointer? 1) : tellg()
2) : tellp()
3) : seekg()
4) : seekp()
Question # 5
Application Software’s are use to 1) : Type letters
2) : Control computer hardware
3) : Solve end user problems
4) : Develop Graphics
Question # 6
When we write a class template the first line must be: 1) : template < class class_type>
2) : template < class data_type>
3) : template < class T >, Here T can be replaced with any name but it is preferable.
4) : class template
Question # 7
When a macro takes arguments then it is called_________________. 1) : Function
2) : Procedure
3) : Parameterized macro
4) : Simple macro
Question # 8
By default an array of characters is passed by value to a function, 1) : TRUE
2) : FALSE
3) :
4) :
Question # 9
Using dynamic memory is more efficient then the static memory. 1) : True
2) : FALSE
3) :
4) :
Question # 10
Using dynamic memory is more _____________ then the static memory. 1) : Costly
2) : Expansive
3) : efficient
4) : Difficult