Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

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

Views: 3808

Replies to This Discussion

What will be the output of following code segment? for (int i = 2; i<10; i++){ if ( i == 5) continue; cout i "," ; }

  • 2,3,7,8,9

  • 2,3,4,6,7,8,9

  • 2,3,4

  • 4,6,7,8,9

correct answer would be 

  • 2,3,4,6,7,8,9

cause at 5, it will not print only.

why??? give reason plz

{ if ( i == 5) continue;

at 5, it will revert back to loop and will not print number "5"

but number "4" will be printed.

While loop becomes infinite in which scenario _______.

  • When the condition is always False

  • When the condition is always True

  • Condition contains logical operators

  • Condition contains arithmetic operators


true 

  • In loops the conditions are of ______ kind of expressions

  • Boolean expressions

  • Constant expressions

  • Primary expressions

  • Secondary expression


  • Boolean expressions

What will be the output of the following while loop? int counter = 0 ; while(counter < 15) cout counter “ ”; counter++;

  • 1 2 3 4

  • 1 2 3 4 5

  • Compile time error

  • Infinite loop

error q??

correct ...error hi ata h

  •           When we call a function, its control

  • transfers to its Prototype

  • transfers to its definition

  • returns to statement following function call

  • The compiler stops execution of whole program


RSS

Looking For Something? Search Below

Latest Activity

♥ + Kamli + ♥ liked + M.Tariq Malik's discussion MTH601 Operations Research Assignment 01 Spring 2021 Solution / Discussion
6 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion BIO303 Biochemistry II Final Term Papers Mega Files - Solved MCQs, Short Notes, Solved Past Papers & More
1 hour ago
+ M.Tariq Malik's 7 discussions were featured
1 hour ago
+ M.Tariq Malik added a discussion to the group BIO303 Biochemistry II
1 hour ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion BIO302 Molecular Biology Final Term Papers Mega Files - Solved MCQs, Short Notes, Solved Past Papers & More
1 hour ago
+ M.Tariq Malik added a discussion to the group BIO302 Molecular Biology
1 hour ago
+ ! ! ! ❣ Sanam ❣ !+ replied to иαвєєℓ αнмє∂'s discussion Kya hal hain ning awam?
1 hour ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion BIO301 Essentials of Genetics Final Term Papers Mega Files - Solved MCQs, Short Notes, Solved Past Papers & More
1 hour ago

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

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

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