Clean Code

Clean Code

Professional Development

8 Qs

quiz-placeholder

Similar activities

Quizizz Clean Code

Quizizz Clean Code

Professional Development

10 Qs

Chapter 8 Review Questions

Chapter 8 Review Questions

Professional Development

10 Qs

Connecting to a Database using PHP (Part 2)

Connecting to a Database using PHP (Part 2)

Professional Development

9 Qs

Hour of Code

Hour of Code

4th Grade - Professional Development

13 Qs

Mech 3

Mech 3

Professional Development

10 Qs

SENZ AIOT SAVANTS - JV & JS

SENZ AIOT SAVANTS - JV & JS

Professional Development

10 Qs

Scratch!

Scratch!

4th Grade - Professional Development

8 Qs

DECI - Week 6 - round

DECI - Week 6 - round

Professional Development

12 Qs

Clean Code

Clean Code

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Assaf Halevi

Used 89+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is NOT a rule for meaningful names?

Distinctive

Short

Pronounceable

Intention Revealing

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function should...

Perform as many tasks as possible

Have elaborate comments to explain what it does

Be short, not complex and do one thing

Have a short name

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Switch statements should...

Contain all the implementations

Never be used with constants

Be used as much as possible

Call functions that contain the implementations

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comments...

Can be used when names are not meaningful

Should be added before every function

Should be replaced with self explanatory code

Make up for bad code

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Formatting is all about...

Being petty

Communication

Performance

Security

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why should code lines be short and indented?

To keep the code well organised

For better performance

So they'll do only one thing

To reduce cognitive complexity

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is NOT a code smell?

Agility

Rigidity

Opacity

Fragility

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A clean code looks like it was written by...

Someone else

That guy from accounting

Uncle Bob

Someone who cares