stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Programming concepts Flashcards | StudBud
Explore
/
Programming concepts
Programming concepts
19 terms
·
StudBud Administration
·
9 plays
Imported from external platform
Flashcards
19 cards
F
Practice quiz
P
Host live
L
Questions
19
Answers
1
It returns the character representing the upper-case equivalent of ThisChar
Example: TO_UPPER("Error 803")
None of above
Example: LCASE('W') returns 'w'
Example: UCASE('a') returns 'A'
2
== is not a comparision operator. (In Python)
False
True
3
Can while loops go forever?
Yes
No
4
INT(x : REAL) RETURNS INTEGER
Example: UCASE('a') returns 'A'
None of above
returns the current day number from ThisDate
returns a real number in the range 0 to x (not inclusive of x).
5
A ______________ is a variable in a method definition.
constant
All of above
parameter
LIBRARY ROUTINE
6
Comparision Operator
-
#
>
/
7
It is not comparision operator. (In Python)
==
!=
<>
+=
8
Repeat until
the loop continues to repeat until the program is stopped
n number of times the code inside the loop is executed
the code will be repeated a specific value
All of the above
9
What are "Identifiers" in programming?
Names given to variables, constants, methods, and functions.
Data values that remain constant during program execution.
Blank lines used to separate code blocks.
A group of programming instructions.
10
While loops are:
loops that repeat until a certain condition is met
coding statements that we use to help do math
loops that repeat a certain amount of times
loops inside another loop
11
What's the term? To repeat a code instruction many times, for example, in a loop.
All of above
Loop
Repetition
Iterate
12
Which while loop has the correct syntax?
while x <= 100:
while x and y:
while 100:
while x = 100:
13
One-dimensional array data structure
pointer
stack
hash
linear list
14
Benefits of Stepwise refinement:
Make steps easier to solve.
All of above
Increases the level of detail of the algorithm.
to be directly translated into lines of code.
15
An algorithm is a solution to a problem expressed as :
All of above
A parameter
A LIBRARY ROUTINE
A sequence of define steps
16
A _______________ is a set of programming instructions for a given task that is already available for use.
loop
array
All of above
LIBRARY ROUTINE
17
There are several techniques used in computational thinking such as :
decomposition
abstraction
All of above
pattern recognition
18
What is the purpose of using identifiers in programming?
To identify programming construct
To debug the program
To name variables, methods, classes, and other items
To provide comments in the code
19
LEFT(ThisString : STRING, x : INTEGER) RETURNS STRING
returns a string of length y starting at position x from ThisString
None of above
returns leftmost x characters from ThisString
returns rightmost x characters from ThisString