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

Looking For Something at vustudents.ning.com? Click Here to Search

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

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

26 QUESTIONS

20 MCQ'S 

1) TWAIN stands for........ (Ans:Technology without any interesting name)

2) microsoft word is what type of software.......(utility,driver,application)
3) First address of an element in array is called....? (first address, base address)
4) Doc file (Ms word file) is of what kind (a binary acces file, random access file, sequential or exe)
5) switch statement is replacement of ( Ans: multiple-if statement)
6) which statement checks the test condition at the end of loop (Ans: while)

7)mcq about checking of file through tg() tp()...etc

which bit of the number gives sign. (2)
how clossing a program with close() funciton saves memory(5)

suggestion: Grasp over the arrays and pointers and you've completed 80 percent of the paper.....:)

+ How to Follow the New Added Discussions at Your Mail Address?

+ 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?


See Your Saved Posts Timeline

Views: 1105

.

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

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

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

 a.wakeel 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/sharing 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.

3. What a problem in the given code. How can you correct it.

Cout”p=”p”,p+q=”p+qend1;                          Marks(2)

 4. what is error in this code and give reason of error.

main()

{

                  Intx=10;

                  Const int *ptr=&x;

*ptr = 5;

      }                                                                                   Marks(3)

Sequential and random method. In given 2 method wich one is best and why?

                                                                                          Marks(3)

  1. write a programe that prompt the user to enter the value in an array

programe should sort the array in increasing order and found the maximum and minimum number in the array.                                            Marks(5)

 

6.  write a programme which create a new file having name cs201.txt and write introduction to programming taught by Dr Naveed Malik” in it.

      And after that print the content of this text file an the screen using getline function.

                                                                                                                        Marks(5)

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

mujhe sara paper to yad nahe lekin kuch yad hai 

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"

baqi yad nahe 




  1. Which one is correct initializing of 2D array having 3 rows and 2 cols
    1. int arr[2][3] = {6,7,4}
    2. int arr[3][2] = {5,6,7}
    3. int arr[3][2] = {2}
    4. int arr[][2] = {(2,3),(4,5),(5,2)}
  2.  a loop which is used for known repetition
    1. For loop
    2. While loop
    3. Do while loop
    4. Switch
  3. If x = 10 and y = 5 then x %= y*3…………..
    1. 10
    2. 15
    3. 30
    4. 0
  4. The size of int data type in memory
    1. 1 byte
    2. 1 bit
    3. 8 byte
    4. 4 byte
  5. For which array type one more than size array declared
    1. Int
    2. Double
    3. Char
    4. None
  6. If x = 7 then x %= 2 …………
    1. 3
    2. 2
    3. 1
    4. 0
  7. Which symbol in represent process in flow chart
    1. Oval
    2. Rectangle
    3. Square
    4. None
  8. Correct statement to assign zero all the elements
    1. Arr[2][3] = {0,0}
    2. Arr[2][3] = {{0},{0}}
    3. Arr{2][3] = {0}
    4. None
  9. Array is a data structure that stores…………….
    1. Memory address
    2. Variables
    3. Data types
    4. Values
  10. ……………………….. of a function is also called signature of a function
    1. Declaration
    2. Definition
    3. 2 op bhool geya
  11. A function which does not return any value has return type
    1. Int
    2. Void
    3. Char
    4. None
  12. C provides standard language in (isi tara ka tha kuch)
    1. 1960
    2. 1987
    3. 1986
    4. 1992
  13. Compiler of c is written in………………..
    1. Java
    2. Fortron
    3. C
    4. Pata nai keya tha
  14. C  developed in………………..
    1. Richard laboratory
    2. Bell laboratory
    3. Microsoft
    4. IBM
  15. Information stored in computer  memory
    1. Volatile
    2. Permanent
    3. Non-volatile
    4. Bhool geya
  16. Question e bhool geya
  17. C++ views each file as sequential stream of
    1. Bits
    2. Bytes
    3. Names
    4. Words
  18. Bhool geya
  19. Bhool geya
  20. Record is a group of related
    1. Fields
    2. Bytes
    3. Files
    4. Words
  21. Find the error in following code and describe in detail

#include<iostream.h>

Main()

{

                int x = 10;

                int y = 5;

               

                int *const ptr = &x;

                ptr = &y

                return 0;

}

  1. Left shift the string 0101 and write the  answer in binary and decimal
  2. What happened if file “write.txt” does not exist. And we open file as Infile.open(“write.txt”,ios::in)
  3. Write a program and open a file “out.txt” and move 100 bytes  from begning and write

