Search Header Logo

[FAST TRACK] QT CLASS 01 QUIZ 14

Authored by Trang Thu

English, Special Education, Professional Development

Professional Development

Used 5+ times

[FAST TRACK] QT CLASS 01 QUIZ 14
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What describes an object?

Visibility, mutability and actions
Name, category and rules
Noun, adjective and verb
Properties, state and behavior

2.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Data hiding is one of the core OO-concepts. How can you "hide" your class attributes from external classes and only allow child classes to access them? What's the corresponding UML visibility indicator?

Mark them as private (- in UML)
Mark them as protected (# in UML)
Mark them as package (~ in UML)
None of above

3.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Which of the following describes the Decorator pattern correctly?

This pattern allows a user to add new functionality to an existing object without altering its structure.
This pattern is used where we need to treat a group of objects in similar way as a single object.
This pattern hides the complexities of the system and provides an interface to the client using which the client can access the system.
This pattern is primarily used to reduce the number of objects created and to decrease memory footprint and increase performance.

4.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

In MVC pattern, Model represents an object carrying data. It can also have logic to update controller if its data changes.

true
false

5.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

which of the following is correct?

infinite loop because x always != 0
while loop will be stopped when x = 0
while loop do nothing because x = -1
None of these

6.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What is the result of the following code?

12
52
56
Compiler Error

7.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What are unit test coverage criteria?

Instructions Coverage
Method Coverage
Branch Coverage
All options

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?