Why do we use functions in programming?

Karel Quizzes 6-10 (Top Dwn- If State)

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Fernando Alvarado
Used 30+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Break down our program into smaller parts
Avoid repeating code
Make our program more readable
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is top down design?
Top down design is a way of designing your program by starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to solve.
Top down design is a way that you can create designs on a computer to put on a web page
Top down design is a way of designing your programs starting with the individual commands first
Top down design is a way to use loops and classes to decompose the problem
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a code comment?
A way to teach Karel a new word
A way to give notes to the reader to explain what your code is doing
A message to your teacher in code
A place to write whatever you want in your code
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What commands does SuperKarel know that regular Karel does not?
turnLeft() and jump()
turnRight() and jump()
turnAround() and turnRight()
turnAround() and jump()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best way for Karel to move 10 times?
move();
move();
move();
move();
move();
move();
move();
move();
move();
move();
for (var i = 0; i < 10; i++) {
move();
}
move(10);
move10();
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use if statements in JavaScript?
To break out of some block of code
To do something only if a condition is true
To do something while a condition is true
To repeat something for a fixed number of times
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which general if statement definition is written correctly?
for(condition) {
// code
}
if(condition) {
//code
}
if(var i = 0; i < count; i++) {
//code
}
if false {
//code
}
Similar Resources on Wayground
10 questions
Computing Software Development Process

Quiz
•
8th Grade - University
12 questions
CodeHS Unit 1

Quiz
•
9th - 12th Grade
10 questions
Y9 Java (Karel the dog)

Quiz
•
9th Grade
10 questions
CSF 2.4

Quiz
•
9th Grade - University
12 questions
Scratch interface

Quiz
•
5th - 9th Grade
10 questions
Adv. CS II- Intro to Programming with Java

Quiz
•
12th Grade
10 questions
Edexcel GCSE Computer Science Topic 3: Computers

Quiz
•
12th Grade
10 questions
Mixed Questions 1

Quiz
•
11th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
Discover more resources for Computers
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade