// Why add comments to code?
// more than one is true!
Comments documentation coding
Quiz
•
Joe Rowe
•
Computers
•
9th - 12th Grade
•
1 plays
•
Easy
Student preview
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
// Why add comments to code?
// more than one is true!
retain the code tips for yourself
explain code to others
disable code for a moment of problem solving
All true:
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Syntax: Leave a comment in code by starting the line with _____
//
blanks
indent
$
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Programmers use comments to:
debug issues in code
document how code was written for other programmers to use
decide which components are important to use
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An advantage to using comments in your code is:
It makes your code run better
It runs the code in slow motion, step by step
it describes parts of your code so others can understand it or improve it
comments are necessary in order to call a function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Comments show the exact location of bugs.
Comments are optional
Comments can disable code temporarily.
// comment
var x = 0;
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Form of program documentation written into the program to be read by people.
Comment
Documentation
Input
Output
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What did the grey hair person put in their code?
This explains the finished project.
The answer is: comments
10 questions
Create with Code Prototype 2 Quiz
Quiz
•
9th - 12th Grade
10 questions
Unit 3 Introduction to App Design
Quiz
•
9th - 12th Grade
10 questions
AP Computer Science Principles - Unit 3: App Design
Quiz
•
9th - 12th Grade
12 questions
CSP: Unit 3 - Block Code Types
Quiz
•
9th - 12th Grade
11 questions
Python Turtle
Quiz
•
KG - Professional Dev...
8 questions
The Design Process
Quiz
•
10th - 12th Grade
10 questions
CSP Unit 3 Assessment
Quiz
•
9th - 12th Grade
10 questions
Quiz 140 - Comments in Python code
Quiz
•
9th Grade
19 questions
Naming Polygons
Quiz
•
3rd Grade
14 questions
Prime Factorization
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice
Quiz
•
6th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
35 questions
4th Grade Math SOL Review
Quiz
•
4th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade