stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
10 IST NCSS CHALLENGE QUIZ 1 Flashcards | StudBud
Explore
/
10 IST NCSS CHALLENGE QUIZ 1
10 IST NCSS CHALLENGE QUIZ 1
20 terms
·
StudBud Administration
·
53 plays
What syntax have you retained after Week 1 of the NCSS Challenge?
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
What is a concatenation in the below code?
print('Harry' + ' ' + 'Potter')
print('Harry' + + + 'Potter')
print('HarryPotter')
print('Harry' + 'Potter')
2
What is syntax?
Characters made of 1's and 0's
Rules that defines how a Python program will be written
A programming language
Python's native language
3
What is a function in Python?
a named piece of code that performs a specific task.
uses random syntax.
allows participants to do tasks at random.
discrete code that performs multiple tasks.
4
What is a 'statement' in Python?
A unique set of rules.
An instruction that tells you to do something.
The rules which dictate the spaces amongst the characters.
The smallest stand alone part of a program.
5
To make a turtle turn right at 90 degrees, how is this written using Python?
>(90)
right, 90 degrees
right(90)
right (90)
6
What does the green syntax highlighting mean in the 'Hello World' program?
that 'Hello World' is a "function".
that 'Hello World" is a "character".
that 'Hello World' is a "string".
that 'Hello World' is a "variable".
7
What is a 'variable' in Python?
continuous varying data.
a place for storing discrete data.
a place to store numbers and characters.
a place for storing a value so we can use it later.
8
What does the
'int'
function do?
converts a string to an integer.
converts an integer to a string.
transforms an input to an output.
converts binary to a decimal.
9
What does the * character mean in Python?
add
everything
minimal
times
10
What does the purple highlighted 'print' syntax mean?
a "variable"
a "string"
a "function"
a "process"
11
What would be the correct Python syntax for adding 5 and 6 to equal 11?
print(int('5') + int('6'))
print int('5') + ('6'))
print(int5 + 6)
print(5 + 6)
12
When you make a mistake on Python, what syntax appears on the worksheet in red?
ErrorAlert
MistakeMade
NameError
ErrorName
13
What is the 'if' statement in Python?
it allows the syntax to be true or false.
it controls how the program runs.
it controls the characters.
it allows for a yes or no statement.
14
Characters are:
The individual letters, digits, symbols and spaces.
the individual letters which appear on your keyboard.
The protagonists in Monty Python's Flying Circus.
The letters of the alphabet.
15
A string can contain:
any letters, digits, punctuation and spaces that you want.
a line of numbers
any letters, digits and punctuation but no spaces.
a line of text
16
How would the syntax: print('5' + '6') display?
11
5 6
56
30
17
A prompt is:
a message that tells the user to use an output.
tells the user that the program is asking for input.
is highlighted in purple.
is highlighted in green
18
Pythons creator,
Guido van Rossum
named "Python" after which Monty Python movie?
Monty Python's Flying Circus
Monty Python's Holy Grail
Monty Python's Meaning of Life.
Monty Python's Life of Brian
19
What was the first program you wrote using Python?
Print ('Hello World!')
print('Hello, World!')
print'(Hello, World!)'
print ('Hello, World!')
20
When you assign a new value to an existing var, it replaces the old contents of the var.
False
True