Assalam Alaikum
my today paper of cs201
1) write a program which creates a new file having name cs201.txt and write "intro-
duction to programming by Dr Naveed A Malik" in it. and after that print the content of
this text file on the screen using get line function.(5 marks)
2)write a program which creates an integer array with 4 row and 2 column and then
display the elements value of first column in each row. (5 marks)
3)difference between get() and getline()? (3 marks)
4) mention constrains of random method for accessing files.(2 marks)
baqi aik code ka output batana tha or mcqs thy jin me se kuch past papers me se b
thy.
my today paper of cs201
1) write a program which creates a new file having name cs201.txt and write "intro-
duction to programming by Dr Naveed A Malik" in it. and after that print the content of
this text file on the screen using get line function.(5 marks)
2)write a program which creates an integer array with 4 row and 2 column and then
display the elements value of first column in each row. (5 marks)
3)difference between get() and getline()? (3 marks)
4) mention constrains of random method for accessing files.(2 marks)
baqi aik code ka output batana tha or mcqs thy jin me se kuch past papers me se b
thy.