Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

CS201 Current MID Term Papers Fall 2012 Date: 08-December-2012 to 19-December-2012

Views: 3358

Replies to This Discussion

mcqs thy kitny??

me_innocent thanks for sharing 

MY today paper on 9:00


5,6 MCQ from past papers(total 20)

subjective all new

two 5,3 marks question from file handling

2 from pointers

1 from array

thanks fellows

ALLAH sub ko kamyab krin 

Ameeennnnn

 Eeman Chuhdry welcome 

 haroon aslam thanks for sharing 

Note for All Members: You don’t need to go any other site for current Mid Term papers fall 2012, Because All discussed data of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

haroon aslam thanks 

Paper of CS201 (Mid Term 08-Dec-2012)
Time 2:30 pm                                                                                                               Total Marks = 40

Total Questions = 26

Objective Question = 20

Subjective Question= 6

Q 1 & 2 = 2+2 marks

Q 3 & 4 = 3+3 marks

Q 5 & 6 = 5+5 marks

___________________________

Today paper

20 % from past papers

&

80 % in Handouts + Video Lec

In Subjective area

1- what is meant by C++ Statement: const int *ptr = &x;?   2 marks

2- Pointer character stored the string in C++ and array character stored the string in C++? now discussed who is more efficient? 3 marks

3- Find the syntax error? 2 marks

4- Write a program related array topic? 5 Marks

5- Write a program related union? 5 Marks
6- I forgot this question  

I hope so it will help u in ur preparation of CS201 papers . . . . 



1:-Detect the correct compile time error(s) in the following code

Hints:- The following code  print number from 1-100 (5 Marks)

Void main()

{

int cout:

float *ptr;

for(couter=1;couter<=100;couter++)

{

ptr=couter:

coutptr” ”;

getch();

return 0;

}

 

2:- write a program which declare an array and initialize it with string ‘WELCOME TO VIRTUAL UNIVERSTY’. Then using string manipulate function, replace all the white space in the string with new line characters and also convert all the lower cases latter of string into upper case latter. In the end program displaces the following string on the screen

The program should display the string as

Welcome

To

Virtual

University(5 Mars)

 

3:- In any program language structure and array are used for what purpose (3 marks)

4:- what is syntax for finalization of the pointer ptr of type with variable x? (2 marks)

 and one more question related to a program and that was of 5 marks 




Q write a code to open a file, file name is "myfile.txt"
Q write a structure whos name is Inventory etc 3marks
Q declare 2-dimentional array and then assign pointer to this array 2 marks
Q aik code diya tha us ka output batana tha ....strtok wala code tha for 5 marks
Q write a code which pass camand line argument to main and return integer 3 marks
Q if p and q are int pointer and n is integer then the followings are legal or illigal 5marks
1 p - q
2 p-n
3 q+n
4 q+ p
5 n +p 

 

subjective Questions related to outputs.

question from file handling
2 from pointers
1 from array

 

Solution of Inventory Struture

 Muhammad Afzal thanks 

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service