Test 1 Flashcards
What are the pillars of computational thinking?
Problem decomposition, pattern recognition, abstraction, algorithm
What is abstraction?
The process that involves identifying characteristics of a problem that can be ignored when approaching a problem.
What kind of patterns are we looking for in pattern recognition?
Similar within problems
Similarities between/across problems
Why should you engage in problem decomposition?
Because it allows form more flexible solutions
Because it allows for interim progress when implementing solutions
Because two smaller problems are simpler to solve then one big one
Why do we write algorithm in a flowchart or pseudocode?
Allows us to see if we missed any patterns.
Allows us to evaluate any potential issues with your logic.
Allows us to visualize and plan the steps of an algorithm including inputs, outputs and loops.
What is pattern recognition?
The process of identifying similarities or repetitions that can lead you to a potential solution.
What flowchart shape would you use to indicate a decision point?
Diamond
What flowchart shape would you use to indicate the beginning or end of a program?
Oval
Flowchart:
Start parallelogram (INPUT x;y) Rectangle (sum = x + y) Diamond (Is sum > 0?) Parallelogram (OUTPUT: Sum is positive) Parallelogram (OUTPUT: Sum is negative)
Which statements below are not reasons why we learn python?
Python does not support machine learning and big data
Python prevents rapid software development
Python is a perfect language without quirks.
Which statements are reasons of why we learn python?
Python is considered easy to read, write, and learn.
Python has a huge developer community and a vast choice of free libraries.
How to you insert a comment in python?
This is a comment
Which of the following variable names are not illegal?
SubTotal, __subtotal, sub_total
Which of the following are illegal variable names?
Sub-total, 34subtotal, sub/total
Which of the following are arithmetic operators?
+, %, *, //