CS410 VU Midterm current papers Fall 2011 (www.vusolutions.com)

t is sometimes more efficient for an application to draw directly in a window without relying on the WM_PAINT message. How this task can be accomplished (i.e. how can we draw in a window directly without using WM_PAINT message)? (5)

Write down a C/C++ program that has 2 functions. One takes four integer variables as parameters and returns their sum and the other also takes 4 integers as argument and returns their multiplication. Also write 2 macros that perform the same tasks as these functions perform.(5) 

How can I use the CopyTo method of the Windows Forms controls collection to copy controls into an array? (3)
How Windows keep track of the files?(3)
Can you write a class without specifying namespace? Which namespace does it belong to by default?(2)
"In the GDI environment there are two working spaces", Name these two. (2)
Read More
CS408 VU Midterm current papers Fall 2011 (www.vusolutions.com)

Total Questions : 26 (20 MCQ and rest are below)

Q. Define Attention 2 marks
Q. Being a researcher why you need of literature review?2 marks

Q. If People are free to let their imagination run free as long as the mental models they developed, then why do people use erroneous mental models? 3 marks

Q. How star lifecycle model is different from Water fall model and RAD model in repect to ordering activities. 3 marks

Q. Speech input and their limitation. 5 marks
Q. You are a software engineer. What do you mean by lifecycle model and why they are used in software development?5 marks
Read More
CS302 VU Midterm current papers Fall 2011 (www.vusolutions.com)

Q:1 Draw function table of an half adder circut? (2)
Q:2 What is diffrence b/w BCD to decimal decoder and binary 4-to-16 bit decoder? (2)
Q;3 Explain major use of decoder circuts? (3)
Q:4 PALS comes in different configurations and are identified by a unique number,identify parts of this number? (5)
Q:5 One of the ABEL entry method uses logic equation.explain atleast two example? (5)
Read More
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.
Read More
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
Read More
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)
Read More
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)
Read More
Next PostNewer Posts Previous PostOlder Posts Home