Question 1
1. The definitions in an XML document are said to be __________ when the tagging system and definitions in the DTD are all in compliance.
View Question 1 Explanation
1. The definitions in an XML document are said to be __________ when the tagging system and definitions in the DTD are all in compliance.
Answer : ( 3 )
Question 2
2. 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 :
View Question 2 Explanation
2. 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
Answer : ( 4 )
Question 3
3. 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
View Question 3 Explanation
3. 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
Answer : ( 4 )
Question 4
View Question 4 Explanation
4. 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.)
(Assuming little - endian representation of multi-byte data in which Least Significant Byte (LSB) is stored at the lowest memory address.)
View Question 4 Explanation
Answer : ( 4 ) 5, 2, 517
Question 5
5. 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 ?
View Question 5 Explanation
(a)
(b)
(c)
void swap(int a, int b)
{
int temp;
temp = a;
a = b;
b = temp;
}
int main()
{
int p = 0, q = 1;
swap(p, q);
}
void swap(int &a, int &b)
{
int temp;
temp = a;
a = b;
b = temp;
}
int main()
{
int p = 0, q = 1;
swap (p, q);
}
void swap(int *a, int *b)
{
int * temp;
temp = a;
a = b;
b = temp;
}
int main()
{
int p = 0, q = 1;
swap (&p, &q);
}
Which of these would actually swap the contents of the two integer variables p and q ?
Answer : (2) (b) only
Question 6
View Question 6 Explanation
6. 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.
View Question 6 Explanation
Answer : (1) S1 and S2 only
Question 7
View Question 7 Explanation
7. Which of the following statements is/are True ?
P : C programming language has a weak type system with static types.
Q : Java programming language has a strong type system with static types.
Code :P : C programming language has a weak type system with static types.
Q : Java programming language has a strong type system with static types.
View Question 7 Explanation
Answer : (3) Both P and Q
Question 8
A graphic display system has a frame buffer that is 640 pixels wide, 480 pixels high and 1 bit of color depth. If the access time for each pixel on the average is 200 nanoseconds, then the refresh rate of this frame buffer is approximately :
View Question 8 Explanation
Answer: (1) 16 frames per second
Question 9
9. Which of the following statements is/are True regarding the solution to the visibility problem in 3D graphics ?
S1 : The Painter’s algorithm sorts polygons by depth and then paints (scan - converts) each Polygon on to the screen starting with the most nearest polygon.
S2 : Backface Culling refers to eliminating geometry with backfacing normals.
Code :
View Question 9 Explanation
S1 : The Painter’s algorithm sorts polygons by depth and then paints (scan - converts) each Polygon on to the screen starting with the most nearest polygon.
S2 : Backface Culling refers to eliminating geometry with backfacing normals.
Answer : (2) S2 only
Question 10
10. Consider the matrix M=
representing a set of planar (2D) geometric transformations in homogeneous coordinates. Which of the following statements about the matrix M is True ?
View Question 10 Explanation
2 | 0 | 0 |
0 | 1 | 0 |
0 | 1 | 1 |
representing a set of planar (2D) geometric transformations in homogeneous coordinates. Which of the following statements about the matrix M is True ?
Answer: (2) M represents first, a translation of vector (1, 1) followed by scaling of vector (2, 1)
Question 11
Assume the following regarding the development of a software system P :
- Estimated lines of code of P : 33, 480 LOC
- Average productivity for P : 620 LOC per person-month
- Number of software developers : 6
- Average salary of a software developer : ` 50,000 per month
If E, D and C are the estimated development effort (in person-months), estimated development time (in months), and estimated development cost (in ` Lac) respectively, then (E, D, C) =_________.
View Question 11 Explanation
- Estimated lines of code of P : 33, 480 LOC
- Average productivity for P : 620 LOC per person-month
- Number of software developers : 6
- Average salary of a software developer : ` 50,000 per month
If E, D and C are the estimated development effort (in person-months), estimated development time (in months), and estimated development cost (in ` Lac) respectively, then (E, D, C) =_________.
Answer : (2) (54, 9, 27)
Question 12
Code :
View Question 12 Explanation
12. Match the following in Software Engineering :
List - I | List - II |
(a) Product Complexity | (i) Software Requirements Definition |
(b) Structured System Analysis | (ii) Software Design |
(c) Coupling and Cohesion | (iii) Validation Technique |
(d) Symbolic Execution | (iv) Software Cost Estimation |
Code :
(a) | (b) | (c) | (d) | |
(1) | (ii) | (iii) | (iv) | (i) |
(2) | (iii) | (i) | (iv) | (ii) |
(3) | (iv) | (i) | (ii) | (iii) |
(4) | (iii) | (iv) | (i) | (ii) |
Answer: (3)
Question 13
13. Which one of the following is not typically provided by Source Code
Management
Software ?
View Question 13 Explanation
Software ?
Answer : (3) Syntax highlighting
Question 14
14. A software system crashed 20 times in the year 2017 and for each
crash, it took 2 minutes to restart. Approximately, what was the
software availability in that year ?
View Question 14 Explanation
Answer : (4) 99.9924%
Question 15
Code :
View Question 15 Explanation
Match the 5 CMM Maturity levels/CMMI staged representations in List- I with their
characterizations in List-II :
characterizations in List-II :
List - I | List -II |
(a) Initial | (i) Processes are improved quantitatively and continually. |
(b) Repeatable | (ii) The plan for a project comes from a template for plans. |
(c) Defined | (iii) The plan uses processes that can be measured quantitatively. |
(d) Managed | (iv) There may not exist a plan or it may be abandoned. |
(e) Optimizing | (v) There’s a plan and people stick to it. |
Code :
(a) | (b) | (c) | (d) | (e) | |
(1) | (iv) | (v) | (i) | (iii) | (ii) |
(2) | (i) | (ii) | (iv) | (v) | (iii) |
(3) | (v) | (iv) | (ii) | (iii) | (i) |
(4) | (iv) | (v) | (ii) | (iii) | (i) |
Answer : (4)
Question 16
View Question 16 Explanation
16. Coupling is a measure of the strength of the interconnections between
software modules. Which of the following are correct statements with respect to module
coupling ?
P : Common coupling occurs when one module controls the flow of another module by passing it information on what to do.
Q : In data coupling, the complete data structure is passed from one module to another through parameters.
R : Stamp coupling occurs when modules share a composite data structure and use only parts of it.
Code :P : Common coupling occurs when one module controls the flow of another module by passing it information on what to do.
Q : In data coupling, the complete data structure is passed from one module to another through parameters.
R : Stamp coupling occurs when modules share a composite data structure and use only parts of it.
View Question 16 Explanation
Answer : (3) Q and R only
Question 17
17. A software design pattern often used to restrict access to an object is :
View Question 17 Explanation
Answer : (4) proxy
#include <stdio.h>
#include <stdlib.h>
/* 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 */