Current Papers
CS 201 - CS 201
01 Jun 2026 at 01:03 PM
easy conseptual base MCQ's tha. Q1. int number = 1 , integer_value; while (true){ cout << number; if (number==3)break; number += integer_value; } Option: a) only 1. b) only 1 and 2. c) only 0 and 1. d…
easy conseptual base MCQ's tha. Q1. int number = 1 , integer_value; while (true){ cout << number; if (number==3)break; number += integer_value; } Option: a) only 1. b) only 1 and 2. c) only 0 and 1. d) all the values except 1 and 2. Short Question: Q1. Find the output of the given code: int x[5] = {2,4,5,7,1}; int *ptr = &x[2]; cout << (*ptr)++ << endl; cout << *ptr++ << endl; Long Question: Q1. Write the code in C++ language in which user enter the Phone number, e.g. 04250****** is match to the city code. If the code of the Lahore city is (042) match to the code of Phone number then enter "This number in belong to Lahore." If city code is not matcher to the phone number then print "Unknown Number."