stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python simple Flashcards | StudBud
Explore
/
Python simple
Python simple
7 terms
·
StudBud Administration
·
826 plays
Covering some basic programming concepts in python 2.7
Flashcards
7 cards
F
Practice quiz
P
Host live
L
Questions
7
Answers
1
Which of these is not a type of error you would encounter with python
Syntax error
Value error
Logical error
Permanent error
2
Which line of code will store a string to the variable
ANSWER?
answer = 46
ANSWER = int(raw_input("What is your favourite colour"))
ANSWER = 46
ANSWER = raw_input("What is your favourite colour")
3
What will be printed if this code is run?
Give me an 3 Give me an 5 Give me a 7 Give me an 8
Give me an a Give me an i
2 5
Give me an a 2 Give me an i 5
4
What line of code would you use to print the variable
NAME
using python?
print NAME
print "NAME"
print name
"NAME"
5
What will be printed if this code is run?
Bradley
'B','R','A','D','L','E','Y'
2
7
6
What error message would you get when running this code?
name 'x' is not defined
expected an indented block
error in your program: EOL while scanning string literal
Syntax error
7
what value does X have when: X = 9 * 7
X
63
"63"
16