1/30
A set of flashcards summarizing key concepts from the Introduction to Computer Programming lecture.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
What is a computer program?
A sequence of instructions in some computer programming language that instructs a computer to perform a task.
What does a computer program do?
Transforms input data to output data.
Does a computer program have to physically exist?
No, a program doesn't have to physically exist.
What are the levels of programming languages?
Human comprehension, High Level Language, Assembly Language, Machine Language.
Give an example of a high-level programming language.
Java.
What is a compiler?
A special program that transforms a program written in a high-level language to a lower-level language.
What programming language will be used in this course?
Java.
What is programming?
Solving problems using computer programs.
What are the steps involved in programming?
Problem analysis, Solution design, Coding the solution.
What happens if you skip problem analysis and solution design in programming?
It usually ends in tears.
What is required for mastery of programming?
Tons of practice.
Is reading alone sufficient to master programming?
No, practice is essential.
What does procedural thinking involve?
Presenting solutions to problems in steps.
What is an example of procedural thinking?
Making a cup of tea.
Why is procedural thinking important?
Computer hardware is a machine that does exactly as told.
What are the three core elements of structured programming?
Sequence, Selection, Repetition.
What does sequence in programming mean?
Executing a list of instructions in order.
Provide an example of sequence in programming.
Making a cup of tea: boil water, add tea leaves, pour into a cup, add sugar.
What does selection in programming mean?
Choosing one action from multiple alternatives.
Give an example of selection in programming.
Checking if a real number has a real square root.
What is repetition in programming?
Repeating a list of instructions while some condition remains true.
Provide an example of repetition in programming.
Rinsing a stack of plates.
What does modularity mean in programming?
Assigning names to blocks of instructions.
What can each block of modular instructions include?
Sequence, selection, repetition.
How is a modular block treated in programming?
As a single instruction.
Give an example of modular programming with a real-world scenario.
ATM Withdraw process.
What are the steps involved in program development?
Define the problem, Outline the solution, Transform to an algorithm, Test, Code, Run, Document.
What is the prescribed text for the course?
Introduction to Programming in Java by Sedgewick and Wayne.
How is the assessment structured in this course?
50% continuous assessment and 50% EOS.
What types of tests are included in the assessment?
2 paper-based tests and 1 practical test.
Who is the name of the instructor for the course?
Mwawi Msiska.