wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSA1121- Object-Oriented Systems Development

Total questions: 40

Worksheet time: 40mins

Name
Class
Date
1.

A system has 10 classes, and each class contains 5 methods on average. If each method is invoked 100 times per hour, how many method invocations occur in 24 hours?

a)

50,000

b)

120,000

c)

1,200,000

d)

12,000,000

2.

A software project follows an object-oriented development approach and has the following effort distribution: • Analysis: 20% • Design: 30% • Implementation: 40% • Testing: 10% If the total estimated development time is 500 hours, how much time is allocated for Design and Implementation together?

a)

250 hours

b)

300 hours

c)

350 hours

d)

400 hours

3.

A company uses Unified Process (UP) for development and has 4 phases: Inception, Elaboration, Construction, and Transition. If the total budget is $200,000, how much is allocated for the Construction phase?

a)

$50,000

b)

$75,000

c)

$100,000

d)

$125,000

4.

A UML sequence diagram contains 5 objects, where each object sends 8 messages on average. What is the total number of message interactions in the system?

a)

20

b)

30

c)

40

d)

50

5.

A system has 3 classes with 5 attributes each, and each attribute has 3 access levels (private, protected, public). How many total attribute-access combinations exist in the system?

a)

15

b)

30

c)

45

d)

60

6.

A function process() in a base class takes 2 seconds to execute. In a derived class, it is overridden to improve performance and now takes 1.5 seconds. If the function is called 10,000 times, how much total time is saved?

a)

5,000 seconds

b)

10,000 seconds

c)

15,000 seconds

d)

50,000 seconds

7.

A base class has 4 methods, and a derived class overrides 2 of them while adding 3 new methods. How many total methods does the derived class have?

a)

A) 5

b)

B) 6

c)

C) 7

d)

D) 8

8.

A unit test checks 5 classes in a system, where each class has 6 methods. If each method takes 2 minutes to test, what is the total testing time?

a)

30 minutes

b)

45 minutes

c)

60 minutes

d)

90 minutes

9.

A company's web application handles 1.5 million requests per day, with an average processing time of 400 ms per request. If the system scales up to 2 million requests per day, how much additional processing time is required?

a)

200,000 seconds

b)

250,000 seconds

c)

300,000 seconds

d)

350,000 seconds

10.

A system has 50 classes, and each class is reused in 3 different modules. If each module requires 4 hours to integrate each class, how much total integration time is needed?

a)

200 hours

b)

400 hours

c)

600 hours

d)

1,200 hours

11.

A project takes 10 months to develop, with effort distribution: • Analysis: 20% • Design: 25% • Implementation: 35% • Testing: 20% How many months are allocated for Design and Implementation together?

a)

5 months

b)

6 months

c)

7 months

d)

8 months

12.

A software project has 5 developers working on Object-Oriented Analysis (OOA) for 3 weeks. Each developer works 40 hours per week. How many total developer-hours are spent on OOA?

a)

300 hours

b)

400 hours

13.

A project requires 5 developers to work for 3 weeks. Each developer works 40 hours per week. What is the total number of hours required for the project?

a)

300 hours

b)

400 hours

c)

500 hours

d)

600 hours

14.

A UML Class Diagram has 10 classes, each with 4 attributes and 3 methods. If each class interacts with 2 other classes, how many associations exist in the system?

a)

10

b)

15

c)

20

d)

25

15.

A banking system has 20 classes, each containing 8 private attributes. If each class provides 5 getter and setter methods, how many total accessor methods are there in the system?

a)

80

b)

100

c)

200

d)

400

16.

A software system has 20 classes, and each class has 5 accessor methods. What is the total number of accessor methods in the system?

a)

50

b)

100

c)

200

d)

500

17.

A software system has 6 parent classes, each having 4 derived classes. If each child class reuses 60% of the parent class code, how many total new methods need to be implemented if each parent class has 10 methods?

a)

40

b)

60

c)

80

d)

120

18.

A testing team writes 200 unit test cases for an object-oriented system. If each test takes 5 minutes to execute, what is the total execution time in hours?

a)

10 hours

b)

12 hours

c)

14 hours

d)

16 hours

19.

A web service handles 3 million requests per day, with an average response time of 250 ms per request. If the system scales up to 4 million requests per day, how much additional processing time is required?

a)

250,000 seconds

b)

500,000 seconds

c)

750,000 seconds

d)

1,000,000 seconds

20.

An algorithm in an object-oriented system has an O(n²) complexity, where n = 1000. If the algorithm is optimized to O(n log n), approximately how much faster is the new algorithm?

a)

10 times

b)

50 times

c)

100 times

d)

500 times

21.

