NEW
Font size
WorksheetsPEMVIS ALL QUIS
Total questions: 35
Worksheet time: 18mins
Function parameters can be useful to configure the function behavior
true
false
It is possible to have a function with an empty body.
true
false
It is possible for a subroutine to be used in two different solutions.
true
false
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.
true
false
Inside a solution, it is okay to have multiple functions with identical identifiers.
true
false
Which of the following is not the benefits of modularity?
.
Better maintainability.
More reusable
Higher degree of flexibility.
Cost-effective.
Easy to celebrate the successfullness of modularity.
One of example of modularity is adding a new payment method or new dishes into the menu should affect how new orders are taken.
true
false
How does modular programming make code easier to read and understand?
.
By using visual elements to represent code
By focusing on the user interface of a program
By separating code into functions, so each function only deals with one aspect of the overall functionality.
By combining code into a single module.
In programming, these modular units are written as this follows, except:
Modules/libraries/packages.
Syntax.
Functions/procedures.
Classes.
What is the visual module in modular visual question answering?
.
A module that takes image features as input and produces a vector that can be combined with the encoded question to determine the answer.
.
A module that uses visual elements to represent code in a question answering system.
A module that focuses on the user interface of a question answering system.
A module that combines the functionality of a question answering system into a single module.
What is the importance of modular programming in software development?
It makes the code easier to test and debug.
It makes the code easier to read and understand.
All of the above
It makes the code more reusable and maintainable.
What is the modular method in visual question answering?
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.
A technique that combines the functionality of a question answering system into a single module.
A technique that uses visual elements to represent code in a question answering system.
A technique that focuses on the user interface of a question answering system.
Modular processes, where a process is independent to the others. A process may be changed or replaced with affecting others.
true
false
Function parameters can be useful to configure the function behavior.
true
false
It is possible to have a function with an empty body.
true
false
It is possible for a subroutine to be used in two different solutions.
true
false
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.
true
falseee
Inside a solution, it is okay to have multiple functions with identical identifiers.
true
false
The index of an array starts from 0 and ends at n (the size of the array).
true
false
One case to identify a subroutine is when a set of instructions is used repetitively inside a solution
true
false
In general settings, an array is able to hold multiple homogeneous values.
true
false
What is the visual module in modular visual question answering?
A module that combines the functionality of a question answering system into a single module.
A module that focuses on the user interface of a question answering system.
A module that takes image features as input and produces a vector that can be combined with the encoded question to determine the answer.
A module that uses visual elements to represent code in a question answering system.
Generally, there are two types of error: syntax and logic error
true
false
Down at the system level, having 10 distinct variables requires less space compared to having an array with 10 elements.
true
false
It is not possible to pass an argument by value and by reference at the same time.
true
false
It is possible to pass an argument by value and by reference at the same time.
true
false
An efficient solution is the foundation of an effective solution.
true
false
An efficient solution should run in a "low-cost" fashion.
True
false
The index of an array starts from 1 and ends at n-1 (the size of the array).
true
false
A function must return a value.
true
false
One of example of modularity is adding a new payment method or new dishes into the menu should affect how new orders are taken.
true
false
A solution is considered effective when it solves the problem.
true
false
Which of the following is not the benefits of modularity?
Better maintainability.
Higher degree of flexibility.
Cost-effective.
More reusable.
e.
Easy to celebrate the successfullness of modularity.
In programming, these modular units are written as this follows, except:
.
Modules/libraries/packages.
Syntax.
Functions/procedures.
Classes.
a
b
c
d
e
