Programming and Computer Graphics
Welcome to NTA NET ASPIRANT ACADEMY
NTA NET ASPIRANT ACADEMY is a training academy for College Lectures, Assistant Professor, Research Scholar and PG Students to make qualified for Assistant Professor & JRF in UGC NET / TNSET
NTA NET ASPIRANT ACADEMY is a training academy for College Lectures, Assistant Professor, Research Scholar and PG Students to make qualified for Assistant Professor & JRF in UGC NET / TNSET
Start
Congratulations - you have completed Programming and Computer Graphics.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1 |
Suppose you are compiling on a machine with 1 byte chars, 2 byte shorts, 4 byte int and 8 byte double, and with alignment rules that require the address of every primitive data element to be an integer multiple of the element's size. Suppose further that the compiler is not permitted to reorder fields; padding is used to ensure alignment. How much space will be consumed by the following array? NTA NET JUNE 2020
struct {
short s;
char c;
short t;
char d;
double r;
int i;
} A[10]; /* 10 element array of structs */
struct {
short s;
char c;
short t;
char d;
double r;
int i;
} A[10]; /* 10 element array of structs */
A | 150 bytes |
B | 180 bytes |
C | 240 bytes |
D | 200 bytes |
Question 2 |
In HTML, <map> tag is used for NTA NET JUNE 2020
A | defining a path between two nodes in an image |
B | defining clickable region in an image |
C | highlighting an area in an image |
D | defining the site map of a web site |
Question 3 |
Concerning phong shading and Gouraud shading in a 3D scene, which of the following statements are true? NTA NET JUNE 2020
A. Gouraud shading requires more computation than phong shading.
B. Gouraud shading linearly interpolates the color of an interior pixel from the color at the vertices.
C. Phong shading interpolates over the normal vectors specified at the vertices.
Choose the correct answer from the options given below:
A. Gouraud shading requires more computation than phong shading.
B. Gouraud shading linearly interpolates the color of an interior pixel from the color at the vertices.
C. Phong shading interpolates over the normal vectors specified at the vertices.
Choose the correct answer from the options given below:
A | (A) and (B) only |
B | (A) and (C) only |
C | (B) and (C) only |
D | (A),(B) and (C) only |
Question 4 |
In the context of 3D Computer graphics, which of the following statements is / are correct? NTA NET JUNE 2020
A. Under perspective projection, each set of parallel lines in the object do not stay parallel in the image(except those that are parallel to the view plane to start with).
B. Appling a perspective transformation in the graphics pipeline to a vertex involves dividing by its 'Z' coordinate.
C. Perspective transformation is a linear transformation.
Choose the correct answer from the options given below:
A. Under perspective projection, each set of parallel lines in the object do not stay parallel in the image(except those that are parallel to the view plane to start with).
B. Appling a perspective transformation in the graphics pipeline to a vertex involves dividing by its 'Z' coordinate.
C. Perspective transformation is a linear transformation.
Choose the correct answer from the options given below:
A | (A) and (B) Only |
B | (A) and (C) Only |
C | (B) and (C) Only |
D | (A),(B) and (C) Only |
Question 5 |
Java Virtual Machine(JVM) is used to execute architectural neural byte code. Which of the following is needed by the JVM for execution of Java Code? NTA NET December 2019
A | Class loader only |
B | Class loader and Java Interpreter |
C | Class loader, Java Interpreter and API |
D | Java Interpreter only |
Question 6 |
If we want to resize a 1024 x 768 pixels image to one that is 640 pixels wide with the same aspect ratio. What would be the height of the resized image?
NTA NET December 2019
A | 420 pixels |
B | 460 pixels |
C | 480 pixels |
D | 540 pixels |
Question 7 |
A rectangle is bound by the lines x=0; y=0; x=5 and y=3. The line segment joining (-1,0) and (4,5), if clipped against this window will connect the points ______ . NTA NET December 2019
A | (0,1) and (3,3) |
B | (0,1) and (2,3) |
C | (0,1) and (4,5) |
D | (0,1) and (3,5) |
Question 8 |
Which tag is used to enclose any number of javascript statements in HTML document? NTA NET December 2019
A | code |
B | script |
C | title |
D | body |
Question 9 |
Which of the following statements are true regarding, C++? NTA NET December 2019
A. Overloading gives the capability to an existing operator to operate on other data types.
B. Inheritance in object oriented programming provides support to reusability.
C. When object of a derived class is defined, first the constructor of derived class is executed then constructor of a base class is executed.
D. Overloading is a type of polymorphism.
Choose the correct option from those given below:
A. Overloading gives the capability to an existing operator to operate on other data types.
B. Inheritance in object oriented programming provides support to reusability.
C. When object of a derived class is defined, first the constructor of derived class is executed then constructor of a base class is executed.
D. Overloading is a type of polymorphism.
Choose the correct option from those given below:
A | (A) and (B) only |
B | (A), (B) and (C) only |
C | (A), (B) and (D) only |
D | (B), (C) and (D) only |
Question 10 |
Match List I with List II: NTA NET December 2019
Choose the correct option from those given below:
List - I | List - II |
---|---|
A. Frame Attribute | (i) to create link in HTML |
B. tr tag | (ii) for vertical alignment of content in cell |
C. Valign attribute | (iii) to enclose each row in table |
D. a tag | (iv) to specify the side of the table frame that display border |
A | A - i, B - ii, C - iii, D - iv |
B | A - ii, B - i, C - iii, D - iv |
C | A - iv, B - iii, C - ii, D - i |
D | A - iii, B - iv, C - ii, D - i |
Question 11 |
Consider the following statements with respect to approaches to fill area on raster systems: NTA NET December 2019
P: To determine the overlap intervals for scan lines that cross the area.
Q: To start from a given interior position and paint outward from this point until we encounter the specified boundary conditions.
Select the correct answer from the options given below:
P: To determine the overlap intervals for scan lines that cross the area.
Q: To start from a given interior position and paint outward from this point until we encounter the specified boundary conditions.
Select the correct answer from the options given below:
A | P only |
B | Q only |
C | Both P and Q only |
D | Neither P nor Q |
Question 12 |
Let A be the base class in C++ and B be the derived class from A with protected inheritance. Which of the following statement is false for class B? NTA NET December 2019
A | Member function of class B can access protected data of class A |
B | Member function of class B can access public data of class A |
C | Member function of class B can access private data of class A |
D | Object of derived class B can access public base class data |
Question 13 |
Which of the following algorithms is not used for line clipping? NTA NET December 2019
A | Cohen - Sutherland algorithm |
B | Southerland - Hodgeman algorithm |
C | Liang - Barsky algorithm |
D | Nicholl - Lee - Nicholl algorithm |
Question 14 |
Which of the following are legal statements in C programming language? NTA NET December 2019
A. int *P = &44;
B. int *P = &r;
C. int P = &a;
D. int P = a;
Choose the correct option:
A. int *P = &44;
B. int *P = &r;
C. int P = &a;
D. int P = a;
Choose the correct option:
A | (A) and (B) |
B | (B) and (C) |
C | (B) and (D) |
D | (A) and (D) |
Question 15 |
The definitions in an XML document are said to be _________ when the tagging system and definitions in the DTD are all in compliance. CBSE NET JULY 2018
A | Well - formed |
B | Reasonable |
C | Valid |
D | Logical |
Question 16 |
Consider the JavaScript code: CBSE NET JULY 2018
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:
A | M=3; D1 displays "12"; D2 displays "6"; D3 displays "12". |
B | M=3; D1 displays "6"; D2 displays "12"; D3 displays "6". |
C | M=2; D1 displays "6"; D2 displays "12". |
D | M=2; D1 displays "12"; D2 displays "6". |
Question 17 |
In JAVA which of the following statements is / are True? CBSE NET JULY 2018
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.
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.
A | S1 and S2 only |
B | S1 and S3 only |
C | S2 and S3 only |
D | All of S1, S2 and S3 |
Question 18 |
Which of the following statements is / are True? CBSE NET JULY 2018
P: C programming language has a weak type system with static types.
Q: Java programming language has a strong type system with static types.
P: C programming language has a weak type system with static types.
Q: Java programming language has a strong type system with static types.
A | P only |
B | Q only |
C | Both P and Q |
D | Neither P nor Q |
Question 19 |
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 CBSE NET JULY 2018
A | 16 frames per second |
B | 19 frames per second |
C | 21 frames per second |
D | 23 frames per second |
Question 20 |
Which of the following is / are true regarding the solution of the visibility problem in 3D graphics? CBSE NET JULY 2018
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.
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.
A | S1 only |
B | S2 only |
C | Both S1 and S2 |
D | Neither S1 nor S2 |
Question 21 |
Consider the following recursive Java function f that takes two long arguments and returns a float value: NTA NET December 2018
public static float(long m,long n)
{
float result = (float) m/(float) n;
if(m < 0 || n < 0)
return 0.0f;
else
result +=f(m*2,n*3);
return result;
}
Which of the following integers best approximate the value of f(2,3)?
public static float(long m,long n)
{
float result = (float) m/(float) n;
if(m < 0 || n < 0)
return 0.0f;
else
result +=f(m*2,n*3);
return result;
}
Which of the following integers best approximate the value of f(2,3)?
A | 0 |
B | 1 |
C | 2 |
D | 3 |
Question 22 |
Consider the C/C++ function f() given below: NTA NET December 2018
void f(char w[])
{
int x=strlen(w);
char c;
for(int i=0;i
{
c=w[i];
w[i]=w[x-i-1];
w[x-i-1]=c;
}
}
Which of the following is the purpose of f()?
void f(char w[])
{
int x=strlen(w);
char c;
for(int i=0;i
c=w[i];
w[i]=w[x-i-1];
w[x-i-1]=c;
}
}
Which of the following is the purpose of f()?
A | It outputs the contents of the array in reverse order. |
B | It outputs the contents of the array in the original order. |
C | It outputs the contents of the array with the characters shifted over by one position. |
D | It outputs the contents of the array with the characters rearranged so they are no longer recognized as the words in the original phrase. |
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
Get Results
There are 22 questions to complete.
You have completed
questions
question
Your score is
Correct
Wrong
Partial-Credit
You have not finished your quiz. If you leave this page, your progress will be lost.
Correct Answer
You Selected
Not Attempted
Final Score on Quiz
Attempted Questions Correct
Attempted Questions Wrong
Questions Not Attempted
Total Questions on Quiz
Question Details
Results
Date
Score
Hint
Time allowed
minutes
seconds
Time used
Answer Choice(s) Selected
Question Text
All done
Need more practice!
Keep trying!
Not bad!
Good work!
Perfect!