Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS201 Paper 26, May2010
#1
Today's Paper


Q1: Write down the general syntax of switch statement. 2 Marks

Q2: Why we close a file after use? 2 Marks

Q3: When a pointer is incremented then how many bytes will it move to change its address?
2 Marks

Q4: If there are 2n element in an array then what would be the number of iterations required to search a number using binary and linear search? 3 Marks

Q5: write down the functions definition if we want to pass the argument to a function by reference without changing the values stored at address. 5 Marks

Q6: What will be the output of the following code segment 5 Marks

, int x= 6;
int y;
x = x << 1;
y = x >> 1;
cout << “x = ” << x << “\n”;
cout << “y = ” << y;
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS201-Introduction to Programming Quiz No.3 Discussion and Solutions Fall 2014 vuassignments 0 1,718 07-04-2014, 02:15 AM
Last Post: vuassignments
  CS201-Introduction to Programming Quiz No.1 Solutions Spring 2014 vuassignments 0 2,636 05-15-2014, 04:17 PM
Last Post: vuassignments
  CS201 Introduction to Programming Online Quiz No.4 Solution & Discussion Fall 2013 Vuhelper 0 2,294 02-08-2013, 05:08 PM
Last Post: Vuhelper
  CS201 Introduction to Programming Quiz No.1 Fall Semester 2012 Vuhelper 0 2,738 11-08-2012, 02:56 PM
Last Post: Vuhelper
  CS504 Paper May 2010 viki 2 2,480 04-14-2012, 09:31 PM
Last Post: Xpert
  CS201 - Introduction to Programming quiz on 30th june spring 2011 Xpert 0 2,323 07-01-2011, 01:24 AM
Last Post: Xpert
  plz share current paper of mth501 rana ahmed 0 2,060 02-24-2011, 04:49 AM
Last Post: rana ahmed
  CS201 - Introduction to Programming announcement for quiz 28 jan 2011 Xpert 0 2,674 01-25-2011, 04:31 PM
Last Post: Xpert
  Important instruction about paper and examz of math related subjectssssss haseeb.ullah 2 2,478 01-25-2011, 01:34 AM
Last Post: haseeb.ullah
  CS201 Introduction to Programming fall 2010 announcement IQ-test 0 1,853 11-22-2010, 05:37 PM
Last Post: IQ-test

Forum Jump:


Users browsing this thread: 1 Guest(s)