Professional Documents
Culture Documents
Pro-Coputing VU Papers
Pro-Coputing VU Papers
FINALTERM EXAMINATION Fall 2008 CS201- Introduction to Programming Time: 120 min Marks: 75 http://www.allvupastpapers.blogspot.com/
Question No: 1
Two
Three
Four
Five
Question No: 2
Different
Identical
Question No: 3
1 byte exactly
1 bit exactly
http://www.allvupastpapers.blogspot.com/
Question No: 4
True
False
Question No: 5
True
False
Question No: 6
Local
Global
Global or static
http://www.allvupastpapers.blogspot.com/
Question No: 7
operator Class-Name + ( )
Class-Name operator + ( )
Question No: 8
The compiler does not provide a copy constructor if we do not provide it.
True
False
http://www.allvupastpapers.blogspot.com/
Question No: 9
What is the functionality of the following syntax to delete an array of 5 objects named arr allocated using new operator? delete arr ;
Question No: 10
What is the sequence of event(s) when allocating memory using new operator?
http://www.allvupastpapers.blogspot.com/
Question No: 11
What is the sequence of event(s) when deallocating memory using delete operator?
http://www.allvupastpapers.blogspot.com/
Question No: 12
True
False
Question No: 13
The operator function of << and >> operators are always the member function of a class.
True
False
Question No: 14
Zero
One
Two
Three
http://www.allvupastpapers.blogspot.com/
Question No: 15
If we do not mention any return_value_type with a function, it will return an _____ value.
int
void
double
float
Question No: 16
Suppose a program contains an array declared as int arr[100]; what will be the size of array?
99
100
101
http://www.allvupastpapers.blogspot.com/
Question No: 17
True
False
Question No: 18
True
False
Question No: 19
Which of the following option is true about new operator to dynamically allocate memory to an object?
http://www.allvupastpapers.blogspot.com/
Question No: 20
new and delete are _____ whereas malloc and free are _____.
Functions, operators
Classes, operators
Operators, functions
Operators, classes
Question No: 21
Like member functions, ______ can also access the private data members of a class.
Non-member functions
Friend functions
http://www.allvupastpapers.blogspot.com/
Question No: 22
It can be declared anywhere in class as these are not affected by the public and private keywords.
Question No: 23
http://www.allvupastpapers.blogspot.com/
Question No: 24
For non-member operator function, object on left side of the operator may be
Question No: 25
The operator function will be implemented as _____, if obj1 drive the - operator whereas obj2 is passed as arguments to - operator in the statement given below. obj3 = obj1 - obj2;
Member function
Non-member function
Friend function
http://www.allvupastpapers.blogspot.com/
Question No: 26
Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?
Question No: 27
at file scope
http://www.allvupastpapers.blogspot.com/
Question No: 28
data type
memory referee
value
Question No: 29
True
False
http://www.allvupastpapers.blogspot.com/
Question No: 30
Heap
Free store
static storage
stack
Question No: 31
( Marks: 1 )
Question No: 32
( Marks: 1 )
Question No: 33
( Marks: 2 )
Question No: 34
( Marks: 2 )
Question No: 35
( Marks: 3 )
http://www.allvupastpapers.blogspot.com/
Question No: 36
( Marks: 3 )
template <class T> class myclass { private: T x; public: myclass (T a) { x = a; } }; Write the main function which creates two objects of class for int and double data types.
http://www.allvupastpapers.blogspot.com/
Question No: 37
( Marks: 3 )
Is it possible to define two functions as given below? Justify your answer. func(int x, int y)
Question No: 38
( Marks: 5 )
Write a program using getline() member function to inputs a string up to delimiter character comma (,) and then display the string on the screen.
Question No: 39
( Marks: 5 )
Do you think that friend functions violate encapsulation? Justify your answer.
http://www.allvupastpapers.blogspot.com/
Question No: 40
( Marks: 10 )
Write a simple program using the get() member function of cin object reading a text of 30 characters from the keyboard, store them in an array and then using put() member function of cout object to display them on the screen.
Question No: 41
( Marks: 10 )
Write a small program which defines two user-defined manipulators named octal and hexadecimal. These manipulators should display the decimal numbers into octal and hexadecimal. In the main function, input a decimal number from the user and then display this decimal number into octal and hexadecimal using user-define manipulators named octal and hexadecimal.
http://www.allvupastpapers.blogspot.com/
Question No: 1 ( Marks: 1 ) - Please choose one Using Java Script you can write a character at random location on screen By applying randomCh() method With the help of String object With the help of random character property There is no built in approach in Java Script
Question No: 2 ( Marks: 1 ) - Please choose one If incorrectly we enter the negative age it is check by Limit Integrity Type Integrity Referential Integrity Physical Integrity
Question No: 3 ( Marks: 1 ) - Please choose one The Encryption of data is related to Data updates Data security Data integrity Data accessibility http://www.allvupastpapers.blogspot.com/
Question No: 4 ( Marks: 1 ) - Please choose one Which protocol is use to transfer a file over the network ? UDP FTP TCP OSI
Question No: 5 ( Marks: 1 ) - Please choose one One can send an email message to a remote computer using _______ protocol
Question No: 6 ( Marks: 1 ) - Please choose one In a System having many parts to be designed, one should always do the _____ first Hard part Simple part Development part Quality part http://www.allvupastpapers.blogspot.com/
Question No: 7 ( Marks: 1 ) - Please choose one Flow control constructs in JavaScript includes: If-Else Loops and If -Else Switch and If-Else All of the given choices
Question No: 8 ( Marks: 1 ) - Please choose one ___ provides a simple, consistent way for applications to interact with the HW without having to know all the details of the HW Explorer.exe System Files Operating System
Application Software
Question No: 9 ( Marks: 1 ) - Please choose one Machine language is also called Assembly Language Binary Language High Level Language HTML Language
Question No: 10 ( Marks: 1 ) - Please choose one _________ is the best known builder for supercomputers. Sun Cray Research Microsoft Apple http://www.allvupastpapers.blogspot.com/
Question No: 11 ( Marks: 1 ) - Please choose one The weaknesses of the computer are: Pattern recognition & Storage Speed & Innovative ideas Pattern recognition & Innovative ideas Speed & Storage
Communication protocol is a __________that governs the flow of information over a network Set of methods Set of protocols Set of rules Device
Question No: 13 ( Marks: 1 ) - Please choose one _____________ team is responsible for the maintenance, expansion , improvement of the infrastructure consisting of workstations, networking equipment, software and network security. Support Configuration Management Quality Assurance Developer
Question No: 14 ( Marks: 1 ) - Please choose one _____________ team consists on the sharpest technical minds in the company. Architecture Business Development Configuration Management Developer http://www.allvupastpapers.blogspot.com/
Question No: 15 ( Marks: 1 ) - Please choose one _______________ is responsible for day to day operations. CEO COO
CMSO Developer
Question No: 16 ( Marks: 1 ) - Please choose one One of the key responsibilities of the ___________ is client relationship management. Project Manager Team Lead Developer Quality Assurance Engineer
Question No: 17 ( Marks: 1 ) - Please choose one What is the major problem with flash based website? Its two heavy Cannot be indexed Less attractive Inaccessible
Question No: 18 ( Marks: 1 ) - Please choose one Which of the following is NOT an event handler for image object? onAbort onError onLoad onUser
The organizations are learning that business can be done in a more effective manner if emphasis is placed upon ___________. Cooperation Shared responsibility Networking All of the given options http://www.allvupastpapers.blogspot.com/
http://www.allvupastpapers.blogspot.com/
Question No: 23 ( Marks: 1 ) - Please choose one In Genetic Algorithm the most important thing you should know, is the ___________. Procedure Recognition of a good solution Different techniques None of the given options http://www.allvupastpapers.blogspot.com/
Question No: 24 ( Marks: 1 ) - Please choose one According to a popular heuristic, success is defined by ___________. The user The builder Both user and builder None of the given options
Question No: 25 ( Marks: 1 ) - Please choose one Rule of thumb learned through trial and error is called ___________. Design Heuristic Plan Aim
Question No: 26 ( Marks: 1 ) - Please choose one JavaScript Variables are ____________. Dynamically Typed Statically Typed Strong Typed None of the given options http://www.allvupastpapers.blogspot.com/
Question No: 27 ( Marks: 1 ) - Please choose one Which of the following application is collections of cells?
Question No: 28 ( Marks: 1 ) - Please choose one The browser breaks down the URL into ________ parts.
2 3 4 5
Question No: 29 ( Marks: 1 ) - Please choose one A named collection of properties (data, state) and methods (instruction, behavior) is called ____________. Array Function Variable Object http://www.allvupastpapers.blogspot.com/
Question No: 30 ( Marks: 1 ) - Please choose one First computer network was ___________. NSFNET FIRSTNET ARPANET ORPHANET
Question No: 34 ( Marks: 2 ) What is meant by universal access of internet services ? http://www.allvupastpapers.blogspot.com/
Question No: 35 ( Marks: 3 ) Write JavaScript code to convert the number 236.2363611111556 into currency format and JavaScript statement to show output.
Question No: 36 ( Marks: 3 ) Briefly mention any three problems in old modes of presentation development
Question No: 37 ( Marks: 3 ) What is the difference between Internet and Intranet ? Intra net is the communication of computer with in office or one building and internet across the boundaries Question No: 38 ( Marks: 5 ) Suppose we have a big project. Draw hierarchy of the people involved in the project? Project director Assistanst director Research and planning director Monitoring and evalution officer
for (i=0; i<=10; i++) { document.write("The number is " + i); document.write("<br />"); }
http://www.allvupastpapers.blogspot.com/