Exam Details
UGC NET COMPUTER JULY (PAPER II) 2018
Review the key details, then start the test when you are ready. You can also open the full package to see related papers.
Questions
100
Duration
180 mins
Package
UGC NET & SET - Previous Year Papers
Paper pattern & analysis
Filter this paper by subject, topic or subtopic. Every graph updates from the selected questions.
Topic distribution
Subtopic distribution
Difficulty distribution
100questions
Medium
62
62%
Hard
30
30%
Easy
8
8%
Question type distribution
100questions
Multiple Choices
100
100%
Instructions
Demo Instruction
Syllabus
Sample
Sample questions from this paper
Questions are selected across the paper subjects wherever the paper contains that variety.
2018 · Unclassified
UGC NET COMPUTER JULY (PAPER II) 2018
The definitions in an XML document are said to be __________ when the tagging system and definitions in the DTD are all in compliance.
2018 · Unclassified
UGC NET COMPUTER JULY (PAPER II) 2018
Consider the JavaScript Code :
var y= "12";
function f( ) {
var y="6";
alert (this.y);
function g( ) {alert (y); }
g( );
}
f( );
If M is the number of alert dialog boxes generated by this JavaScript code and D1, D2, ...., DM represents the content displayed in each of the M dialog boxes, then :
var y= "12";
function f( ) {
var y="6";
alert (this.y);
function g( ) {alert (y); }
g( );
}
f( );
If M is the number of alert dialog boxes generated by this JavaScript code and D1, D2, ...., DM represents the content displayed in each of the M dialog boxes, then :
2018 · Unclassified
UGC NET COMPUTER JULY (PAPER II) 2018
What is the output of the following JAVA program?
class simple
{
public static void main(String[ ] args)
{
simple obj = new simple( );
obj.start( );
}
void start( )
{
long [ ] P= {3, 4, 5};
long [ ] Q= method (P);
System.out.print (P[0] + P[1] + P[2]+":");
System.out.print (Q[0] + Q[1] + Q[2]);
}
long [ ] method (long [ ] R)
{
R [1]=7;
return R;
}
} //end of class
class simple
{
public static void main(String[ ] args)
{
simple obj = new simple( );
obj.start( );
}
void start( )
{
long [ ] P= {3, 4, 5};
long [ ] Q= method (P);
System.out.print (P[0] + P[1] + P[2]+":");
System.out.print (Q[0] + Q[1] + Q[2]);
}
long [ ] method (long [ ] R)
{
R [1]=7;
return R;
}
} //end of class
2018 · Unclassified
UGC NET COMPUTER JULY (PAPER II) 2018
What is the output of the following 'C' program? (Assuming little - endian representation of multi-byte data in which Least Significant Byte (LSB) is stored at the lowest memory address.)
#include
#include
/* Assume short int occupies two bytes of storage */
int main ( )
{
union saving
{
short int one;
char two[2];
};
union saving m;
m.two [0] = 5;
m.two [1] = 2;
printf("%d, %d, %d\n", m.two [0], m.two [1], m.one);
}/* end of main */
#include
#include
/* Assume short int occupies two bytes of storage */
int main ( )
{
union saving
{
short int one;
char two[2];
};
union saving m;
m.two [0] = 5;
m.two [1] = 2;
printf("%d, %d, %d\n", m.two [0], m.two [1], m.one);
}/* end of main */
2018 · Unclassified
UGC NET COMPUTER JULY (PAPER II) 2018
Given below are three implementations of the swap( ) function in C++ :
Which of these would actually swap the contents of the two integer variables p and q?
_5_Question.png)
Which of these would actually swap the contents of the two integer variables p and q?
_5_Question.png)
2018 · Unclassified
UGC NET COMPUTER JULY (PAPER II) 2018
In Java, which of the following statements is/are True?
S1 : The 'final' keyword applied to a class definition prevents the class from being extended through derivation.
S2 : A class can only inherit one class but can implement multiple interfaces.
S3 : Java permits a class to replace the implementation of a method that it has inherited. It is called method overloading.
Code :
S1 : The 'final' keyword applied to a class definition prevents the class from being extended through derivation.
S2 : A class can only inherit one class but can implement multiple interfaces.
S3 : Java permits a class to replace the implementation of a method that it has inherited. It is called method overloading.
Code :