Quiz
Programming test
Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.
Fragen in diesem Quiz (50)
1In flowgorithm what does this symbol represent?

- AStart/Finish
- BGet/Display information
- CDo some calculations
- DMake a decision
- ELink to another flowchart
2The purpose of Problem decomposition is to:
- AMake a program easier to read
- BPlace all of the program statements in one central function
- CDivide the problem into smaller pieces to make it easier to solve
- DCreate a flowchart showing the program flow
3One way of solving a problem is to take the six stage approach:
Identify the problem
Analyse the problem
Identify alternative solutions
Select the best solution
List the instructions
Evaluate the solution.
In which of these stages could we use the “Five Whys” technique?- AAnalyse
- BIdentify alternative solutions
- CSelect the best solution
- DList instructions
- ENone of the above
4When creating planning documents, an IPO chart is only needed if there are decisions in the program.
- ARichtig
- BFalsch
5What type of statements does the rectangle symbol contain in a flowchart?
- AIf statements
- BFunctions
- CLoops
- DProcessing
- EA and C
6If you receive an incomplete algorithm in planning documents, as the programmer you should:
- AComplete it to the best of your ability, given the information you have
- BWait until you have been given a correct algorithm
- CContact the person who gave you the algorithm and ask for further detail
- DWhinge
7Given the following values:
a = 5
b = 8
c = 4
What is the result of the following comparison?
(a > b) or (c < a)- ARichtig
- BFalsch
8Pseudo code is:
- ANot necessary for short programs or functions
- BWritten in the language it will be implemented in
- CA general description of the functionality needed
- DA list of every step needed to implement the program
- ENone of the above
9Indenting in pseudocode is:
- ANot necessary
- BOnly necessary with functions
- CNice to have but ultimately not necessary
- DIndicates steps that occur within a function, loop or if statement
- ENone of the above
10Boolean comparisions:
- AUse AND, OR and NOT
- BWith OR, program will stop evaluating once a TRUE value is found
- CCan only have two items to compare: e.g. age < 18 AND eligible == "Y"
- DBoth: AND,OR and NOT and With OR, program will stop evaluating once a TRUE value is found
11What is wrong with the following algorithm?
While age < 18
print "too young"- ASince there is no way for age to be updated inside the loop, it will make an infinite loop.
- BSince the age value has not been specified in the correct format in will not run
- CSince the age has been stated that the age is to be less than 18 but no incoming value has been specified it will not create any output
- DNone of the above
12An if statement must always have an else included with it.
- ARichtig
- BFalsch
13Given the Python code below, how many numbers will be printed?
x=0
while x <= 5:
print (x)- A0
- B4
- C5
- D6
14Considering the code below, which of the statements is true?
if age >= 18:
print("OK, you can vote")
else:
print("Too young")- AThis code will not run because you do not have a condition for the else statement
- BYou do not need a condition for an else statement to run
- CNone of the above
15Given the following Python code, what message will be printed?
number = 27
if number % 3 == 0:
print("fizz")
else:
print(number)- Afizz
- Bnumber
16 I have the following list and code. What numbers will be output?
elements = [1, 2, 3, 4, 5]
for x in range(0, 4, 2):
print(elements[x])- A1,2,3,4
- B1,3,5
- C1,3
- DNone of the above
17Which of the following is a valid python variable name?
- A1stNum
- Bfirst number
- Cfirst#
- DfirstNum
- ENone of the above are valid
18Once a variable is assigned a value in one function, that variable, with the same value, can be accessed by another function in the same program.
- ARichtig
- BFalsch
19What is the difference between an array and a list?
- ABoth arrays and lists can contain different types of data (for instance ints and strings)
- BOnly lists can contain both ints and strings
- COnly arrays start at location zero, lists start at location one
- DThere are no differences between arrays and lists
20Data should always be sorted and presented in ascending order?
- ARichtig
- BFalsch
21Which statement is true concerning use of comments?
- AYou should have a comment on each line
- BComments should be at least two sentences long
- CComments should only be placed at the start of functions
- DComments should be placed wherever needed to make your code more clear
22When turning in your program code you should leave in code that is never used (i.e. that you just tried something out but it didn't work), because this shows your thinking process.
- ARichtig
- BFalsch
23Once you become a good coder, you will not need to create pseudocode.
- ARichtig
- BFalsch
24Which of the following variable names best describes a list containing student names?
- Astudents
- BstudentList
- Cstudent List
25You have fallen behind schedule on a programming assessment, and your program still has some problems. Assuming you will only have time to take care of one, which one should you focus on?
- ALogic errors which give wrong outputs
- BMissing areas of functionality (>25% not done)
- CSmall formatting issues with output messages
26Charts and Graphs allow us to present data visually
- ARichtig
- BFalsch
27Line graphs allow us to quickly and easily look at aggregate data
- ARichtig
- BFalsch
28Data can be classified as 'primary' or 'secondary'
- ARichtig
- BFalsch
29Secondary data is often called 'aggregate' data
- ARichtig
- BFalsch
30Derived data is data that is calculated from other values
- ARichtig
- BFalsch
31Every ‘decision’ involves a comparison
- ARichtig
- BFalsch
32A function is a construct you can use to combine [blank_start]local variables[blank_end] and [blank_start]statements[blank_end] to perform a single task
- Alocal variables
- Bstatements
33[blank_start]input[blank_end] functions get value(s) from the user
- Ainput
34[blank_start]output[blank_end] functions display values(s) to the user
- Aoutput
35[blank_start]Programming[blank_end] is the art of taking a planned solution and producing a working implementation of it
- AProgramming
36All data in an excel spreadsheet is stored in [blank_start]cells[blank_end]
- Acells
37The Three Boolean Operators we use are:
- AAND, IF, OR
- BNOT, ELSE, IF
- COR, AND, NOT
- DELSE, NOT, OR
38When a loop beings and we ask “How many times will it run?”
IF WE KNOW THE ANSWER = ________ LOOP- ADefinite
- BIndefinite
39When a loop beings and we ask “How many times will it run?”
IF DON’T KNOW THE ANSWER = _________ LOOP- ADefinite
- BIndefinite
40Select the most appropriate answer:
Integers contain- AAll whole numbers
- BSome real numbers
- CAny sequence of characters
- DA collection of objects
41Select the most appropriate answer:
A list contains- AAll whole numbers
- BA collection of objects
- CAny sequence of characters
- DSome real numbers
42Scope can be either [blank_start]local[blank_end] or [blank_start]global[blank_end]
- Alocal
- Bglobal
43[blank_start]local[blank_end] variables can only be accessed within the [blank_start]function[blank_end]
- Alocal
- Bfunction
44[blank_start]global[blank_end] variables can be used anywhere in the program
- Aglobal
45[blank_start]variable[blank_end] is a name we use to refer to a value
- Avariable
46IPO stands for:
[blank_start]Input[blank_end],
[blank_start]Process[blank_end],
[blank_start]Output[blank_end]- AInput
- BProcess
- COutput
47Select the most appropriate for this flowgorithm symbol

- AStart/Finish
- BGet/Display information
- CDo some calculations
- DMake a decision
- ELink to another flowchart
48Select most appropriate for this flowgorithm symbol

- AStart/Finish
- BGet/Display information
- CDo some calculations
- DMake a decision
- ELink to another flowchart
49Select most appropriate for this flowgorithm symbol

- AStart/Finish
- BGet/Display information
- CDo some calculations
- DMake a decision
- ELink to another flowchart
50When breaking a problem down into parts it is best to identify [blank_start]nouns[blank_end] and identify [blank_start]verbs[blank_end]
- Anouns
- Bverbs
Informationen
- Beschreibung
- Quiz am Programming test, erstellt von Alex Von Kurtz am 08/06/2016.
- Autor
- Alex Von Kurtz
- Sprache
- English
- Aufrufe
- 0
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz