U.G.C. NET Exam. Dec. 2020-June 2021 Paper II (COMPUTER SCIENCE & APPLICATIONS)

Total Questions: 100

1. Which of the statements given below is/are correct?

It is always important and useful to include an 'alt' attribute on 'img' tag in HTML because
A. users who cannot see the image due to vision impairment can have a textual description of the image (which can be spoken aloud by a screen reader).
B. If the image fails to load (slow connection, broken path, etc.) then alt text is displayed instead.
C. SEO (Search Engine Optimization) benefits.
Choose the correct answer from the options given below: 

Correct Answer: (d) A, B, and C
Solution:

When an image contains words that are important to understanding the context, the all text should include those words. This will allow the alt text to play the same junction on the page as the image. Note that it does not necessarily describe the visual characteristics of the image itself but must convey the same meaning as the image.
Example:- An image on a website provides a link to a free newsletter. The image contains the text "Free newsletter. Get free recipes, news, and more. Learn more". the alt text matches the text in the image <img src = "news letter.gif" alt = free newsletter. Get free recipes, news, and more. Learn more."/>

2. What does the following function f() in 'C' return?

int f(unsigned int N) { unsigned int counter = 0; while(N > 0) { counter += N & 1;
N = N >> 1;} return counter == 1;}

Correct Answer: (b) 1 if N is a power of 2, otherwise 0
Solution:1 if N is a power of 2, otherwise 0

3. Consider the following recursive function F() in Java that takes an integer value and returns a string value:

public static String F( int N) {if ( N <= 0) return "–"; return F(N - 3) + N + F(N - 2) + N;} The value of F(5) is

Correct Answer: (d) -2-25-3-1-135
Solution:-2-25-3-1-135

4. Match List-I with List-II

Correct Answer: (a) A - II , B - III, C - IV, D - I
Solution:

5. Match List-I with List-II

Correct Answer: (a) A - IV, B - III, C - I, D - II
Solution:

6. Suppose you have eight 'black and white' images taken with a 1-megapixel camera and one '8-color' image taken by an 8-megapixel camera. How much hard disk space in total do you need to store these images on your computer?

Correct Answer: (b) 4 MB
Solution:

4 MB

7. Which of the statements given below are correct?

The midpoint (or Bresenham) algorithm for rasterizing lines is optimized relative to DDA algorithm in that
A. it avoids round-off operations.
B. it is incremental.
C. it uses only integer arithmetic.
D. all straight lines can be displayed as straight (exact).
Choose the correct answer from the options given below: 

Correct Answer: (d) A, B, and C only
Solution:A, B, and C only

8. Answer the following question

Correct Answer: (a)
Solution:

9. Suppose a Bezier curve p(t) is defined by the following four control points in the xy-plane:

Correct Answer: (a) A and B only
Solution:A and B only

10. Given below are two statements

Statement I: The maximum number of sides that a triangle might have when clipped to a rectangular viewport is 6.
Statement II: In 3D graphics, the perspective transformation is nonlinear in z. In light of the above statements,
choose the correct answer from the options given below

Correct Answer: (d) Statement I is false but Statement II is true
Solution:Statement I is false but Statement II is true