Edited Invalid date
Chapter 19: Key Topics Related to Programming
About 20 percent of the End-of-Course Exam questions are about programming.
The creation performance task is focused on improving your skills in this area.
The act of teaching a computer is called programming.
Translating pseudocode to actual code is a part of a program.
Program documentation can be used to check the way you are writing your program.
If you want to fix semantic errors, you may need to redesign your program.
The program will work if you repeat steps 2 through 5.
The goal of the programmers is one of the reasons programs are developed.
A program may have inputs or outputs that are visual, audible, or tactile.
The approach used to create the program is related to the program's purpose.
The methods and standards may only work for one person.
If that person wants to involve others, they may need to modify their approach.
Changes may need to be made if that person wants to scale up.
Methods and standards need to beScalable if a program is created for widespread distribution.
Many people can understand the design if it is clear.
Consistency in the methods and standards used in the program is important.
A program may do more than was planned.
The final outcome of a program may be better than you thought.
The program may become part of a larger program or the beginning of a new idea.
The results of the program can be shared with others.
Our ability to use programming to think creatively has increased as computing has advanced.
The process of creating a program is iterative.
You can create and test small pieces of code at a time.
Since each piece impacts the program, it is iterative.
Each piece added needs to be managed carefully when working with others.
Programmers can be creative in their approach to solving problems if they accept the approved design.
The overall program is more likely to be correct if the small pieces are verified to be correct.
Adding components to a program helps verify program correctness.
A programmer's skill, style, and knowledge affect how a problem is solved.
Incremental or iterative changes need to be managed carefully by programmers.
Less time will be spent on development if the program works as intended.
Comments should be put into the code to define inputs, outputs, and intent.
The overall goal of the program should be decided by the programmers.
It is important to communicate with the people who will use the program.
Users of the program have concerns that need to be addressed.
Consider working together.
A program is a computer program.
In order, instructions are processed.
There are variables which may change or be output from the program.
A program can be used in a computer.
The processes use a central processing unit.
The processes may execute by themselves or with other processes.
A process can execute on many computers.
There are many layers to these processes.
The scale of problems that can be addressed can be increased by executable programs.
A program can run multiple times, keep accurate results, and combine these results to improve learning and performance.
You can save time dealing with future problems if you automate an algorithm like finding the minimum.
Procedures can help organize your program.
groupings of programming instructions are named procedures.
Many common procedures become procedures so they can be used by name.
Procedures can have parameters and return values.
The use of a parameter helps you think of a problem in a different way.
If a procedure has a problem, you can test and fix it once, instead of trying to fix it in multiple places of your code.
The type of data that needs to be input, output, or transformed needs to be considered.
Any data type is more complicated than a number.
The lists and other collections are considered antacids.
An object that you created while programming is an example of an ADT.
Many procedures include mathematical operations.
Adding, subtracting, multiplication, division, modulus, and Boolean operations are examples of mathematical operations.
The actual value of the results may be limited by the amount of memory available for that data type.
1/3 will be approximated by floating point representations that are not exact.
Each programming language handles this differently, so you don't know if an approximation has happened.
There are variables that are true or false.
The use of AND, OR, and NOT helps to develop correct programs.
The result of a Boolean operation becomes the input for a condition.
Some procedures are included in a language.
Application Program Interfaces and libraries are included in the documentation for a language.
Many programs have list operations such as add, remove, and search.
Software components can communicate in a language.
You need to learn from your mistakes.
There are many online resources that you could use to learn a new language.
There is a list of possible languages to experiment with.
The End-of-Course Exam requires you to read a program written in the exam language and determine if it did what the programmers intended.
Projects will help you learn.
If this is your first programming experience and you are doing this course on your own, a block-based language may be the best choice.
An example of a task you can complete while learning a language is the create performance task.
Chapter 17 contains many questions designed to help you master the programming language used on the End-of-Course Exam.
Suppose you want to find and print the smallest item in the list.
The min will be 0.
To avoid this, the test variable should be set to the maximum allowable value.
You could send it to a part of the list.
Determine what the output or behavior will be by reading the logic and math in the program.
You probably have seen this in programming examples.
To swap, you need a temporary variable to hold the value of one of the variables.
The order in which you pass parameters is important.
There is a positive number in the procedure Mystery below.
There is a mystery in the program.
If Mystery(1) were called, the value would be moved to -2 in the loop.
This would cause a loop since the value could never be 0.
The condition in the REPEAT loop could be used to avoid this problem.
Mystery would return 0 in all other calls.
Show that you know how to define procedures for a purpose in a program.
Smaller procedures can be used to break down logical or mathematical concepts.
The code will be more readable if you create a procedure and name it correctly.
If you need to return the largest number in the list, you need to write a procedure called getMax.
You can assume that the list has at least one item in it and that the numbers are positive.
Choices (A) and Choices (B) are similar statements.
The choice is true.
The minimum requirement for the create performance task is met by this algorithm because of the sequence, selection, iteration, and math/logic involved.
Since details are not visible, it helps manage complexity in code.
It would meet the requirement.
This explains why choice is false.
Review flashcards and saved quizzes
Getting your flashcards
Privacy & Terms