VUsolutions Transferred to AchiKhasi.com

From December 2011, this blog www.VUsolutions.blogspot.com is transferred to http://achikhasi.com/vu/ . So, you may visit http://achikhasi.com/vu/ for latest study related help.

Back to home VUsolutions

VUsolutions Fans Club [join us for MORE solutions]

VUsolutions on Facebook

CS201 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
CS201 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)


20 Mcqs
Question21:
Write the output of the following code segment: 2marks
intx[10]={0,1,2,3,4,5,6,7,8,9};
int*xptr;
xptr=&x[5];
cout<<*(xptr++)+1;


Question 22: 2marks
Write the syntax for closing a file "thisFile.txt" associated with the file handler my file.


Question 23: 3 marks
What is the output of following code snippet? 3marks
Int array[7], sum=0
For(int i=0; i<7;i++)
{
Array[i]=I;
Question 24: 5marks
If p and q are pointers to int and n is an int, which of the following are legal and which are the following are illegal statements? And why?


a.p+q
b.p-q
c.p+n
d.p-n
e.n-q


and 2 question more…. 


1.To Which category of the software "Compiler and Interpreter" belongs?
2.What is the result of the expression x = 2 + 3 * 4 – 4 / 2?
3-Which header file must be included while handling files?
4-What is meant by C++ statement: const int *ptr = &x;
5_what is the difference strcpy function and strncpy function?
6-write a program in which swaps two number without using third variable?
Hint:
bitwise operator use 


mostly mcqs is related to identify error in the program


todays paper CS-201:
Q.1. write a C statement to store word "Pakistan" by using character array and by using character pointer seperately .


Q.2. write a program which takes input 5 integers from the user, stores them in an array and by using pointer airthmatic displays thier squares on the screen. i.e if the 5 integers are 1, 2, 3, 4, 5, the output should be 1, 4, 9, 16, 25 .


Q.3. write a C statement for a structure Inventory, having 3 elements namely stock, price, quantity. 


Q.4. Trace out the mistakes in the given code (if any), correct it and give reason


main{ }


{
int x = 10;
const int *ptr = &x;


*ptr = 5;
cout << ptr;


}


Q.5. write a c statement for a structure of a triangle having 3 elements namely base, altitude and hypoteneus.

cs401 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
cs401 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Q1: wirte INstruction to Set ES register for vedio memory.
Q2: Define ROR
Q3: STOSB STOSW, Difine it
Q4: Define Parit, Carry O , A flags
Q5: write name and function of String Instruction

CS 506 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
CS 506 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Q#1:
Which function invoked Ist?
(1)Paint() (2) paintChildren() (3)paintBorder() (4)paintContent()

Q#2:
Socket is a ……..communication chanel between
(1)uni directional (2)bi directional (3)multidirectional (4)none of above

Q#3:
Which method invoke by AWT repaint?
(1)paint() (2)repaint() (3)draw() (4)redraw

Q#4:
A variable declare static in class is 
(1)instant variable (2)class variable (3)constant variable (4) Globel variable

Q#5:
An exception in java is represented
(1)operation (2)function (3)object (4)primitive data type

Q#6:
Exception handle code is written in
(1)try block (2)catch block (3)finally block

Q#7:
Category of unchecked exception is
(1) IO exception (2)AWT exception (3)classNoFound (4)Null pointer

Q#8:
Window fram dialog use……defult layout.
(1) Flow layout (2)borderlayout (3)gridlayout() (4)gridbridge

Q#9:
This() is used to.
(1) invoked constructor of another class
(2) invoked constructor of same class
(3) invoked constructor of super class from subclass.
(4) invoked constructor of sub class from superclass.

Q#10:
Which pakeg used by database?
(1) Java.IO (2)java.sql (3)java.AWT (4)java.swing

Bus yahi MCQ note kiya…..:(

QUTION#1 (2)

Concider code
Arraylist al=new ArrayList();
Person p= new Person();
Al add(p);
What will be the ayntax to get an object from the first index of arrayList?(2)

QUESTION#2 (2):
Write four types of JDBC driver? (2)

QUESTION#3:
Write dow the gnarl syntax for the registryevent handler genratorwhen u are working in GUI? (2)

QUESTION#3:
How can GUI component handle its own event (3)

QUESTION#4:
What is the difference between paint() and repaint()? (3)

QUESTION#5:
What are steps to write an applets in java? (5)

QUESTION#6:
You are require to write code for a GUI hasd program which will display a button and two labels.first label would contain text"here I am" and second lable would be empty .By cliking the 1ST lable will be shift to the second lable first lable would became empty.by clicking the second button the text for will shift on the first and so on.(5)

cs604 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
cs604 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

q1U R wanted to add descriptor 1 or 0 before the "<"or">"sing in Grep command shell accept or reject these descriptor.write the names of shell that can accept these descriptor? (2)


Q2: suppose u r working on Linux machine and require to check the process information.how can u view the process information? (2)


Q3: ther r 2  assumption  below
1)each process execute at a nonzero speed.
2)no assumtion can be made regarding speed of the N process.
u can be solved by useing these instruction? (2)


