GATE (Graduate Aptitude Test in Engineering) Computer Science: Questions 1641 - 1644 of 2080

Access detailed explanations (illustrated with images and videos) to 2080 questions. Access all new questions- tracking exam pattern and syllabus. View the complete topic-wise distribution of questions. Unlimited Access, Unlimited Time, on Unlimited Devices!

View Sample Explanation or View Features.

Rs. 550.00 -OR-

How to register? Already Subscribed?

Question 1641

Appeared in Year: 2018 (UGC-NET)

Question

MCQ▾

Consider two sequences X and Y: (December)

X =

Y =

The length of longest common subsequence between X and Y is

Choices

Choice (4)Response

a.

3

b.

5

c.

2

d.

4

Question 1642

Appeared in Year: 2018 (UGC-NET)

Question

MCQ▾

To overcome difficulties in Readers-Writers problem, which of the following statements is/are true? (December)

  1. Writers are given exclusive access to shared objects.
  2. Readers are given exclusive access to shared objects.
  3. Both readers and writers are given exclusive access to shared objects.

Choose the correct answer from the code given below:

Choices

Choice (4)Response

a.

(3) only

b.

(2) only

c.

(2) and (3)

d.

(1) only

Question 1643

Appeared in Year: 2018 (UGC-NET)

Question

MCQ▾

Consider the following pseudo-code fragment, where m is a non-negative integer that has been initialized: (December)

;

;

while

;

;

end while

Which of the following is a loop invariant for the while statement?

(Note: a loop invariant for a while statement is an assertion that is true each time the guard is evaluated during the execution of the while statement) .

Choices

Choice (4)Response

a.

b.

c.

d.

Question 1644

Appeared in Year: 2018 (UGC-NET)

Question

MCQ▾

An Internet Service Provider (ISP) has following chunk of CIDR-based IP addresses available with it: 245.248. 128.0 - 20. The ISP wants to give half of this chunk of addresses to organization A and a quarter to organization B while retaining the remaining with itself. Which of the following is a valid allocation of addresses to A and B? (Dec)

Choices

Choice (4)Response

a.

245.248. 136.0 - 24 and 245.248. 132.0 - 21

b.

245.248. 132.0 - 22 and 245.248. 132.0 - 21

c.

245.248. 136.0 - 21 and 245.248. 128.0 - 22

d.

245.248. 128.0 - 21 and 245.248. 128.0 - 22

Developed by: