wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PEMVIS ALL QUIS

Total questions: 35

Worksheet time: 18mins

Name
Class
Date
1.

Function parameters can be useful to configure the function behavior

a)

true

b)

false

2.

It is possible to have a function with an empty body.

a)

true

b)

false

3.

It is possible for a subroutine to be used in two different solutions.

a)

true

b)

false

4.

Say x is passed by value into a function (f1) as a parameter and is known as xp. Any modifications to xp (inside the f1's body) will surely affect the original variable, x.


a)

true

b)

false

5.

Inside a solution, it is okay to have multiple functions with identical identifiers.

a)

true

b)

false

6.

Which of the following is not the benefits of modularity?

a)

.

Better maintainability.

b)


More reusable

c)

Higher degree of flexibility.

d)

Cost-effective.

e)


Easy to celebrate the successfullness of modularity.

7.

One of example of modularity is adding a new payment method or new dishes into the menu should affect how new orders are taken.

a)

true

b)

false

8.

How does modular programming make code easier to read and understand?

a)

.

By using visual elements to represent code

b)


By focusing on the user interface of a program

c)

By separating code into functions, so each function only deals with one aspect of the overall functionality.

d)

By combining code into a single module.

9.

In programming, these modular units are written as this follows, except:

a)

Modules/libraries/packages.

b)

Syntax.

c)

Functions/procedures.

d)

Classes.

10.

What is the visual module in modular visual question answering?

a)

.

A module that takes image features as input and produces a vector that can be combined with the encoded question to determine the answer.

b)

.

A module that uses visual elements to represent code in a question answering system.

c)

A module that focuses on the user interface of a question answering system.

d)

A module that combines the functionality of a question answering system into a single module.

11.

What is the importance of modular programming in software development?

a)

It makes the code easier to test and debug.

b)

It makes the code easier to read and understand.

c)

All of the above

d)

It makes the code more reusable and maintainable.

12.

What is the modular method in visual question answering?

a)

A technique that uses modules to take image features as input and produce a vector that can be combined with the encoded question to determine the answer.

b)

A technique that combines the functionality of a question answering system into a single module.

c)

A technique that uses visual elements to represent code in a question answering system.

d)

A technique that focuses on the user interface of a question answering system.

13.

Modular processes, where a process is independent to the others. A process may be changed or replaced with affecting others.

a)

true

b)

false

14.

Function parameters can be useful to configure the function behavior.

a)

true

b)

false

15.

It is possible to have a function with an empty body.

a)

true

b)

false

16.

It is possible for a subroutine to be used in two different solutions.

a)

true

b)

false

17.

Say x is passed by value into a function (f1) as a parameter and is known as xp. Any modifications to xp (inside the f1's body) will surely affect the original variable, x.

a)

true

b)

falseee

18.

Inside a solution, it is okay to have multiple functions with identical identifiers.

a)

true

b)

false

19.

The index of an array starts from 0 and ends at n (the size of the array).

a)

true

b)

false

20.

One case to identify a subroutine is when a set of instructions is used repetitively inside a solution

a)

true

b)

false

21.

In general settings, an array is able to hold multiple homogeneous values.

a)

true

b)

false

22.

What is the visual module in modular visual question answering?

a)

A module that combines the functionality of a question answering system into a single module.

b)

A module that focuses on the user interface of a question answering system.

c)

A module that takes image features as input and produces a vector that can be combined with the encoded question to determine the answer.

d)

A module that uses visual elements to represent code in a question answering system.

23.

Generally, there are two types of error: syntax and logic error

a)

true

b)

false

24.

Down at the system level, having 10 distinct variables requires less space compared to having an array with 10 elements.

a)

true

b)

false

25.

It is not possible to pass an argument by value and by reference at the same time.

a)

true

b)

false

26.

It is possible to pass an argument by value and by reference at the same time.

a)

true

b)

false

27.

An efficient solution is the foundation of an effective solution.

a)

true

b)

false

28.

An efficient solution should run in a "low-cost" fashion.

a)

True

b)

false

29.

The index of an array starts from 1 and ends at n-1 (the size of the array).

a)

true

b)

false

30.

A function must return a value.

a)

true

b)

false

31.

One of example of modularity is adding a new payment method or new dishes into the menu should affect how new orders are taken.

a)

true

b)

false

32.

A solution is considered effective when it solves the problem.

a)

true

b)

false

33.

Which of the following is not the benefits of modularity?

a)


Better maintainability.

b)

Higher degree of flexibility.

c)


Cost-effective.

d)


More reusable.

e)

e.

Easy to celebrate the successfullness of modularity.

34.

In programming, these modular units are written as this follows, except:

a)

.

Modules/libraries/packages.

b)

Syntax.

c)

Functions/procedures.

d)


Classes.

35.
a)

a

b)

b

c)

c

d)

d

e)

e