Time Left - 12:00 mins
UGC-NET 2018: ( Programming ) SpeedTest Quiz 23
Attempt now to get your rank among 209 students!
Question 1
What would be the output of the following program, if run from the command line as “myprog 1 2 3” ?
main (int argc, char * argv[ ])
{
int i ;
i = argv [1] + argv [2] + argv[3] ;
printf (“% d”, i);
}
main (int argc, char * argv[ ])
{
int i ;
i = argv [1] + argv [2] + argv[3] ;
printf (“% d”, i);
}
Question 2
Consider the following pseudocode segment:
The value of K after the execution of this code shall be
The value of K after the execution of this code shall be
Question 3
The _________ memory allocation function modifies the previous allocated space.
Question 4
Which of the following metric does not depend on the programming language used?
Question 5
The Object Modelling Technique (OMT) uses the following three kinds of model to describe a system
Question 6
The friend functions are used in situations where:
Question 7
When a programming Language has the capacity to produce new datatype, it is called as,
Question 8
Which of the statements are true?
I. Function overloading is done at compile time.
II. Protected members are accessible to the member of derived class.
III. A derived class inherits constructors and destructors.
IV. A friend function can be called like a normal function.
V. Nested class is a derived class.
I. Function overloading is done at compile time.
II. Protected members are accessible to the member of derived class.
III. A derived class inherits constructors and destructors.
IV. A friend function can be called like a normal function.
V. Nested class is a derived class.
Question 9
Match the following with respect to java.util.* class methods:
List - I
a. Bit set
b. Calendar
c. Time zone
d. Random
List – II
i. Time zone getTimezone( )
ii. int hashcode( )
iii. int nextInt( )
iv. Void setID(String tzName)
a b c d
List - I
a. Bit set
b. Calendar
c. Time zone
d. Random
List – II
i. Time zone getTimezone( )
ii. int hashcode( )
iii. int nextInt( )
iv. Void setID(String tzName)
a b c d
Question 10
The Servlet Response interface enables a servlet to formulate a response for a client using the method ___________.
- 209 attempts
- 0 upvotes
- 4 comments
Tags :
GATE & PSU CSGeneralApr 2GATE & PSU CS