“Reached at position 101”

  1. Write constant pointer to integer

And pointer to constant integer

  1. Ik aur question tha jis main b error hi dhoondna tha wo yad nai a rha

CS201 Today Paper

Total Questions = 26

Total MCQ = 20 (Each of 1 Marks)

Total Short Questions = 2 (Each of 2 Marks)
Total Short Questions = 2 (Each of 3 Marks)
Total Long Questions = 2 (Each 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 

CS201 MID TERM Current Papers Dec.-2012 Fall 

Cs 201 current paper :

20 mcqs and 2 3 question of 2 marks 2 question of 3 marks ,2 question of 5 marks 

Q.A two-dimensional array has 3 rows and 4 columns. Write down the syntax to initialize first element of all
three rows of two-dimensional array with value 2.

Q.Identify the errors in the following code segment and give the reason of errors
main(){
int x = 10
const int *ptr = &x ;
*ptr = 5 ;
}
Q. Write the syntax of outfile.text ?
Q Advantage of close() file

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

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 . . .

CS201 MID TERM Current Papers Dec.-2012 Fall 

paper tough tha mcqs b ajeeb say thay 
exact to yaad nahi but kuch aisay thay questions
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 ( in mein yad nahi * ya / b hai tha ya ni)

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

Cs 201 current paper :

20 mcqs and 2 3 question of 2 marks 2 question of 3 marks ,2 question of 5 marks 

Q.A two-dimensional array has 3 rows and 4 columns. Write down the syntax to initialize first element of all
three rows of two-dimensional array with value 2.

Q.Identify the errors in the following code segment and give the reason of errors
main(){
int x = 10
const int *ptr = &x ;
*ptr = 5 ;
}
Q. Write the syntax of outfile.text ?
Q Advantage of close() file

         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.

CS201 Today Paper

Total Questions = 26

Total MCQ = 20 (Each of 1 Marks)

Total Short Questions = 2 (Each of 2 Marks)
Total Short Questions = 2 (Each of 3 Marks)
Total Long Questions = 2 (Each 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 

RSS

Latest Activity

+ ՏhehαrZααD + liked + !! "AS" !!'s discussion Jis Tarah ..
50 minutes ago
Pronoun liked zobialatif's discussion hazrat ali says
1 hour ago
٥ دن updated their profile
1 hour ago
+ !! "AS" !! replied to + !! "AS" !!'s discussion Jis Tarah ..
2 hours ago
Siddiq khan kakar liked + M.Tariq Malik's discussion PAK301 Pakistan Studies Short Notes, PAK301 Solved Subjective Questions, PAK301 Solved MCQs
2 hours ago
Siddiq khan kakar liked + M.Tariq Malik's group PAK301 Pakistan Studies
2 hours ago
+ ! ! JS ! ! + posted a discussion
2 hours ago
Siddiq khan kakar liked Siddiq khan kakar's discussion RIP
2 hours ago
Kashif Iqbal added 2 discussions to the group FIN624 Islamic Mode of Financing
2 hours ago
+ ! ! JS ! ! + liked + Iuuoɔǝut +'s discussion جلوۂ عشق حقیقت تھی حسن مجاز بہانہ تھا
2 hours ago
+ ! ! JS ! ! + liked + !! "AS" !!'s discussion Baat Karna ...
2 hours ago
+ ! ! JS ! ! + liked + !! "AS" !!'s discussion Ghalti...
2 hours ago
+ ! ! JS ! ! + liked + !! "AS" !!'s discussion Yaha Har Cheez ..
2 hours ago
+ ! ! JS ! ! + liked +!!!StRaNGeR!!! +'s discussion ﺁﭖ ﺩﻝ ﺟﻮﺋﯽ ﮐﯽ ﺯﺣﻤﺖ ﻧﮧ ﺍﭨﮭﺎﺋﯿﮟ ، ﺟﺎﺋﯿﮟ
2 hours ago
+ ! ! JS ! ! + liked + !! "AS" !!'s discussion Alfaaz Ki Nisbat..
2 hours ago
+ ! ! JS ! ! + liked + !! "AS" !!'s discussion Jis Tarah ..
2 hours ago
Siddiq khan kakar posted discussions
2 hours ago
+ ! ! JS ! ! + replied to + !! "AS" !!'s discussion Jis Tarah ..
2 hours ago
Zain Arshad replied to + M.Tariq Malik's discussion ENG201 Business and Technical English Writing Assignment No 01 Fall 2019 Solution & Discussion in the group ENG201 Business and Technical English Writing
2 hours ago
Nayyab Anwar updated their profile
3 hours ago

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

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