We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>
CS 201 QUIZ NUMBER 01 OPENING DATE 24011-14 CLOSE DATE 25-11-14
.+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
add(x) would be the correct answer I believe.
add(*x) - when you declare a function as call by reference.
add(&x) - when you call by reference
add (int x) - when you declare a function as call by value.
Do correct me.... if there is any mistake.. i hope kafi hon gi so i need correction
Question # 1 of 10 Total Marks: 1
< and > both are _________ operators.
Logical >>>>right option
Question # 2 of 10 Total Marks: 1
Find out the logical error in following lines of code. If (x = 10) cout “x is 10”;
10 should be enclosed in quotations
There is no semicolon at the end of if condition
Assignment operator should not be used for Comparison>>>>right option
Variable x should not be inside parenthesis
Question # 3 of 10 Total Marks: 1
What will be the result of the expression j = i++; if initially j = 0 and i = 5?
Question # 4 of 10 Total Marks: 1
Default mechanism of calling a function by passing it array is call by ________ and in case of passing variable is call by ________.
Reference,value >>>>right option
Question # 5 of 10 Total Marks: 1
When the break statement is encountered in a loop’s body, it transfers the control ________from the current loop.
To break statement
To continue statement
Question # 6 of 10 Total Marks: 1
________statement is used to terminate the processing of a particular case and exit from switch structure.
Question # 7 of 10 Total Marks: 1
When the if statement consists of more than one statement then enclosing these statement in braces is _________.
Question # 8 of 10 Total Marks: 1
What will be the value of the variable output in the given piece of code? double output = 0; output = (2 + 2) * 4 + 2 / (4 – 2);
Question # 9 of 10 Total Marks: 1
If we assign 2.06721 to an integer variable x, what will be the output if we print x using cout statement?
Question # 10 of 10 Total Marks: 1
__________ will be used for clarity and to force the order of evaluation in an expression.
is k 1st Question ka ans rational operator h
> and < operators are called 'relational operators