We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

CS 201 QUIZ NUMBER 01 OPENING DATE 24011-14  CLOSE DATE 25-11-14

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 2599

.

+ 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)

Replies to This Discussion

  • Which of the function call is call by value for the following function prototype? float add(int);

  • add(&x);

  • add(x);

  • add(int x);

  • add(*x);


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.

add(x);

add(x);

  • What will be the value of ‘a’ and ‘b’ after executing the following statements? int a = 9; int b = a++; cout/p>

  • 10,9

  • 9,10

  • 9,9

  • 10,10


correct

  • When the if statement consists of more than one statement then enclosing these statement in braces is _________.

  • Compulsory

  • Optional (not sure)

  • Not required

  • Relevant

  • Compulsory

thanks alot hifzah... so i think i got 7/10 marks...

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.
Arithmetic
Relational
Logical >>>>right option
Mathematical
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?
0
5>>>>right option
6
4
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, Reference
Reference,value >>>>right option
Value, Reference
Value, Value

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.
Inside
Outside>>>>right option
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.
If
Goto
Break>>>>right option
Continue

Question # 7 of 10 Total Marks: 1 
When the if statement consists of more than one statement then enclosing these statement in braces is _________. 
Compulsory>>>>right option
Optional
Not required
Relevant

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); 
15
17>>>>right option
12
1

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? 
2>>>>right option
2.1
2.06
2.07
Question # 10 of 10 Total Marks: 1 
__________ will be used for clarity and to force the order of evaluation in an expression. 
" "
()PG32
' '
[]>>>>right option

is k 1st Question ka ans rational operator h

> and <  operators are called 'relational operators

RSS

Latest Activity

+ ! ! ! @ Ishal @ ! ! ! + joined + M.Tariq Malik's group
35 minutes ago
+ ! ! ! @ Ishal @ ! ! ! + joined + M.Tariq Malik's group
36 minutes ago
+ ! ! ! @ Ishal @ ! ! ! + joined + M.Tariq Malik's group
37 minutes ago
+ ! ! ! @ Ishal @ ! ! ! + joined + M.Tariq Malik's group
37 minutes ago
+ ! ! ! @ Ishal @ ! ! ! + joined + M.Tariq Malik's group
38 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion CS202 - Fundamentals of Front End Development Assignments No. 1 Due Date Nov 14, 2019 in the group CS202 Fundamentals of Front End Development
44 minutes ago
Hj replied to + M.Tariq Malik's discussion CS507 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 15-11-2019 in the group CS507 Information Systems
56 minutes ago
Ali Haider and Talha Asad are now friends
1 hour ago
+ "J ɨ y ą ⋆ liked + "αяsαℓ " Ќąƶµяɨ •"'s discussion The World's most expensive Proposal
1 hour ago
mohammad ahsan choudhry updated their profile
1 hour ago
+ ! ! ! ShaH ZaAdi(Shaho) joined + M.Tariq Malik's group
1 hour ago
saad latif replied to + M.Tariq Malik's discussion CS401 Assignment No 01 Fall 2019 Solution & Discussion in the group CS401 Computer Architecture and Assembly Language Programming
1 hour ago
Profile Iconsaad latif, Ikra butt and 4 other members joined + M.Tariq Malik's group
1 hour ago
Ikra butt added a discussion to the group CS610 Computer Network
1 hour ago
Ikra butt joined + M.Tariq Malik's group
1 hour ago
saad latif liked + M.Tariq Malik's discussion CS401 Assignment No 01 Fall 2019 Solution & Discussion
1 hour ago
Ikra butt liked + M.Tariq Malik's group CS401 Computer Architecture and Assembly Language Programming
1 hour ago
Ikra butt joined + M.Tariq Malik's group
1 hour ago
+ ! ! ! @ Ishal @ ! ! ! + joined + M.Tariq Malik's group
1 hour ago
Namood replied to + M.Tariq Malik's discussion MTH601 Assignment No 01 Fall 2019 Solution & Discussion in the group MTH601 Operations Research
1 hour ago

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service