Course Activities at VUSR

↑ Grab this Headline Animator

http://www.etcfn.com/feed/

CS201 Introduction to Programming MCQs

CS201-Introduction to Programming study material for students of virtual university of Pakistan. Download Past(old) Papers solved/unsolved, past assignments, quiz, mcqs, lecture notes, video lectures, handouts, books of CS201-Introduction to Programming

Question :
QuestionAdded By
We can not define a function as a friend of a Template class.Titter
  • true
  • false
Take MCQ
addy
width() is member function of______Titter
  • cin
  • cout
  • both 1 & 2
  • none of the above :)
Take MCQ
addy
The function free() returns back the allocated memory got thorough calloc and malloc to)_______Titter
  • stack
  • heap
  • both 1 & 2
  • none of the above :)
Take MCQ
addy
Which of the following function do NOT initialize the chunk of memory to all zero?Titter
  • calloc()function
  • both maloc and callloc
  • malloc()function
  • none of the above :)
Take MCQ
addy
The appropriate data type to store the number of rows and colums of the matrix is__________Titter
  • float
  • int
  • char
  • none of the above :)
Take MCQ
addy
Assignment operator is -------------------------associativeTitter
  • right
  • left
  • binary
  • uniary
Take MCQ
addy
The stream insertion and stream extraction operators are already overloaded for_________Titter
  • user_define data type
  • built in data type
  • both 1 & 2
Take MCQ
addy
Which situation would require the use of a non-member overloaded operator?Titter
  • The overloaded operator is an Assignment operator.
  • The left most operand is an object of a class.
  • The left operand is built-in data type.
  • the operator return a refrence
Take MCQ
addy
Like member functions, _________________can also access the private data members of a classTitter
  • friend functions
  • non_meber function
  • any function outside the class
  • none of the above :)
Take MCQ
addy
new and delete are __________whereas malloc and free are_________Titter
  • class, operator
  • functional ,operator
  • operator, function
  • operator, class
Take MCQ
addy

Get Latest Updates in your Email

Delivered by FeedBurner