Skip to main content

Posts

Showing posts with the label CS201 Recent Papers

CS201 Current Midterm Paper Fall 2013 File 3

by Hirabatool on December 21, 2013 at 10:21pm My  today  paper  Q1 ; write  these  statements  in  C++   (5 marks) 1:intPtr  is  a  constant pointer to integer        2:intPtr  is  a  pointer  to  constant  q2:define   a program   an  array  of  15  elements   that  changes  all  upercase letters      to   lowercase  and  vice  virsa.(5 marks) q3:  Char  name []= " Hello  World";        size  of  array name ? q4:  Syntax  for  opening  file  outfile.txt  using  file handling q5  tel  the size  of  initialized  array int  arr []={0,0,0,0} q6:tell  the  functions   Strcpy   ,atof,atio Remeber  me  in  ur  prayers  .Jazakallah  khair !!

CS201 Current Midterm Paper Fall 2013 File 2

Today Paper Total Questions = 26 Total Marks = 40 Total MCQs of 1 Mark = 20 Short Subjective Question of 2 Marks = 2 Subjective Question of 3 Marks = 2 Subjective Questions of 5 Marks = 2 Q) Write the syntax for calling function string manipulation function which compare the first 5 character array "name" with string "asdf"? Q))When a pointer isincremented then how many bytes will it move to change its address? Q)Declare an integer array longroutes and pointer routrptr and assign the address of array longroutes to the pointer variable routeptr to the pointer? Q)Find which is legal and illegal ? Q) show the output of the following code: main() {char st[]="~This is -a sample string!"; char*pch; pch=strtoklstr,",-s`"; while(pch!=Null) coutPch; pch=strtok(NULL,",-s~") } return 0; } Q)) When a pointer is incremented,what happens in the following cases? a)single-dimensional array b)two –dimensional array 3

CS201 Current Midterm Paper Fall 2013 File 5

by ELLIS on December 20, 2013 at 10:56pm Here is my Juste CS201 Midterm paper 2013. ·          50% mcqs were from past papers. Rest were new. ·          Whole paper mcqs, short, long questions came from Array, Pointers and Integers topics nothing else came in my paper. ·          I only remember few questions sharing them here. Word processor is:                                                                  (a) Operating system (b) Application software (c) Device driver (d) Utility software For which values of the integer _value will the follow...