Clean Code

Clean Code

Professional Development

8 Qs

quiz-placeholder

Similar activities

How are you doing?

How are you doing?

Professional Development

10 Qs

AWS ACF Módulo 1  - Visão geral dos conceitos de nuvem

AWS ACF Módulo 1 - Visão geral dos conceitos de nuvem

Professional Development

10 Qs

Raster or Vector?

Raster or Vector?

6th Grade - Professional Development

12 Qs

Data Analytics Basics

Data Analytics Basics

Professional Development

10 Qs

Azure Cloud computing

Azure Cloud computing

Professional Development

10 Qs

GRAND OPENING INTERNSHIP EXERCISE 2024

GRAND OPENING INTERNSHIP EXERCISE 2024

Professional Development

13 Qs

Kick-Off Posko Rafi 2021

Kick-Off Posko Rafi 2021

Professional Development

10 Qs

Fraud

Fraud

KG - Professional Development

13 Qs

Clean Code

Clean Code

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Assaf Halevi

Used 92+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?