Search Header Logo

Quizz Tests and Technical Dept

Authored by Mathieu Chauvin

Computers

University

Used 21+ times

Quizz Tests and Technical Dept
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tests code does not matter as much as application's code

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which tests should usually be the more numerous?

End-to-end tests

Unit tests

integration tests

Performance tests

3.

MULTIPLE SELECT QUESTION

45 sec • 2 pts

Which of these properties are required for unit tests?

(Multiple choice allowed)

Reproducibility

Isolation from any external resource

One test per method

Independance of execution order

4.

MULTIPLE CHOICE QUESTION

45 sec • 3 pts

I have a code that uses Math.random(). I must test the case when the random value is less that 0.5.

I can't. Random is random!

I loop in my test until a value less than 0.5 is returned

I should not use Math.random() in my application

I introduce a new service that encapsulates Math.random(), and fake that service in my test

5.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is the main reason why tests should be fast?

Because it consumes less resources and energy

Because it demonstrates that my application is fast

Because it allows me to run them often while I'm working

Because I told you they should

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does AAA stand for?

Arrange, Act, Assert

Awesome Alcoholics Anonymous

Act, Assert, Arrange

Arrange, Assert, Act

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is not part of the technical dept?

We're using a 2 years old version of Java

We have a whole bunch of untested code

The code was written by many developers all using their own code format conventions

Some code is complicated because we had to solve a performance issue

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?