Q4: busy waiting is one the main charateristic of samphore.u have to identify that whether busy waiting is effective or deaffective for samephor?(3)


Q:5: Suppose tha athrea mapping .user level thread to kernel level threads.many kernel level threads and there exst no cuncurerncy between these threads.write down the name of mosel in the above scenario for mapping threads (3)


Q6: Describe the tow issue regarding the process and how the threads overcome these issues(5)


Q7: Data race detection method can be broadly categorized into static race detection and dynamics race.Lets as assume race detection which instruments the program and monitorIts execution inlinr or ofline.data race detector is not typically analyzez sourse or byte code without directly executing the program.these data race detection be classified into ……based on whther the model a happens befor relation lock set or both u need to identify which dara method is used?(5)

CS302 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
CS302  VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Q. Draw the function table of 2-to-4 decoder 2 marks
Q. Write Difference b/w "BCD to Decimal" decoder and "Binary 4 to 6" decoder 3marks
Q. Explain BCD to Decimal Decoder 3marks
Q.Explain how can we implement the addition of two BCD number with the help of two full adder. Also draw the block diagram 5marks
Q. Explain 8-input Multiplexer with the help of circuit Diagram and Function Table. 5marks

eng301 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
eng301 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

total questions 17
10 mcqs........
2 questions of 2 marks...........
2 questions of 3 marks...........
3 questions of 5 marks...........

asked for redrafting of a line???
what idea is used while writting a business letter??
what is voice mail??
what are the principles of efffective communication??
body of good will letter?
how listening is neccessary in communication??
refusal letter?

MGT201 - Financial Management) VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
MGT201 - Financial Management) VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Calculate the price of stock if directors of Baby and Baba's Shoes have decided to pay Rs. 4 per share as dividend, which is expected to grow at a constant rate of 8 percent per year from now on. Investors' required rate of return is 18 %. 

Sardar & Sardar Consultant Company is currently paying Rs. 2 per share as dividend, which is expected to grow at a constant rate of 7 percent per year. Investors require a rate of return of 16 percent to invest in stocks with this degree of riskiness. Calculate the price of this stock?


Suppose govt. pays coupon on its bond quarterly; calculate the intrinsic value of bond under the following circumstances:

A 10 year bond with 10% coupon rate is selling at Rs. 1,050. Face value of the bond is Rs. 1,000. Required rate of return is 12%.

Cs501 todays paper VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
Cs 501 todays paper VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Q1- What is Reset operation describe it types
Q2- Describe super scaler and VILW.
Q3- Write RTL functions and there was a rb +rc instruction
Q4- describe Time generator ?
Q5-. Write the structural RTL for " in ra, rb" (5 marks)
Q6- Write the Structural RTL description for un-conditional jump instruction for uni-bus data path implementation. (5 Marks)

cs301 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
cs301 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

all mcqz were from past papaer 
why queue is linear data structure.
how we can delete a node having 2 childs in bt.
2 codes were given to find errors and commenteach line
preorder inorder tree were given 
defie const keyword, reference variable , Dangling reference

cs609 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
cs609 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Total question was 23 
17 mcqs, mcqs was mostly in past papers 
(1) how get input from keyboard 2 marks 
(2) write the structer of status register C 5 marks
(3) coprocessor control word usage in testing of coprocessor 3 marks
(4) in flow control what is the working of D4 3marks
(5)what is meant by ES and DL when the 13H/3h invoked 2marks
(6) write a program that intercept interrupt 17 and ignore the blank spaces 5 marks

