Sunday, February 5, 2012

CS201 Current Final Term paper fall 2012

mcqs pooranay aye thay...
75% paper mein template per hi baat hoi
15% classes n inheritance tha
aur baki ka 10 % mix mein se tha...
so templates ko mostly prepare karen.

Read more: 
CS201 plz share ur current paper here - Virtual University of Pakistan http://vustudents.ning.com/group/cs201introductiontoprogramming/forum/topics/cs201-plz-share-ur-current-paper-here#ixzz1lVenEldx




kuch Q  yad han mugay bro and sis ko share ker raha hun.
1.define disk cleanup
2.window
3.header file
4.word processor


Read more: 
CS201 plz share ur current paper here - Virtual University of Pakistan http://vustudents.ning.com/group/cs201introductiontoprogramming/forum/topics/cs201-plz-share-ur-current-paper-here#ixzz1lVewn74M



Cs 201
2 Feb 2012 Final Term
Long Question 
Q1: Given is the code for a class named Coordinate.(10)
class Coordinate
{
private:
int X, Y;
public:
Coordinate()
{
X = 0;
Y = 0;



class Coordinate
{
friend void Displaycord();
private:
int X, Y;
public:
Coordinate()
{
X = 0;
Y = 0;

};




Q2: Write a program that defines a Template function named Square () which finds the square of a number and then return it. Define one variable of type int in main function and then call Square function on that. (10)
Program output should look like this:
Enter an integer value to find its Square: 6
Square of integer number is: 36
Q3: Why is it necessary to initialize a static object as the time of creation and how it is initialized ?(5)

Q4:Transform the following If-else statement into switch statement.(5)
if (x == 5)
...
else if (x == 10 || x == 11)
...
else if (x == 8)
...
else if (x == 9)
...
else
...


Q5:Read the given code and explain code functionality. (3)

Matrix :: Matrix ( const Matrix & m )
{
numRows = m.numRows ;
numCols = m.numCols ;
elements = new ( double * ) [ numRows ] ;
for ( int i = 0 ; i < numRows ; i ++ )
{
elements [ i ] = new double [ numCols ] ;
for ( int j = 0 ; j < numCols ; j ++ )
elements [ i ] [ j ] = m.elements [ i ] [ j ] ;
}
}
Hint : This function belong to a matrix class, having 
Number of Rows = numRows
Number of Columns = numCols
Q6: In the following code;(3)
#include <iostream.h>
#include <conio.h>
main() {
double j; 
getche();
}
Is double j; an example of global variable or local variable ? Why ? 

Q7: Identify and correct the error in the given code segment.(3)
main()
{
int val = 30;
int &ref = val; 
&ref = &ref++; 
}
Q8: Determine the output of the given program code.(2)
for (int I = 1; i<5; i++){
if ( I == 3)
continue; 
cout I endl ;
}
Q9: What is the output of following code snippet.(2)
// class templates
#include <iostream>
using namespace std;
template <class T>
class mypair {
T a, b;
public:
mypair (T first, T second)
{a=first; b=second;}
T getmax ();
};
template <class T>
T mypair<T>::getmax ()
{
T retval;
retval = a>b? a : b;
return retval;
}
int main () {
mypair <int> myobject (100, 75);
cout myobject.getmax();
system("pause");
}

Q10: How can we declare and initialize static data member of a class?(2)
Q11: When memory is allocated dynamically using new operator within the constructor of class then what is an appropriate place to de-allocate the memory?(2)
Q11: Write down the output of the following code segment? (2)
int x[10] = {0,1, 2, 3, 4, 5, 6, 7, 8, 9};
int *xptr;
xptr = &x[5];
cout *(xptr++) + 1;
MCQ
Sequence of event(s) when allocating memory using new operator is ____________.
Assignment operator is ________ associative
To avoid dangling reference, always return _________.
Which value is returned by the destructor of a class?
The functions used for dynamic memory allocation return pointer of type ______.
The function free() returns back the allocated memory got through calloc and malloc to _____ .
At the time of linking, library functions are available in the ________form.
Which of the following is NOT a preprocessor directive?
When we define an array of objects then ___________.
A constructor will create a new object with a full copy of the other object, this type of copy is known as ___________.
When an object of a class is defined inside another class then ______________.
Every stream has _________.
_________in the following options is not a method of output stream.
To perform manipulation with input/output, we have to include ________ header file
A class whose object is contained as const object, must have ____________.
By using objects as class members, _________ is achieved
The operator function will be implemented as _____, if both objects (obj1, obj2) are passed as arguments to - operator in the statement given below. 
obj3 = obj1 - obj2;
ANSI stands for _________.
A template function must have at least _______________ generic data type.
Which of the following is true about operator overloading?
1-The operator works with only objects of the class in which it is overloaded.
2-The operator works with objects and primitive data types regardless of parameters.
3-The operator works with both objects and primitive data types depending on parameters.
4-The operator must have a constant and an object as parameters.
Operator overloading can be performed through__________________.
The pointer returned by the new operator points to ___________ of memory chunks allocated by the new operator.
The return type of the operator function for operator is __________.
What will be the output of following statement?
cout setfill(‘0’) setw(7) 128 ;
The operator used for casting in C is standard ________ operator.


Consider the following code segment.
struct intorDouble
{
Int ival;
Double charvar;
}; 
main()

intorDouble VAZ;
int size ;
size = sizeof(VAZ);
}
What will be the value of variable size if integer occupies 4 bytes and double occupies 8 bytes?
The file-open mode __________ is used to open a file for output and move to the end of the file.
In the statement int &x = y; compiler ______.
Which header file must be included to use the functions tolower() and toupper()?
Which one of the following functions is included in stdlib.h header file?
For one byte, there are _____ combinations of values which can be stored in computer.
Which of the following statement is best regarding declaration of friend function?
Answer- It can be declared anywhere in class as these are not affected by the public and private keywords.
The operator used for dereferencing the elements of an array using a pointer is _________.
The __________ statement forces the immediate next iteration of the loop.
A function is a block of statements (code) that can be __________.
Which of the following values are used in C/C++ to represent true and false?
Ans- 1 and 0
The dynamic memory allocation uses memory from the ____________.
In C/C++, null character is represented as ________________.

Read more: 
CS201 plz share ur current paper here - Virtual University of Pakistan http://vustudents.ning.com/group/cs201introductiontoprogramming/forum/topics/cs201-plz-share-ur-current-paper-here#ixzz1lVfIQOjT




My today papers is
Total questions is 54 and 40 mcqs
4 questions of 2 marks
4 questions of 3 marks
4 questions of 5 marks
mostly mcqs from past papers and the long questions about classes and friendship


Read more: 
CS201 plz share ur current paper here - Virtual University of Pakistan http://vustudents.ning.com/group/cs201introductiontoprogramming/forum/topics/cs201-plz-share-ur-current-paper-here#ixzz1lVfQS6qu








CS101 Current Final Term 2012 Discussion


friends 4 question were 5 marks
40 mcqs and total questions was 52 mcqs were easy but big questions were not from past papers.
= data integrity (5 marks) (page no 253 on handout, students question was not about enshuring data integrity  that was about data integrity)
=(x+y)XOR z' create truth table (5 marks)
= write 4 properties of image object, 2 events and one method (5 marks)
= guidlines about presentation layout (5 marks)
= write code to print "Virtual University", a variable was initialize with value "virtual university of pakistan" (3 marks)
baki sara easy questions thay aor yaad nai itna e yad hain.
past papers k long questions na yad karain ppt slides ko parh kar concepts clear kar lain


Read more: CS101 p-lz share ur current paper here - Virtual University of Pakistan http://vustudents.ning.com/group/cs101introductiontocomputing/forum/topics/cs101-p-lz-share-ur-current-paper-here#ixzz1lVcGgTYv




FRIDAY, FEBRUARY 3, 2012

CS101 Latest Final Term Paper

CS101 Latest Final Term Paper


Question
   Many people consider that  "Database" and "DBMS" are same terms. Do you agree? Justify your opinion with example.                                                                                                                                5 marks

Question
    There are many aspects to be considered in order to develop a good and well balanced presentation. Does proper color usage matter while developing a good presentation? Discuss with reason.          5 marks                                                               
Question 
       Name the programming technique that is used to activate a procedure on an event occurrence. Also mention its way of working.                                                                                                         5 marks

Question
         Write any six String HTML wrapper methods                                                                     3 marks

Question
           Artificial intelligence is a wide field which can be further categorized into sub categories. You are required to briefly describe its any three sub-categories.                                                               3mrks

Question
        In large databases, a process is used to identify different patterns. Discuss that process along with the technique used by the process.                                                                                                3 marks
Question
      Computers deal in binary numbers while our communication media can transmit and receive data in the form of electrical pulses. So, how can we exchange data over the communication media?         3 marks

Question
               Define the term "Structured Vector Graphics".                                                           2 marks

Question
       Every organization is based on some type of organizational structure. Briefly describe the organizational structure which has more preference over others.                                                                       2 marks
Question
     Spreadsheet software can perform many jobs for a user. Write down any two jobs, spreadsheetsoftware is specifically designed to perform.                                                                              2 marks

Question
     If an IT person has a job in which he needs to travel far places. What category of computer suits him to buy and how it prefers on other categories?                                                      


Read more: CS101 p-lz share ur current paper here - Virtual University of Pakistan http://vustudents.ning.com/group/cs101introductiontocomputing/forum/topics/cs101-p-lz-share-ur-current-paper-here#ixzz1lVcWPJRW




my todayz paper: Describe ditherian scheme of image developing and define reasons of its poor quality image.(5)
write the 3 responsibilities of project manager.(3)
if u r a administratot then what kind of steps u take to make block the unathourized access in ur server.(3)
writ the benefits of a developer team if there is no error occuring in every stage of SW making.(3)
how DBMS is helpful in user-friendly way of presentation.(2)
identify the teams responsible of the following responsibilities.(5)
about java script string working.(2)
write in html tags. list of definetions:(5)
VU as virtual university of pakistan.
CS as introduction to computing.


Read more: CS101 p-lz share ur current paper here - Virtual University of Pakistan http://vustudents.ning.com/group/cs101introductiontocomputing/forum/topics/cs101-p-lz-share-ur-current-paper-here#ixzz1lVcb7tA2




This is Today's paper of CS101.
Dated: 03/02/2012

BEST OF LUCK! REMEMBER ME DURING PRAYRS.

Total Questions: 52
MCQS: 40
Some Mcqs:
Just like JavaScript _________ was used for writing script.
As a network administrator, Mr. Ali did not prefer peer to peer configuration for his network. Select the main drawback in this type of configuration which enforced him to choose the other option.
Highest bandwidth of a channel can be up to:
Which of the following is a container to store more than one value in JavaScript?
If you are asked to print a name for 20 times in a program, which loop will be better to use in this regard?
The term “Identifier” in JavaScript refers to________________.
In the context of JavaScript, x in the statement x=x+20; is a(n) __________.
onLoad event occurs when the form is _________.
Which event handler executes the specified JavaScript code when a window / form element receives focus?
_________ can be used in JavaScript to open multiple popup windows when a particular web page is opened.
Some software are used to display information in the form of a slide show. Select the software which cannot be used for this purpose.
What will be the output of the following code?
country=”Hello Pakistan”;
document.write (country.length);

JavaScript fixed() function has equivalent HTML tag-set ____.

a = Math.ceil(12.01);
Considering the statement, a is equal to _______.
In Genetic Algorithms, the most important thing to be kept in mind is:
Fuzzy logic is based on ____________.
Logic Bomb attack executes its payload on __________.

Which attribute of the image tag in HTML is used to mention the source of an image?

Which of the following cannot be considered as a property of image object:
_________ storage technique is used in structured vector graphics.
Which of the following is not a technique through which security can be improved?
If a data value in a database table B is referenced by a data value stored in table A, then according to__________, table A must have that value.
The group of technologies concerned with capturing, processing and transmission of information in digital electronic form is called _________.

Every phase of the project development require reporting on completion. When a developer completes his/her assigned module, he has to report to the _________.


Long Questions:
Why we use Truth Table for the logical function?
Spreadsheet software can perform many jobs for a user. Write down any two jobs, a spreadsheet software is specifically designed to perform.

HTML provides you the facility of including different types of images in your web pages. Write the general HTML syntax for including gif and jpg format images in a web page.
A term “Database” is widely used in computer world. Describe what does this term refer to?
Describe the applicability of Ockham's razor principle in the field of computing.
Differentiate onFocus and onBlur.
These days, security of its customer’s data in a network is the main concern of any organization. Suggest any five network security measures which an organization can take in order to ensure the security of data.
Elaborate the concept of telepresence in the context of computing and write the main benefit of using it.
Suppose a developer has to write pseudo code for a software project. Suggest any five tips he / she can follow to write it in a better way.
Suppose you have a problem where you need an intelligent system. Assuming that your problem consists of many small problems that can be handled independently then what type of AI system will you require? Justify with reason.

How marketing strategies are being changed with the progress in the field of computer and also describe how new  marketing strategies are being implemented?


In an organization having hierarchical structure, higher management plays very vital role for the organization . Provide the designation description of the higher management personals of an organization with their responsibilities and abilities.

 REMEMBER ME DURING PRAYERS!


Read more: CS101 p-lz share ur current paper here - Virtual University of Pakistan http://vustudents.ning.com/group/cs101introductiontocomputing/forum/topics/cs101-p-lz-share-ur-current-paper-here#ixzz1lVchTDn0




Draw the table of NAND GATE? 2 marks
Define the excitation inputs? 2 marks
Define State Variables? 2 marks
State the monotonicity of the digital to analog divider? 3 marks
How can we define Infinity and Zero in the 15bit decimal numbers? 3 marks
Write Jhonson's Table when the out Qo,Q1,Q2,Q3 are initialize to 0? 5 marks
Add the 110011, 01110010 and 11101011 binary numbers, write all steps? 5 marks
Above is the state diagram of Up-counter, write the next state table of the state diagram? 5marks
Implementing a FIFO memory by using a RAM? 5marks


Read more: CS101 p-lz share ur current paper here - Virtual University of Pakistan http://vustudents.ning.com/group/cs101introductiontocomputing/forum/topics/cs101-p-lz-share-ur-current-paper-here#ixzz1lVcn5g59