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.

CS201 All Current Mid Term Papers Spring 2013 (25 May 2013 ~ 06 June 2013) at One Place

From 25 May 22, 2013 to 06 June 2013 Spring 2013

Current Mid Term Papers Spring 2013 Papers, May 2013 Mid Term Papers, Solved Mid Term Papers, Solved Papers, Solved Past Papers, Solved MCQs

+ 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: 4620

.

+ 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

Thanks for sharing 

CS201 Introduction to Programming

Today Midterm Paper (27-5-2013)

 

Total Questions :26

20 Marks: 20 MCQ’S

2 Marks: 2 questions

3Marks: 2 questions

5Marks: 2 questions

 

  1. There is a pointer “ptr”of type int then address of which type of variable the ptr will store in it?

Variable of type char

Variable of type int

Variable of type double

Variable of type short

 

  1. Overflow condition occur when we try to assign a value to a variable which is _______

Less than its max size

Greater than its max size

Equal to

With in its range

 

  1. Which one of following statement is equal to x%=5?

x=%x5                         x=x%5             x=%5               x%=x5

 

  1. < , <=, >, >= are called ________ operators.

Logical Arithmetic                     Relational                     Conditional

 

  1. Correct way to initialize a character array ‘course’ with string “programming” is:

Course[12]=”programming”;

Course[]={”programming”};

 Course[]=’programming’;

 Course=”programming”;

 

  1. In c/c++ null cahracter is represented as:

\n                     \0                     \t                      \r

 

  1. To access the address of the variable ________ operator is used.

*

->

&&

&

 

  1. Afunction is a block of statements(codes) that can be ________

Defined repeatedly

Used limit no. of times

Defined once and used(call) as many times as required

Used only once

 

  1. In a return type of a function is void then it means that it will_______

Return any type of data

Return no data

Return some specific type of data                                              Return just char data

 

 

  1. C language was evolved from ________ language.

BASIC

FORTRAN

C++

B and BCPL

 

  1. The information stored in computer memory is ________

Volatile

Non-volatile

Redundant

Permanent

 

  1. A record is group of related ____________

Data

File

Bytes

Fields

 

  1. When accessing a structure member, the identifier to the left of the dot operator is the name of _________

A structure member

A tag

A variable

A keyword structure

 

  1. Stuctures are __________ allocation.

Heap

Queue

Stack

Cache

 

  1. An object of __________ class be created for saving the current possition of any opened file before reading from the file.

Filepos

Streampos

Stream

File stream

 

SUBJECTIVE PART:

 

How the two dimensional array is related to the matrix .2 MARKS

Assuming that “num” is a 2D array of character than what does statement *num contains? 2MARKS

 

 

Write a program in which you prompt the user to take 10 values in array and then display them ,sort the array and then find the maximum and minimum number in them . 3 MARKS

 

 

 

 

Write the output of the following: 5 MARKS

 

#include <iostream. h>

Union mytypes_t

{

            char c;

            int i;

            Float f;

}

mytypes;

 

int main();

{

 

            mytypes.c=’H’;

            mytypes.i=’15’;

 

coutsize of (mytypes)endl;

 

            mytypes.i=’15’;

            mytypes.c=’H’;

 

coutsize of (mytypes)endl;

 

return0;

 

}

 

 

Explain the logic of each statement:  5 MARKS

     Streampos orig=aFile,tellp();

     aFile.seekp(0.ios::end);

All output programs with output for Midterm Exam.

Attachments:

Current solved papers

Attachments:

RSS

Latest Activity

+ !! "AS" !! replied to + !! "AS" !!'s discussion Jis Tarah ..
13 minutes ago
+ !! "AS" !! replied to + !! "AS" !!'s discussion Baat Karna ...
13 minutes ago
+ !! "AS" !! replied to + !! "AS" !!'s discussion Ghalti...
14 minutes ago
+ !! "AS" !! replied to + !! "AS" !!'s discussion Yaha Har Cheez ..
14 minutes ago
+ !! "AS" !! replied to + !! "AS" !!'s discussion Alfaaz Ki Nisbat..
15 minutes ago
Profile IconSafdar Mehmood, Shayaan, Hafiz muhammad sufyan and 28 more joined Virtual University of Pakistan
16 minutes ago
+ ! ! ! ! ! ! ReBeL replied to ٥ دن's discussion Gunahon ki gehrai
45 minutes ago
MUHAMMAD USMAN replied to MIT's discussion cs604 Quize#1 fall semester 2019 in the group CS604 Operating Systems
54 minutes ago
+ ! ! ! ! ! ! ReBeL replied to +¢αяєℓєѕѕ gιяℓ's discussion Iss tasvir ko Unwan Dein :-P
1 hour ago
مخلص posted a discussion
1 hour ago
ambreen fatima and Muhammad Hamza Mehmood are now friends
1 hour ago
MIT added a discussion to the group CS604 Operating Systems
1 hour ago
sardarni liked + M.Tariq Malik's discussion MCM531 Community Journalism Assignment No 01 Fall 2019 Solution & Discussion Due Date: 22-11-2019
2 hours ago
sardarni joined + M.Tariq Malik's group
2 hours ago
blackeagle replied to + M.Tariq Malik's discussion EDU402 Curriculum Development Assignment No 01 Fall 2019 Solution & Discussion in the group EDU402 Curriculum Development
2 hours ago
sardarni joined + M.Tariq Malik's group
2 hours ago
sardarni joined + M.Tariq Malik's group
3 hours ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
3 hours ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Happy Marriage to "Zee" & " Nomi weds Noor"....!
3 hours ago
+ "αяsαℓ " Ќąƶµяɨ •" liked +¢αяєℓєѕѕ gιяℓ's discussion Shadi Ho Rhi Hai Alhamdulillah.......... (^__^)!
3 hours ago

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

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