cs607 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
cs607 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

16 mcqs
diff b/w monotic and nonmonotonic reasoning
CNF form conversion
abductive reasoning
structural knowledge
certain and uncertain 
Diff b/w maximizer and minimizer
Paper was very easy

201 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
201 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

(easy but tricky )
Mostly Mcqz from past papers 
What is meant by *num and &num
Aik syntax likhna tha string comparison
What is the logic of this program (program related to files example no.1)
Write output of the program (example no.3 of string function )
Write output of the program (related to increament , decreament of array )
Bus itna hi yad hai .

Cs408 mid term today’s ppr VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This

Cs408 mid term today's ppr VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

1. What is most important thing to design in the user's conceptual model?

2. Suppose you are a project designer.wht do u thnk that qualitative data of potential users with the help observation and 

interviews as product designer?

3. Speech input and its three problems

4. Which display device is very cheap and has fast enough response time for rapid animation coupled with a high color 

capability?

5. Suppose you are a project designer, what do you think that qualitative search is is important or product design?

6. A web designer is going to design site for a university

(a) What ergonomics should be considered? Any 3 ergonomics aspects to be considered?

(b) How designer can define characteristics of interaction characteristics

Cs614 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
Cs614 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

What is the difference between DM and ER Modling? (5)
Why we keep name and address attribute of a table? what is your point of view? (5)
Difference between Full Extraction and Incremental Extraction? (3)
Difference between Range and expression splitting?(3)
What is meant by ETL?(2)
3 classes of Anomalies? (2)

Today paper of cs609 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
Today paper of cs609  VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Total question was 23 
17 mcqs, mcqs was mostly in past papers 
(1) how get input from keyboard 2 marks 
(2) write the structer of status register C 5 marks
(3) coprocessor control word usage in testing of coprocessor 3 marks
(4) in flow control what is the working of D4 3marks
(5)what is meant by ES and DL when the 13H/3h invoked 2marks
(6) write a program that intercept interrupt 17 and ignore the blank spaces 5 marks

cs610 networking VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This
cs610 networking VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

16 MCQs mostly from past papers
3 questions of 2 marks
2 question of 3 marks
2 question of 5 marks

1. We have two satellite locations. At first location one bridge is configured and at 2nd location twi bridges are configured. Which location's performance will be faster. Give reasons to support your answer. 5 marks

2. Star Textile has huge network of systems and switches. A task is given to IT Officer that if some link goes the entire network works smoothly. Which routing method will be use. 5 marks

3. Six devices are connected in network A,B,C,D,E and F. All devices are on same packet switch. Computer A wants to send packet to E. How will packet switch forwards the packet? 3 marks

4. Network administrator wants to build a tunnel between sites offices. How will he build using private virtual network? 3 marks

5. Who examine performance of network? 2 marks
6. How can we compute shortest path in WAN? 2 marks

7. 100mbps Ethernet NIC is connected to control Hub which supports 10mbps. What will be Data Rate in this scenario ? 2 marks

CS201 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Tuesday, November 29, 2011 Posted In Edit This

 VU Midterm Current Papers Fall 2011 of Virtual university of paksitan (www.vusolutions.com)

Q1- Determine the value of m and n after the execution of code given below.

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. (5 MARKS)

Q2- Write a program which defines two strings "Hello" and "Pakistan", merges both the strings using string manipulation function and displays on the screen. (5)

Q3- How the function strcpy() is different from the function strncpy() in terms of their working?
Q4- Determine the output of the given code segment. 

#include <iostream.h> 
main()
{
char *name[] = {"Ali", "Ahmad", "Riaz"};
int x;
int y; 
x = sizeof(name);
y = sizeof(*name);
cout<<x<<endl<<y; 
return 0;
}

Q5- We know that random method for accessing the files increases the performance but there are certain constrainsts on it. Mention those constraints

Q6- Write the code to access the element at third row and second column of a 2D array uses pointer named arrayptr.

Back to home VUsolutions

Shaadi.com: Just create ur account & find ur partner or EARN money, its reall & EASY

VUsolutions Followers (Join NOW and Get Extra Benefits)

Install LATEST toolbar having lot of features - GET solutions on Desktop

toolbar powered by Conduit
Caliplus 300x250 NoFlam VitoLiv 468x60 GlucoLo