wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Beyond the brackets

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What does the function word_stats usually return?

a)
Word statistics including counts and frequencies.
b)
Synonyms and antonyms of words.
c)
Examples of word usage in sentences.
d)
Word definitions and meanings.
2.

If the input is "Dog dog DOG", how many unique words should the function return (case-insensitive)?

a)
1
b)
4
c)
3
d)
2
3.

Why do we write test cases?

a)
We write test cases to verify software functionality, identify bugs, and ensure code changes do not introduce new issues.
b)
To reduce testing time
c)
To increase software complexity
d)
To improve code readability
4.

What does “refactoring” mean in software development?

a)
Refactoring is the process of adding new features to existing code.
b)
Refactoring involves rewriting code from scratch to improve performance.
c)
Refactoring is the act of removing all comments from the code.
d)
Refactoring is the process of restructuring existing code to improve its quality without altering its functionality.
5.

Which statement best captures the difference between Copilot-style tools and Agentic AI?

a)
Both Copilot-style tools and Agentic AI require user input to function.
b)
Copilot-style tools assist users; Agentic AI operates autonomously.
c)
Copilot-style tools operate autonomously; Agentic AI assists users.
d)
Copilot-style tools are fully autonomous; Agentic AI requires constant supervision.
6.

In Python, what will be the output of the following code?

x = [1, 2, 3]

y = x

y.append(4)

print(x)

a)
[1, 2, 3, 4]
b)
[1, 2, 3, 4, 5]
c)
[4, 1, 2, 3]
d)
[1, 2, 3]
7.

In databases, what is the main purpose of using normalization?

a)
The main purpose of using normalization is to reduce data redundancy and improve data integrity.
b)
To increase data duplication for faster access.
c)
To simplify database queries by merging tables.
d)
To enhance the visual representation of data in reports.
8.

In machine learning, which situation indicates overfitting?

a)
The model performs poorly on both training and test data.
b)
The model performs well on test data but poorly on training data.
c)
The model has a balanced performance on both training and test data.
d)
The model performs well on training data but poorly on test data.
9.

What is the primary benefit of using indexes in a database?

a)

Indexes improve the speed of data retrieval operations on a database table.

b)

Indexes increase the size of the database significantly.

c)

Indexes are primarily for data backup purposes.

d)

Indexes are used to enforce data integrity rules.

10.

What is the main purpose of unit testing in software development?

a)

To test individual components for correctness before integration.

b)

To test the entire application as a whole.

c)

To ensure the software is user-friendly.

d)

To check the performance of the software under load.