Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS201 current mid term Pape My Today'sr 16 May 2011
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
here is my today's CS201 Paper

Consider the structure 2 Marks



struct Customer

{

int custnum;

int salary;

float commission;

};



A programmer wants to assign 2000 for the structure member salary in the above example of structure Customer with structure variable cust1 What line of code should he write



Why are arrays usually processed with for loop? 2 Marks

What are the basic steps of file handling? 3 Marks

When a pointer is incremented, what happens in the following cases? 3 Marks

a) Single-dimensional array

b) Two-dimensional array



If int array[10]; is an integer array then write the statements which will store values at Fifth and Ninth location of this array. 5 Marks

Write down the output of the code given below : 5 Marks

Hint:

Size of char is 1 byte

Size of int is 2 byte

Size of float is 4 byte



#include <iostream.h>



union mytypes_t {

char c;

int i;

float f;

} mytypes;



int main(){



mytypes.c = 'H';

mytypes.i = 15;



cout << sizeof(mytypes)<<endl;



mytypes.i = 15;

mytypes.c = 'H';



cout << sizeof(mytypes)<<endl;



system("PAUSE");

return 0;

}

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  BNK603 Consumer Banking Mid Term Papers Fall Semester 2012 Vuhelper 0 4,693 11-24-2012, 09:28 PM
Last Post: Vuhelper
  pak301- Final Term Solved Papers for 2011 Xpert 1 7,298 02-09-2012, 12:29 PM
Last Post: David
  eng201 midterm paper subjective 26th November, 2011 Xpert 2 4,916 11-27-2011, 05:27 PM
Last Post: Xpert
  ACC501 Midterm subjective paper shared by student 26th Noivember, 2011 Xpert 0 3,101 11-26-2011, 11:46 PM
Last Post: Xpert
  cs403 database management midterm current paper of fall 2011 on 26th November Xpert 0 2,811 11-26-2011, 11:35 PM
Last Post: Xpert
  CS507 mid term exam of today fall november 2011 Vuhelper 1 3,135 11-26-2011, 08:23 PM
Last Post: Vuhelper
  eco401 mid term today current paper fall november 2011 Vuhelper 0 3,114 11-26-2011, 08:21 PM
Last Post: Vuhelper
  acc501 mid term current solve paper fall November 2011 Vuhelper 0 3,524 11-26-2011, 08:08 PM
Last Post: Vuhelper
  CS601 Current Spring 2011 Final Term VU Paper 20 July 2011 Vuhelper 1 3,091 11-21-2011, 02:33 PM
Last Post: sid786
  MGT101 today's 25 july 2011 final term paper (subjective) naveed004 0 3,971 07-25-2011, 10:30 PM
Last Post: naveed004

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support