No student devices needed. Know more
14 questions
Ambiguities in natural language necessitate the creation of a more precise language - a programming language- for controlling computers
True
False
Compared to the number of words in a natural language, the number of defined words in a programming language is very small.
True
False
There are many possible ways to interpret an instruction written in a programming language.
True
False
Which of the following is not true about functions?
Functions are reusable programming abstractions
Functions can reduce complexity of writing and maintaining programs
Functions cannot make calls to other functions within the same program
Once defined, a function can be called many times from different parts of the program.
Which of the following would be a well-named function IF we are following all important naming conventions?
#drawStar()
Drawstar()
DrawStar()
drawStar()
Two functions in a single program can have different names but contain identical code.
True
False
A function can change names over the course of a program
True
False
Which of the following will call the function drawStar?
drawStar;
function drawStar( ){
for (var i = 0; i < 5; i++{
moveForward(100);
turnLeft(36);
}
}
function drawStar;
drawStar( );
To use turtle drawing to form the letters of the word "GAMETIME" you would be better off to write
A loop
Function(s)
To create a turtle drawing of a octagon (eight-sided shape), it would be most efficient to write
A loop
A function
To use turtle drawing to draw 100 tiny dots in a line, it would be best to use
A loop
A function
Using turtle drawing to create a circle of any size at a given point on the screen, it would be best to write
a Loop
a Function
Why are parameters useful when programming?
Parameters change the order of operations within a function.
Parameters help teams of programmers because they define the problems they are trying to solve.
Parameters allow for more flexible, generalized behaviors in functions.
Parameters determine the number of times a function will run.
When programmers work together, what is an example of an abstraction in programming that can promote collaboration?
Team members can rely on one another to explain their code.
Programmers can write functions without needing ot know what they do or how they should work.
Programmers can use functions created by others, relying on the functionality without knowing details of how the function works
In order for programmers to work together, they must be in the same room.
Explore all questions with a free account