We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

# CS201 Current Midterm papers Dated 11-05-2012 to 22-05-2012

CS201 Current Midterm papers Dated 11-05-2012 to 22-05-2012

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

Views: 3112

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

### Replies to This Discussion

CS201 Introduction to programming  11-5-2012 midterm paper on spring 2012

Attachments:

AAJ KA AKHRI SESSION KA EXAM CS201

SUBJECTIVE:

Q.  IF YOU HAVE SAVED A BINARY FILE ON YOUR DESKTOP AND YOU WANT TO ACCESS IT WITH TEXT EDITOR WHAT WILL HAPPEN IF IT OPENS?   [3]

Q. Int Name [2][2] is a 2x2 array write a code which takes input from the user.  [5]

Q. Write a program that changes the lower case to Upper case and back to lowercase. [5]

Zeeshan Ahmed  thanks for sharing

70% array aye hain

CS201 VU Midterm Current Papers Spring 2012 of Virtual University of Pakistan [May 2012]

20 mcqs.mostly from past papers & 15-22 lectures
21) which bit of number is used as a sign bit?
22) open() & close() function advantage of memory utilization..
23) int array[7] is an int array type.what will b the statement for the fourth element of this array?
24 & 25 )write the output of the given code. 5 marks each
.
Another Paper
.
Subject Questions…
Q1. Write a program which will input ten integers into a array then sort it and find maximum and minimum integer in array.
Hint: Finding maximum and minimum is quite easier in sorted array. (10 Marks)
Q2. open() & close() function memory utilization advantages. (3 marks)
Q3. write down a syntax in which we can find the size of structure in bytes. (3 Marks)
Q4. Difference between (*) and (&) in pointers. (mark 5)
Q5. int num is an array then assign its address to point myPtr. (Mark 5)
etc…. etc… etc… etc..
Note: pointers mein se zyada questions aaye hain. Ratte Mar lo… :)
.
Another Paper:
.
Total 26 questions (6 subjective rest mcqs)
DevCpp, calculator not allowed.
most of the previous papers questions were given
Long questions were on, to write down the output of the given programme.( in these loop structures were given)
Question on output of array elements. (very basic one) marks ranging from 2 to 3.
write down a programme on the function involving the swap of integer values without using any other variable (laast one of 6 marks)
mcq’s including switch statemnet, type of software, word processor is either a random accesing file or serial acces file, a lot of questioning about pointers and arrays, the question of past papers in which a variable x=7-then what will be the value of x after x %=2.
All in all the paper is easy.
.
Another Paper:
.
my today’s paper
Write a declaration statement for an array of 10 elements of type float. Also initialize first four elements of array to 1.0, 2.0, 3.0 and 4.0.(2)
Which bitwise operator returns true if both bits are different and returns false if both bits are same?(2)
Suppose if we want to store values like 10, 45.3, 4, A, D, 6.4, and 50 by using array. Can we store all these vu solutions dot com elements by declaring a single array? Yes or no ? Give reason to support your answer(3)
Write the code for a structure called Inventory having the following elements:
A character array named partName
An integer named partNumber
An integer named stock. (3)
5.Write a program which opens a file named “this.txt” and then using write() function, writes the string “Introduction to Programming” at the end of the file.(5)
6.Write a program which declares and initializes an integer array of 10 elements and then using a pointer, displays the array elements in reverse order.
.

Another Paper:
.
Don’t remember the exact questions but giving the main theme.
There are
20 MCQ
2×2 Q
3×3 Q
5×5 Q

MCQ most programming base, like what is the syntax or output etc.

Q: tell the sizeof() value of a structure variable.
Q: use of the keyword “const”
Q: which of these functions are vu solutions dot com string manipulation and conversion function?
Q: a program which input a telephone number with city code and recognize if it is from lhr or not.
Q: an program is given and we have to tell the output. Program consists array and loop.
Q: how many memory locations will a pointer will jump if it is incremented.

sare objective cs201 ke is file me se aye the
20 objec 2 2 nm
2 3
2 5 num ke sawal
26 total sawal the
string likhne the i lov pakistan  or aik or string dono ko compare krwana tha aise
ke jab 'i" likho tu likha aye dosre sting me ke i found else
compare stings ka
aik or tha us me program ke output likhne the
call by value ka question tha
aik or question sting me programming word likhna tha two ways sse

muhammad usman thanks & keep it up

making Program about arrays and pointers
most of the paper is of programming
what is the output of the program etc

Don’t remember the exact questions but giving the main theme.
There are
20 MCQ
2x2 Q
3x3 Q
5x5 Q

MCQ most programming base, like what is the syntax or output etc.

Q: tell the sizeof() value of a structure variable.
Q: use of the keyword “const”
Q: which of these functions are string manipulation and conversion function?
Q: a program which input a telephone number with city code and recognize if it is from lhr or not.
Q: an program is given and we have to tell the output. Program consists array and loop.
Q: how many memory locations will a pointer will jump if it is incremented.

Almost_300_Solved_MCQs_of_CS201_Introduction_To_Programing

Attachments:

Latest paper of CS201

2 programmes jo k iss bar paperz mai aye hy

Program 1           marks 5

Write a program which declare and initialize two arry of 2*2 dimension.add the number wise elements of both the arry and store the result in a new arry?

Program 2

Write a program which declare an arry and initialize it with string”welcome to virtual university” then using string mainupulate function replace all the white space in the string with newline character and also convert all the lowercase letter string into uppercase counting. And out put show as belove

Welcome

To

Virtual

university

How declare character array

First we write the type of data,then name of array and at last we write size of array in

[] brackets.

Is there any difference for declaring the character arrays and integer arrays?

Yes,there is a diffrnece for declaring character arrays and integer arrays,because integer need int data type and characters need char data type.

Example of declaring the character array.

Char a[20]

Convert it to c++ statement.

intPtr is constant pointer to integer.

Int *const intPtr;

intPtr is pointer to a constant integer.

Const int *inPtr

getline() function

Use Bitwise operators and write a programme using the following formula.

Product = number * 2 ki power 5

Which get number from the keyboard and tell the value of product.

C++ is______language.

Low level……not sure.

Object base.

Object oriented.

4,45.3,A, D, 50, 6.5 can we store this data by declaring single array or not?give your answer with proper reason?

, 45.3, 6.5 are decimal values.

A, D are the characters.

4, 50 are type or integer,

there fore we cannot declare these in single array.

## Latest Activity

16 minutes ago
ہاشم added a discussion to the group MTH401 Differential Equations

### MTH401 Assignment Solution 2 2020

22 minutes ago
Zainsha malik replied to Zainsha malik's discussion MTH303 assignment no 2 in the group MTH303 Mathematical Methods
23 minutes ago
ہاشم and Aqsa Athar joined + M.Tariq Malik's group

### MTH401 Differential Equations

26 minutes ago
30 minutes ago
30 minutes ago
+ ! poison liked + ! poison's discussion ******haar na mannay waly log******
31 minutes ago
+ ! poison posted discussions
32 minutes ago
36 minutes ago
36 minutes ago
39 minutes ago
42 minutes ago

1

2