A banking system requires each transaction to create an object. The system processes 500 transactions per minute, and each object takes 10 KB of memory. How much memory is used in one hour?

a)

250 MB

b)

300 MB

c)

600 MB

d)

3 GB

22.

If the total development time is 800 hours, how many hours are spent on Design and Testing together?

a)

320 hours

b)

360 hours

c)

400 hours

d)

420 hours

23.

A software team follows the Unified Process (UP) methodology with the following phase durations: • Inception: 5 weeks • Elaboration: 10 weeks • Construction: 20 weeks • Transition: 5 weeks If the total budget is $500,000, how much is allocated for the Construction phase?

a)

$200,000

b)

$250,000

c)

$300,000

d)

$350,000

24.

A UML sequence diagram has 6 objects, each sending an average of 4 messages. How many total message interactions occur in the system?

a)

12

b)

18

c)

24

d)

30

25.

A system has 8 classes, each with 6 private attributes. If each class provides 3 getter and setter methods for accessing these attributes, how many total accessor methods exist?

a)

48

b)

96

c)

144

d)

192

26.

A function in a base class takes 2.5 seconds to execute. A derived class optimizes the function to 1.8 seconds. If the function runs 8,000 times, how much total time is saved?

a)

3,600 seconds

b)

5,600 seconds

c)

7,200 seconds

d)

9,600 seconds

27.

A base class has 12 methods, and a derived class overrides 4 methods while adding 5 new methods. How many total methods exist in the derived class?

a)

A) 13

b)

B) 14

c)

C) 15

d)

D) 16

28.

A team writes 250 test cases for a system. If each test case takes 4 minutes to execute, what is the total execution time in hours?

a)

10 hours

b)

12 hours

c)

16.67 hours

d)

20 hours

29.

A company’s inventory management system stores 1,000,000 product objects, each requiring 1.5 KB of memory. How much total memory does the system consume?

a)

1.2 GB

b)

1.5 GB

c)

2.0 GB

d)

2.5 GB

30.

A software project uses RUP (Rational Unified Process) with the following time allocations: If the total project time is 50 weeks, how much time is spent in the Construction phase?

a)

15 weeks

b)

20 weeks

c)

25 weeks

d)

30 weeks

31.

A UML class diagram consists of 8 classes, where each class interacts with 3 other classes on average. How many associations exist in the diagram?

a)

12

b)

16

c)

24

d)

30

32.

A secure application has 5 classes, each containing 10 private attributes. If each class provides 4 getter and setter methods, how many total accessor methods exist?

a)

20

b)

30

c)

40

d)

50

33.

A function in a payment gateway has three overloaded versions, each taking 5 ms to execute. If the function is called 15,000 times, what is the total execution time?

a)

60 seconds

b)

75 seconds

c)

90 seconds

d)

100 seconds

34.

A parent class has 8 methods, and each of its 5 child classes overrides 3 methods while adding 2 new methods. How many total methods exist in all the child classes combined?

a)

A) 50

b)

B) 60

c)

C) 70

d)

D) 80

35.

A test automation suite executes 200 test cases, each taking 3.5 minutes. What is the total execution time in hours?

a)

A) 8 hours

b)

B) 10 hours

c)

C) 12 hours

d)

D) 14 hours

36.

A web server processes 4 million requests per day, with an average response time of 275 ms per request. If the load increases by 25%, what is the new total processing time per day?

a)

1,100,000 seconds

b)

1,250,000 seconds

c)

1,375,000 seconds

d)

1,500,000 seconds

37.

A sorting algorithm in an object-oriented system initially runs in O(n²) time, where n = 2000. After optimization, the algorithm runs in O(n log n) time. How much faster is the optimized algorithm?

a)

100 times

b)

200 times

c)

400 times

d)

1000 times

38.

A warehouse management system tracks 2 million products, each stored as an object of 2 KB. If the system needs to scale up by 30% more products, how much additional memory is required?

a)

1,200,000 KB (or 1.2 GB)

b)

600,000 KB (or 0.6 GB)

c)

2,000,000 KB (or 2 GB)

d)

3,000,000 KB (or 3 GB)

39.

A software product currently has 2,000,000 users, each using 2 KB of memory. If the user base increases by 30%, how much additional memory (in GB) will be required?

a)

1.2 GB

b)

1.5 GB

c)

2.4 GB

d)

3.0 GB

40.

A software development project follows the Object-Oriented SDLC, with the following cost distribution: • Analysis: 20% • Design: 25% • Implementation: 35% • Testing: 20% If the total budget is $800,000, what is the budget allocated for the Design and Testing phases together?

a)

$360,000

b)

$400,000

c)

$440,000

d)

$480,000