All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 05 · MOCK TEST

Mock 15 – Mixed Practice

Unit 5: System Software and Operating System · 24 questions · about 28 minutes. Press End Mock any time to see your score and the correct answers.

All 15 topic-wise mocks in this unit
0 / 24 answered 00:00
Q1.
Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes (average) access time. In what order should the files be stored?
Q2.
A program that is used by other routines to accomplish a particular task is called:
Q3.
The following table shows the time between failures (in hours) observed for a piece of software:
Error number12345
Time since last failure (hours)64856
Assuming an exponential reliability model, what is the reliability of the system for one hour of operation?
Q4.
Consider the following statements about a software product line system:
Statement I: At the interaction level, components provide an operator display interface and an interface with the communication system used.
Statement II: At the I/O management level, components handle operator authentication, report generator and query manager.
Q5.
A null remote procedure call (RPC) (carrying 0 data bytes) takes 1.0 msec, with an additional 1.5 msec for every 1K of data carried. How long does it take to read 32K from a file server, issued as 32 separate 1K RPCs?
Q6. Match List - I with List - II.
List - IList - II
A. LatencyI. number of tasks completed in a given time period
B. DelayII. causes the current activity to be deferred
C. ThroughputIII. time elapsed before next activity starts
D. InterruptIV. time to complete a single task
Choose the correct answer from the options given below:
Q7. Test suite is consist of:
Q8. Match List I with List II.
List I
(A) Scenario testing
(B) Regression testing
(C) Component testing
(D) Beta testing
List II
(I) To verify the I/O behavior of test object
(II) User acceptance methodology
(III) No new bugs after changes in program
(IV) The documentation of a use case
Q9. For a function of two variable, boundary value analysis yields.
Q10. Fault-based testing technique is
Q11. Which of the following is/are behavioral testing technique(s)?
(A) Equivalence Partitioning
(B) Graph-Based Testing Method
(C) Boundary Value Analysis
(D) Data flow Testing
(E) Loop Testing
Choose the correct answer from the options given below:
Q12. Software validation mainly checks for inconsistencies between:
Q13. In the context of software testing, which of the following statements is/are NOT correct?
P: A minimal test set that achieves 100% path coverage will also achieve 100% statement coverage.
Q: A minimal test set that achieves 100% path coverage will generally detect more faults than one that achieves 100% statement coverage.
R: A minimal test set that achieves 100% statement coverage will generally detect more faults than one that achieves 100% branch coverage.
Choose the correct answer from the options given below:
Q14. Consider the method mcq():
int mcq(boolean a, boolean b, boolean c, boolean d)
{
  int ans = 1;
  if (a) { ans = 2; }
  else if (b) { ans = 3; }
  else if (c) { if (d) { ans = 4; } }
  return ans;
}

Let M1 = number of tests to exhaustively test mcq(), M2 = minimum number of tests to achieve full statement coverage, and M3 = minimum number of tests to achieve full branch coverage. Then the value of (M1, M2, M3) is:
Q15. What is the normal order of activities in which traditional software testing is organised?
1. Integration Testing
2. System Testing
3. Unit Testing
4. Validation Testing
Q16. Which of the following testing techniques ensures that the software product runs correctly after the changes during maintenance?
Q17. Which of the following statement(s) is/are TRUE with regard to software testing?
I. Regression testing technique ensures that the software product runs correctly after the changes during maintenance.
II. Equivalence partitioning is a white-box testing technique that divides the input domain of a program into classes of data from which test cases can be derived.
Q18. For a program of k variables, boundary value analysis yields ______ test cases.
Q19. The cyclomatic complexity of a flow graph V(G), in terms of predicate nodes, is: [where P is the number of predicate nodes in the flow graph V(G)]
Q20. In software testing, how are error, fault and failure related to each other?
Q21. Verification:
(A) refers to the set of activities that ensure that software correctly implements a specific function
(B) gives answer to the question – Are we building the product right?
(C) requires execution of software
Q22. In which testing strategy are the requirements established during requirements analysis validated against the developed software?

Directions (Q91–95): A program computes the average of each column of a table T with 17 rows and 1024 columns:
for j = 0 … 1023 {
temp = 0;
for i = 0 … 16
temp = temp + T[i][j];
print(temp / 17.0);
}
T[i][j] and temp are 32-bit floating-point values, memory is word addressable, and temp is kept in a register. Main memory is paged and holds 16 pages of 1024 words; page replacement is LRU. Unless stated otherwise, T is stored in row-major order.

Q23.

What is fault ratio of row major to column major arrangements ?

Directions (Q76–80): A machine has 16 GB main memory and a 32-bit virtual address space with 4 KB pages. Frame size equals page size.

Q24.

What is the minimum number of bits needed for the physical address?