Clean Code
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Assaf Halevi
Used 92+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Quiz - DevSecOps
Quiz
•
Professional Development
8 questions
Digital Law
Quiz
•
Professional Development
10 questions
ChatGPT for Work
Quiz
•
Professional Development
10 questions
SENZ AIOT SAVANTS - JV & JS
Quiz
•
Professional Development
10 questions
Initial Assessment - Cybersecurity Awareness
Quiz
•
9th Grade - Professio...
12 questions
Cycle 4: Session 8 Review.
Quiz
•
Professional Development
10 questions
7/2/2024
Quiz
•
Professional Development
10 questions
EAE_DataScience_S2
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
