GATE 2008
185 questions
MCQ 1851-mark 52 · 2-mark 133
Questions 176–180 of 185
The total number of keys required for a set of n individuals to be able to communicate with each other using secret key and public key cryptosystems, respectively are:
Answer: (C)
Secret key (symmetric) system: each pair of persons shares one key, and that one key is used by both of them. We count each shared key once. The number of pairs among persons is , so this many keys are needed.
Public key system: each person has one public key and one private key, so keys in all.
So the numbers are and .
Answer: (C)
Public key system: each person has one public key and one private key, so keys in all.
So the numbers are and .
Answer: (C)
Which of the following requirement specifications can be validated?
S1: If the system fails during any operation, there should not be any loss of data
S2: The system must provide reasonable performance even under maximum load conditions
S3: The software executable must be deployable under MS Windows 95, 2000 and XP
S4: User interface windows must fit on a standard monitor's screen
S1: If the system fails during any operation, there should not be any loss of data
S2: The system must provide reasonable performance even under maximum load conditions
S3: The software executable must be deployable under MS Windows 95, 2000 and XP
S4: User interface windows must fit on a standard monitor's screen
Answer: (C)
A requirement can be validated only if it can be tested with a clear pass or fail.
S1: no loss of data on failure can be tested by making the system fail during operations and checking that the data is intact.
S3: deployment can be tested by installing and running the executable on Windows 95, 2000 and XP.
S2: "reasonable performance" has no number (response time or throughput) to check against.
S4: "a standard monitor" has no stated screen size or resolution to check against.
So S3 and S1 can be validated.
Answer: (C)
S1: no loss of data on failure can be tested by making the system fail during operations and checking that the data is intact.
S3: deployment can be tested by installing and running the executable on Windows 95, 2000 and XP.
S2: "reasonable performance" has no number (response time or throughput) to check against.
S4: "a standard monitor" has no stated screen size or resolution to check against.
So S3 and S1 can be validated.
Answer: (C)
A software engineer is required to implement two sets of algorithms for a single set of matrix operations in an object oriented programming language; the two sets of algorithms are to provide precisions of and , respectively. She decides to implement two classes, Low Precision Matrix and High Precision Matrix, providing precisions and respectively. Which one of the following is the best alternative for the implementation?
S1: The two classes should be kept independent.
S2: Low Precision Matrix should be derived from High Precision Matrix.
S3: High Precision Matrix should be derived from Low Precision Matrix.
S4: One class should be derived from the other; the hierarchy is immaterial.
S1: The two classes should be kept independent.
S2: Low Precision Matrix should be derived from High Precision Matrix.
S3: High Precision Matrix should be derived from Low Precision Matrix.
S4: One class should be derived from the other; the hierarchy is immaterial.
Answer: (B)
Both classes do the same matrix operations and differ only in precision, so keeping them independent (S1) would repeat the same code. One class should inherit from the other so the common code is shared.
The direction matters. A High Precision Matrix result is correct to , so it is already correct to . Low Precision Matrix can therefore reuse the High Precision Matrix algorithms and just round the result to (for example, keep 3 decimal digits out of 6). This is S2.
In the other direction (S3), a result computed only to has no extra digits to give, so High Precision Matrix would get nothing useful from the base class and would have to override the algorithms. So the hierarchy is not immaterial (S4 is wrong).
Answer: (B)
The direction matters. A High Precision Matrix result is correct to , so it is already correct to . Low Precision Matrix can therefore reuse the High Precision Matrix algorithms and just round the result to (for example, keep 3 decimal digits out of 6). This is S2.
In the other direction (S3), a result computed only to has no extra digits to give, so High Precision Matrix would get nothing useful from the base class and would have to override the algorithms. So the hierarchy is not immaterial (S4 is wrong).
Answer: (B)
A software project plan has identified ten tasks with each having dependencies as given in the following table:
Answer the following questions:
(Q1) What is the maximum number of tasks that can be done concurrently?
(Q2) What is the minimum time required to complete the project, assuming that each task requires one time unit and there is no restriction on the number of tasks that can be done in parallel ?
Answer the following questions:
(Q1) What is the maximum number of tasks that can be done concurrently?
(Q2) What is the minimum time required to complete the project, assuming that each task requires one time unit and there is no restriction on the number of tasks that can be done in parallel ?
Answer: (C)
From the table, find the earliest time unit in which each task can run (one unit each):
Unit 1: T1
Unit 2: T2, T3, T4 (all need only T1)
Unit 3: T5 (needs T2), T6 (needs T3), T7 (needs T3, T4), T8 (needs T4)
Unit 4: T9 (needs T5, T7, T8)
Unit 5: T10 (needs T6, T9)
Q1. The most tasks in one unit is 4 (T5, T6, T7, T8). No larger set of tasks that do not depend on each other exists, so at most 4 can run at once.
Q2. There are 5 levels, and each level must wait for the one before it. For example, the chain T1, T2, T5, T9, T10 has 5 tasks. So the minimum time is 5 units.
Answer: (C)
Unit 1: T1
Unit 2: T2, T3, T4 (all need only T1)
Unit 3: T5 (needs T2), T6 (needs T3), T7 (needs T3, T4), T8 (needs T4)
Unit 4: T9 (needs T5, T7, T8)
Unit 5: T10 (needs T6, T9)
Q1. The most tasks in one unit is 4 (T5, T6, T7, T8). No larger set of tasks that do not depend on each other exists, so at most 4 can run at once.
Q2. There are 5 levels, and each level must wait for the one before it. For example, the chain T1, T2, T5, T9, T10 has 5 tasks. So the minimum time is 5 units.
Answer: (C)
Which of the following are NOT considered when computing function points for a software project?
(O1) External inputs and outputs
(O2) Programming language to be used for the implementation
(O3) User interactions
(O4) External interfaces
(O5) Number of programmers in the software project
(O6) Files used by the system
(O1) External inputs and outputs
(O2) Programming language to be used for the implementation
(O3) User interactions
(O4) External interfaces
(O5) Number of programmers in the software project
(O6) Files used by the system
Answer: (D)
Function points are counted from five things that describe what the system does for the user, each multiplied by a weight:
external inputs (O1), external outputs (O1), external inquiries, that is user interactions (O3), internal logical files (O6) and external interface files (O4).
The programming language (O2) is not counted. Function points measure functionality, not the language used to build it. The number of programmers (O5) is also not counted, because it is a project resource and not part of the system's functions.
So O2 and O5 are not considered.
Answer: (D)
external inputs (O1), external outputs (O1), external inquiries, that is user interactions (O3), internal logical files (O6) and external interface files (O4).
The programming language (O2) is not counted. Function points measure functionality, not the language used to build it. The number of programmers (O5) is also not counted, because it is a project resource and not part of the system's functions.
So O2 and O5 are not considered.
Answer: (D)