Wednesday, 21 November 2012

CS201 QUIZ BY ZEALOUS VALIANT.



On Fri, Nov 16, 2012 at 2:52 PM, Rock City <rockcity009@gmail.com> wrote:
Respected Fellows,
I'm sharing my today's  quiz of CS201. Read it.I hope It'll help you.


Believe me almost 9 MCQ were new..So we need to gather fresh data. so all of you please save your quiz as well n do share with us.

If someone wants to take my help in his/her quiz ..you're most welcome..I'll try my best to give you help as much I can..I'll be online on 6:00 PM if there will be no problem of electricity.
 

Question # 1 of 10 ( Start time: 12:31:13 PM )  Total Marks: 1 

The result of 4%3 will be 

  2

 1.5

 1

 1.33


 Question # 2 of 10 ( Start time: 12:31:34 PM )  Total Marks: 1 

While developing a program; should we think about the user interface? 

 Yes

 No


Question # 3 of 10 ( Start time: 12:32:03 PM )  Total Marks: 1 

Which of the following is the right syntax to declare a variable in C++? 

 VariableName  Datatype;

 DataType = VariableName;

 DataType  VariableName;

 (DataType)  VariableName;


Question # 4 of 10 ( Start time: 12:32:30 PM )  Total Marks: 1 

What will be the resultant value of this expression x =17%3 ?   

 1

 2

 3

 4


Question # 5 of 10 ( Start time: 12:32:50 PM )  Total Marks: 1 

What will be the result of the expression k = ++m; if initially k = 0 and m = 5? 

 0

 5

 6

 4


Question # 6 of 10 ( Start time: 12:33:08 PM )  Total Marks: 1 

Function prototype is written, 

 Within main function

 After the return statement in main

 Before the return statement in main

 Before call of that function


Question # 7 of 10 ( Start time: 12:34:02 PM )  Total Marks: 1 

Switch statement can be used in place of _________ statement. 

 break

 continue

 Multiple if

 goto


http://books.google.com.pk/books?id=bjE5EHw35DkC&pg=PA239&lpg=PA239&dq=%22mutiple+if+statement+is+alnternative+of+Switch+statement+%22&source=bl&ots=0AjPQu6EZa&sig=X1QMvHuYa5Abfze3M43tSVUEbRc&hl=en&sa=X&ei=2_Z6UImFHofd4QTBz4HABw&ved=0CC4Q6AEwAA#v=onepage&q=%22mutiple%20if%20statement%20is%20alnternative%20of%20Switch%20statement%20%22&f=false


Question # 8 of 10 ( Start time: 12:34:46 PM )  Total Marks: 1 

In while loop the loop counter must be initialized, 

 With in the loop

 Before entering the loop

 At the end of the loop

 None of the given options


Question # 9 of 10 ( Start time: 12:35:28 PM )  Total Marks: 1 

What logical error exists in the following arithmetic expression? X = 50 / ( 2 % 2 ) + 9 

 

 

 ( ) parenthesis are not allowed in expressions

 Division by zero will occur in this expression

 Order of the expression is not according to rules

 We can not use % operator in expressions


Question # 10 of 10 ( Start time: 12:36:06 PM )  Total Marks: 1 

Loops are _______________ Structure 

 Decision

 Sequential

 Repetition pg 560

 None of the given options 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


--
VU-ROCKS




--
-- 
For Virtual University of Pakistan Study Material Sharing, Discussion, etc, Come and join us at http://4e542a34.linkbucks.com
You received this message because you are subscribed to the Google
Groups "Virtual Position" group.
To post to this group, send email to virtualposition@googlegroups.com
For more options, visit this group at
http://004bbb67.any.gs


No comments:

Post a Comment

Note: only a member of this blog may post a comment.