Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

E-Day 5.1 - Best Practices quiz

Total questions: 7

Worksheet time: 80secs

Name
Class
Date
1.

Which of these code snippets is the most readable, according to the coding style conventions that we recommend here?

a)
b)
c)
2.

Let's say you wrote a method that animated a Superman flying across the screen. Which would be the best comment to put at the top?

a)

/** Superman **/

b)

/** This method is really good. It will fly the superman **/

c)

/** This method animates superman across the screen. The speed is controlled by variable at top **/

3.

Clean code ____

a)

makes business happy

b)

is every developer's dream

c)

is easy to understand and easy to change

d)

makes application unique

4.

The process of separating modules is called ________.

a)

rigidity

b)

decoupling

c)

immobility

d)

breaking

5.

You should write tests because

a)

it's one of the requirement for PR process

b)

it makes PR reviewer happy

c)

it helps you improve

d)

to make sure that the code works correctly

6.

Which is the good variable name which defines list of policies?

a)

var policy-lists;

b)

var list_policies

c)

var policyList;

d)

var POLICY_LIST;

7.

Which lie do you tell most often?

a)

Five more minutes

b)

On my way!

c)

I’m listening

d)

I didn’t see your text

e)

I have no idea