Programming Test Review

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which line of code should be remove to make the programs do what it's supposed to?

7

a set of commands made available to a programmer

API

Think of an example outside of computer science in which you have heard the term "efficiency" and compart it to the ways we talked about efficiency in programming.

Definition: achieving some desired outcome while minimizing wasted effort Similarities include: a. how much one is getting (amount/size)

information that describes the product to is used

Documentation

Write the names of the function that you would write in a program that draw a snake-like pattern.

Long line, up and left, up and right

"Abstraction" is often used to focus on a general case and ignore a specific instance a problem. Given this meaning of the word, how are functions with parameters an example of abstraction?

Parameter allow the creation of a generalized solution to a whole class of problem, rater than individually solving many specific problems.

Choose two statement that are true about function. a. Meaning function name help people better understand programs. b. Meaningful functions names help computers better understand programs. c. Function in programming are useful mathematical tools for doing complex computations. d. Function is programming are named groupings of programming instructions

a,d

Describe the features of a programming language that makes if different from the language you typically use in everyday life. Explain why a programming language must be created in this way.

a. precision- no ambiguity in instructions b. unique terms- synonyms would add confusion c. completely predictable- only one way to interpret command

taking out unnecessary complex parts to make a process easier to understand and use for multiple solutions

abstraction

A set of rule that a computer need to follow to do something

algorithm

What is an API? a. Abstract Programming Inheritance b. Application Program Interface c. Abstrac Program Interface d. Artificial Parameter Intelligence e. Applied Power Implementation

b

What is the function parameter? a. Parameter is a measure of the distance between a function's conception and implementation. b. A way to give input to a function that controls how the function runs. c. A collection of commands that can be used in a programming language. d. A named memory location. e. Another name for the purpose of a function.

b

Select the two true statement about function with parameters? a. Parameters can only be used once within the body of a function. b. Parameters help generalize the solution of specific problem. c. Function with parameters can be used to prevent the condition of duplication code. d. Values do not need to be provided to a function with parameters in any particular order.

b, c

a true or false statement

boolean

Which of the following is NOT a true statement about functions? a. Function are reusable programming abstractions. b. Function help break a problem into logical chucks. c. Function cannot make call to other function written by the same programmer. d. Function help reduce the complexity of writing and maintaining programs. e. One defined, a function can be called many times from different parts of a program

c

Which of the following statement about writing function and Two Don Design is NOT true? a. Writing function helps manage complexity in a program. b. Two Down design lead to program which feature multiple layers of abstraction. c. Two programmers solving the same problem using Top-Down Design should arrive at identical programs. d. Top-Down Design relies upon identifying sub-problems of a larger problem e. Top-Down Design assists in identifying the layer of functions that will be used to solve a programming problem.

c

making a decision during a program at runtime

conditional

a flow control statement that repeats a process; very useful when you know how many times your need to repeat

for loop

a piece of code that can be easily called over and over again

function

a type of conditional the perform an operation(s) associated with a Boolean value

if statement

the process of repetition

iteration

a collection of command/function; they have a shared purpose

library

iterating over a process

loop

extra piece of information you need to customize a function or process

parameter


संबंधित स्टडी सेट्स

Social and Behavioral Sciences - Online Study Guide Questions

View Set

Restless Genes Study Sync Answers

View Set