Unit 3, Lessons 6-8: Types of Programs, Debugging, Pair prog, comments, docs
Quiz by McCartney, Callie R
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- Q1
Debugging is an extremely important skill in life and in programming. It is the process of finding and fixing problems in your code (or any project). Here are some good methods,. Put them in the categories they go in.
sorting:// Keep your code clean| Use meaningful IDs for elements to keep track of them and their function, Keep your code organized in chunks that do the 1 thing at a time, Use comments to explain your code: Run your code to test it| Run your code frequently!, Slow your code with the slider. Walk through how it runs closely, Add extra outputs in your code to get feedback on what is running: Use classmates and resources| Talk out the problems with a partner or classmate, Compare your code to examples that you know work, Read the documentation to know how a block is supposed to work
30s - Q2
Pair Programming
Two programmers work together. One does the whole program and the other one live tweets it
Two programmers split up the work and never talk to each other
Two programmers work on separate things sitting next to each other
Two programmers work together as a pair. One writes program code, while the other reviews each line of code and guides towards the goal.
30s - Q3
What are Comments in code and why do programmers use them?
sorting://True of Comments| Text in the program that the computer ignores, Helps Programmers keep track of where they are and what they’re doing, Programmers can leave notes for each other: False of Comments| Not super helpful, Can confuse the computer, Can make code messy and hard to read, Not helpful once the code works
30s - Q4
What is Documentation?
sorting:// Documentation| Comments, explanation of how a section of code works, explanation of how a whole program works, explanation of how a single command works, explanation of how a library of commands works: Not Documentation| using a program, using a command, using a part of a code, writing down why you like a section of code, sharing code with a friend and snap chatting that it was your cool innovation
30s - Q5
A program and program statement are different. Sort the differences.
sorting:// Program Statement| a command or instruction, code statement, Instructs the computer what single step to perform next: Program| a collection of program statements, completes a purpose when run
30s - Q6
There are two main types of programming: Event-Driven and Sequential. Sort the differences.
sorting:// Event-Driven| run when triggered by user input, run differently each time depending on user interactions: Sequential| program statements run in order from top to bottom, no user interaction, the code runs the same way every time
30s