www.vustudents.ning.com

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

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

Views: 3343

### Replies to This Discussion

Assalam o alikum

dear member

mera aj ka paper bohat he tough aya tha pata nahe Q

pehlay 10 lectures main kuch khas nahe aya lekin baki 12 lectures main say bohat sawal aye

Total marks 40

MCQ = 20

2 number Question = 2x2 = 4 marks

3 number Question = 3x2 = 6 marks

5 number Question = 5x2 = 10 marks

Technology with An Interesting name ka puch tha.

If an array has 100 elements, what is allowable range of subscripts?

(a) 0 - 99

(b) 1 - 99

(c) 0 - 100

(d) 1 - 100

2 number ka Quiz tha

Q write a code to open a file, file name is "myfile.txt"

koe en sab question ko solve kr dy plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

CS201 My Today Midterm Paper

Date 14-12-2012

MCQ’s

Tamam MCQ’s past papers mein sy thy

Baqi questions ye thay

1)

In programming we use structure and Arrays for what purpose?    Marks=3

2)

Which is better approach in term of memory space occupation and why?                                                                      Marks=3

i)                                                                                                                                           Char *arr[]={“programming”,”fundamental”,”cs201”};

ii)                                                                                                                                        Char arr[3][50]= {“programming”,”fundamental”,”cs201”};

3)                                                    Marks=5

Determine the value of m and n after execution the code

Int m=44;

Int*p=&m;

Int &r=m;

Int n=(*P)++;

Int *q=p-1;

++*q;

Assume that integers occupy 4 bytes and that m is stored in memory.

4)                                                    Marks=5

Briefly explain the logic of given code. Also determine the value of ‘counter’ variable if the code below is executed.

Main ()

{

Int num=5;

Int counter=0;

While (num !=0)

{

If (num &01)

Counter++;

num >>=1;

}

return  0;

}

Is k ilawah 2,2 marks k 2 questions b thy jo mujy yaad nai is waqat

Q1marks(2)wt is bit sign number?

Q2- wt is sequential and random access and which is best?

Q3- for loop ka aik question tha us main error batana tha?

Q4- yd ni

Q5&Q6-marks5

output batani thi un ki? progrm main uplod kerta hn likha huwa hai mery pas mil nai raha kch dair tk kerta hn.

Welcome & Ameen

haha...thanks for sharing this info Hania.....kindly if u tell us the short questionz too....

Hania Thanks

1

2

3

4

5

## Latest Activity

8 minutes ago
+ M.Tariq Malik liked °αғғαřοžУ ε ЙооЯ°(Ex Stu)'s discussion unboxing
12 minutes ago
+ M.Tariq Malik liked + !! Ήලᵯᵯℹ Ⲥⱨ !! +!!'s discussion !!!!!!!!!!
13 minutes ago
+ M.Tariq Malik liked + !! Ήලᵯᵯℹ Ⲥⱨ !! +!!'s discussion #######
13 minutes ago
FATIMA ZAHRA joined + M.Tariq Malik's group

### CS403 Database Management Systems

16 minutes ago
FATIMA ZAHRA joined + M.Tariq Malik's group

### CS304 Object Oriented Programming

17 minutes ago
FATIMA ZAHRA joined + M.Tariq Malik's group

### CS201 Introduction to Programming

18 minutes ago
FATIMA ZAHRA updated their profile
21 minutes ago