What will the output be from the following code?print("Hello world!")
  • SyntaxError
  • Hello world!
  • "Hello world!"
  • print(Hello world!)
What will the output be from the following code?print(3+4)
  • 3+4
  • 7
  • SyntaxError
  • print(3+4)
print("12"*3)What would this print?
  • 36
  • 121212
  • 24
  • 12*3
What will the output be from the following code?print("3+4")
  • 7
  • 3+4
  • 34
  • SyntaxError
What will the output be from the following code?Print("Hello world!")
  • NameError
  • Hello world!
  • "Hello world"
  • Print(Hello world!)
What will the output be from the following code?print("Hello" + "world" + "today")
  • Helloworldtoday
  • Hello world today
  • "Hello" "world" "today"
  • SyntaxError
What will the output be from the following code?print(Hello world!)
  • Hello world!
  • SyntaxError
  • Hello world
  • print(Hello world!)
What will the output be from the following code?print(9/3)
  • 3
  • 3.0
  • 9/3
  • SyntaxError
Which function takes a users input
  • print()
  • int()
  • input()
  • def
A data type consisting of numbers, letters and symbols.
  • String
  • Integer
  • Float
  • Boolean
Which is the most appropriate data type for: "13th December"
  • Float
  • Boolean
  • Integer
  • String
A location in memory used to store data that can be changed.
  • Constant
  • Value
  • Variable
  • Iteration
What is python named after
  • The snake
  • Television show called Monty Python
Python identifies blocks of code by
  • BEGIN and END keywords
  • { and },
  • aligning up the starts of lines (indentation)
  • guessing
What will the output be from the following code?print("Hello world!" * 2)
  • TypeError
  • Hello world world!
  • Hello world!Hello world!
  • Hello world! * 2
people = ["John", "Rob", "Bob"]print (people[-1]) what would this result be?
  • John
  • Rob
  • Bob
To create a newline at the end of prompt, you can use which of the following expressions?
  • \new
  • \n
  • \break
  • \return
What is a variable?
  • A box(memory location) where you store values
  • a type of graphics
  • Data type
  • a type of memory
What letter will be printed on the screen after running this code:
cs-2 sb-1-Pythonimg_no 17.jpg
  • e
  • x
  • t
  • Nothing prints
What extension must you add to the end of a file when saving?
  • .xlsx
  • .pptx
  • .docx
  • .py
What will the output be from the following code?print(3*4+5)
  • 27
  • 17
  • 12
  • SyntaxError
Find T ?T=144 / 2 + 5 * 9 - ( 8 -3 )
  • 106
  • 688
  • 112
  • 684
Find the Output:Item = {"ECE" , "CSE" , "EEE" , "CIVIL"},Item.add (2,"MECH")print(Item)
  • { "ECE" , "MECH" , "CSE" , "EEE" , "CIVIL" },
  • { "ECE" , "CSE" , "MECH" , "EEE" , "CIVIL" },
  • { "ECE" , "CSE" , "EEE" , "CIVIL" },
  • { "ECE" , "CSE" , "EEE" ,"MECH" , "CIVIL" },
Find the Output ?A = "Anand Institute of higher technology"print ( A[-5:7]
  • _Institute of higher techn
  • nstitute of higher technol
  • d Institute of higher techn
  • Institute of higher techno
def.number (r1 , r2)sum = r1 / r2return suma = number (r2 = 15 , r1 = 10)
  • 2 / 3
  • 3 / 2
  • error
  • 2
what is the output of the following code ?var1 = 1var2 = 2var3 = "3"print (var + var2 var3)
  • Error. Mixing operators between numbers and strings are not supported
  • 6
  • 33
  • 123
Which of the following function convert a string to a float in python ?
  • float(X)
  • int(x[,base])
  • long(X[,base])
  • str(X)
what is the output of the following programing ?X = [ 'ab' , 'cd' ]for i in X: i.upper()print (x)
  • [ 'AB' , 'CD' ]
  • [ 'ab' , 'cd' ]
  • [ AB , CD ]
  • ERROR
find p ?p = ( 35 , 46 , 73 , 21 )p.append( -2 , 24 )print (p)
  • ( 35 , 46 , 73 , 24 , 21 )
  • error
  • ( 35 , 46 , 24 , 73 , 21 )
  • ( 35 , 24 , 73 , 21 )
what will be the output of the following python code snippet ?not (10 < 20) and not (10 > 30 )
  • TRUE
  • FALSE
Find the output ?a = Trueb = Falsec = Falseif a or b and c : print "INFYTQ"else: print "infytq"
  • infytq
  • INFYTQ
  • ERROR
What is syntax?
  • Syntax is the word used to describe an error
  • Syntax is the rules of the programming language
  • It is used to read information
  • It is used to output information 
What does the following code do? myAge = int (myAge)
  • Converts the var (variable) myAge to a string
  • Converts the var (variable) myAge to a integer
  • Converts the var (variable) myAge from a integer to a string
  • Converts the var (variable) myAge to if statement
Joining elements together to make a string is called what?
  • Combining
  • Connecting
  • Concatenation
  • Stringing
What does the print function do in python?
  • It's a variable.
  • It can input data.
  • It displays something like a string or integer
  • It loops the code.
What symbol do you use to make a comment in Python?
  • @
  • ¬
  • ;
  • #
Used to create exponents
  • **
  • """
  • %
  • #
The correct way to write a variable in Python?
  • my_variable = 10
  • my variable = 10
  • my_variable is 10
  • my_variable: 10
102 = 100Which of the following is used in Python to calculate ten squared?
  • 10 ** 2
  • 10 * 2
  • 10 % 2
  • 10 ** 10
What will the output be from the following code?print("3*4+5")
  • SyntaxErrror
  • 17
  • 3*4+5
  • 12
What will the output be from the following code?print("Hello" + str(2) + "world!")
  • Hello world! Hello world!
  • Hello2world!
  • Hello Hello world! world!
  • SyntaxError
Python language was developed in what year?
  • 1985
  • 2001
  • 1991
  • 1820
Is python an interpreter or compiler programming language?
  • Compiler
  • Interpreter
Python is uses braces to block off code
  • True
  • False
Python uses indentation to block code into chunks
  • True
  • False
Python correct naming convention for constants is?
  • firstName
  • First_Name
  • FIRST_NAME
  • firstname
Python correct naming convention for variables is?
  • new_user25
  • NewUser25
  • 25_new_user
  • 25NewUser
  • NEWUSER25
What output will the console show, if 15 and 30 are entered by the user?
cs-2 sb-1-Pythonimg_no 92.jpg
  • Syntax error
  • The sum of the two numbers - 45
  • The concatenation of the two numbers - 1530
  • Complier error
What result will display in the shell if 15 and 20 is entered by the user?
cs-2 sb-1-Pythonimg_no 93.jpg
  • "num1 + num2"
  • 1520
  • 35
What datatype will the answer be if the user enters 15 and 30?
cs-2 sb-1-Pythonimg_no 94.jpg
  • Integer
  • String
  • Boolean
  • Float
What letter will be printed on the screen after running this code:
cs-2 sb-1-Pythonimg_no 31.jpg
  • e
  • x
  • t
  • Nothing prints
What is the position of the name "Robert" in the following list:
cs-2 sb-1-Pythonimg_no 32.jpg
  • 0
  • 1
  • 2
  • 3
What does the APPEND procedure do in the following code:
cs-2 sb-1-Pythonimg_no 33.jpg
  • Adds Liverpool to the beginning of the list
  • Replaces Bristol with Liverpool
  • Replaces Manchester with Liverpool
  • Adds Liverpool to the end of the list
In the following code, "city" is an example of a what?
cs-2 sb-1-Pythonimg_no 34.jpg
  • List
  • Loop
  • Variable
  • Array
Each item in a list has an "address" or index. The first index in a Python list is what?
  • 0
  • 1
  • a
  • A
What output will this code produce?
cs-2 sb-1-Pythonimg_no 35.jpg
  • ['France', 'Wales', 'England']France
  • ['France', 'Wales', 'England']Wales
  • France, Wales, EnglandWales
  • France  Wales  EnglandFrance
What output will this code produce?
cs-2 sb-1-Pythonimg_no 36.jpg
  • ['France', 'Wales', 'England']Ireland
  • ['France', 'Ireland', 'England']
  • ['France', 'Ireland', 'Wales', 'England']
  • ['Ireland', 'Wales', 'England']
In a list called "players" if you wanted to delete the item with an index of 3 which of the following examples of code would be correct?
  • players.pop[3]
  • players.delete(3)
  • players.remove(3)
  • players.pop(3)
In a list called "players", if you wanted to add a player called "Bob" to the list, which of the following examples of code would be correct?
  • players.add("Bob")
  • player.append("Bob")
  • players.append("Bob")
  • players.addend("Bob")
If you want to create an empty list called colours, which of the following pieces of code is correct?
  • colours = [ ]
  • colours = ( )
  • colours = { },
  • colors = [ ]
What output will this code produce?
cs-2 sb-1-Pythonimg_no 37.jpg
  • Exeter
  • 4
  • 6
  • city
What output will this code produce?
cs-2 sb-1-Pythonimg_no 38.jpg
  • 4
  • 2
  • 3
  • 5
What output will this code produce?
cs-2 sb-1-Pythonimg_no 39.jpg
  • 3
  • 20
  • 25
  • 17
What output will this code produce?
cs-2 sb-1-Pythonimg_no 40.jpg
  • 1
  • 3
  • 2
  • 4
What output will this code produce?
cs-2 sb-1-Pythonimg_no 41.jpg
  • 1
  • 3
  • i
  • 0
What output will this code produce?
cs-2 sb-1-Pythonimg_no 42.jpg
  • red
  • ['blue', 'green', 'red']
  • ['red', 'green', 'blue']
  • error
What output will this code produce?
cs-2 sb-1-Pythonimg_no 43.jpg
  • ['blue', 'green', 'red', 'yellow']
  • ['blue', 'red', 'yellow']
  • ['yellow', 'red', 'green']
  • ['yellow', 'red', 'blue']
What output will this code produce?
cs-2 sb-1-Pythonimg_no 44.jpg
  • ['blue', 'green', 'red', 'yellow']
  • ['blue', 'red', 'yellow']
  • ['yellow', 'red', 'green']
  • ['yellow', 'red', 'blue']
What output will this code produce?
cs-2 sb-1-Pythonimg_no 45.jpg
  • ['Bristol', 'Exeter', 'London', 'Manchester']
  • ['Manchester', 'London',  'Exeter', 'Bristol']
  • ['Manchester', 'Bristol', 'Exeter', 'London',  ]
  • ['London',  'Exeter', 'Bristol', 'Manchester']
Output of the following code:
cs-2 sb-1-Pythonimg_no 46.jpg
  • Syntax Error
  • ABC@0@@
  • ABC0@00
  • None of these
What will the output be from the following code?print("Hello world!\nHello world!")
  • Hello world! Hello world!
  • Hello world!Hello world!
  • SyntaxError
  • Hello world!
Code executed based on a condition being true
  • Sequence
  • Condition
  • Iteration
  • Variable
What is Python named after
  • The snake
  • Television show called Monty Python
  • Surname of the creator
  • Combination of names of the creators
Used to create a function
  • const
  • int
  • def
  • while
What does the term 'debug' mean?
  • Identify errors and fix them
  • Making a calculation
  • A set of instructions
  • Looking at code
If you want more than one option for your code, what do you use (after if)?
  • elif
  • else
  • ifif
  • else if
What would this result be?people = ["John", "Rob", "Bob"]print (people[1])
  • John
  • Rob
  • Bob
What is the name of the environment in Python that write your programs and then test them out?
  • Shell
  • Window
  • IDLE
  • CLI
What is the code for a STRING in python?
  • str
  • stri
  • stg
What is correct code for INTEGER in python?
  • in
  • ing
  • int
I am 71 years old! What will the output be?: IF you are 70 or older, say “You are aged to perfection!”ELIF you are exactly 50, say “Wow, you are half a century old!” ELSE say “You are a spring chicken!”
  • “You are aged to perfection!”
  • "Wow, you are half a century old!"
  • "You are a spring chicken!"
I am 18 years old! What will the output be?: IF you are 70 or older, say “You are aged to perfection!” ELIF you are exactly 50, say “Wow, you are half a century old!” ELSE say “You are a spring chicken!”
  • "You are aged to perfection"
  • "Wow, you are half a century old!"
  • "You are spring chicken!"
Look at this code, how many times will it loop?
cs-2 sb-1-Pythonimg_no 135.jpg
  • 3
  • 1
  • 0
  • 4
Look at this code, what shape will it make?
cs-2 sb-1-Pythonimg_no 136.jpg
  • Square
  • Triangle
  • Rectangle
  • Hexagon 
What is wrong with this code?
cs-2 sb-1-Pythonimg_no 137.jpg
  • Missing Brackets
  • Missing Comma
  • Missing Colon
  • Incorrect spelling 
What is wrong with this code?
cs-2 sb-1-Pythonimg_no 138.jpg
  • Missing Brackets
  • Missing Comma
  • Missing Colon
  • Incorrect spelling 
What will be the output from this code?
cs-2 sb-1-Pythonimg_no 139.jpg
  • A star with an orange outline
  • A solid orange star
  • A pentagon with an orange outline
  • A solid orange pentagon
What will be the output from this code?
cs-2 sb-1-Pythonimg_no 140.jpg
  • A pentagon with an orange outline
  • A solid orange star
  • A star with an orange outline
  • A solid orange pentagon
To stop the turtle drawing you need to use which of the following commands?
  • penup:
  • pen_up( )
  • penup( )
  • penup( ):
To move the turtle to  a specific position on the drawing canvas you need to use which of the following commands?
  • set_pos( )
  • setpos( ):
  • setpos
  • setpos( )
When using a command to move the turtle to a specific position on the drawing canvas, the middle of the canvas is represented by which coordinates?
  • 1, 1
  • 100, 100
  • 0, 0
  • 500, 500
Used to structure code in Python
  • Whitespace
  • Comments
  • Booleans
  • Variables
a data type than can have one of two values: True or False
  • Boolean
  • Variable
  • Modulo
  • Interpreter
What will the output be from the following code?print( 3 + 4 )
  • 3 + 4
  • 7
  • SyntaxError
  • print( 3 + 4 )
To repeat a fixed number of times use a
  • while loop
  • for loop
  • if loop
  • indentation
The character that must be at the end of the line for if, while, for etc.
  • :
  • ;
  • .
  • ,
To repeat until a particular condition is true use
  • while loop
  • for loop
  • if loop
  • indentation
Which of these would work as a piece of code?
  • IF answer == "Yes":
  • if answer == "Yes"
  • if answer == "Yes":
  • if answer = "yes":
Python is an example of a....
  • Text-based programming language
  • Object orientated programming language
  • language written in java script
  • Visual-based programming language
What is python?
  • a programming language 
  • DTP software 
  • Spreadsheet software
  • Computer 
What syntax can you use to insert a line break between strings so that they appear over multiple lines?
  • /
  • \n
  • \l
  • n
Python is _____ sensitive which means you must use the same indentation every time.
  • space
  • colour
  • code
  • word
What button do you press to compile (run) your program so that it runs in the shell?
  • F3
  • F5
  • F7
  • F9
Which of these is NOT a loop in python?
  • for loop
  • while loop
  • nested loop
  • if loop
What will this code print?
cs-2 sb-1-Pythonimg_no 161.jpg
  • Print the word 'letter'.
  • Print a user input on one line.
  • Print a user input one letter at a time.
  • Print an Error.
What will be the output from this code?
cs-2 sb-1-Pythonimg_no 162.jpg
  • A star with an orange outline
  • A solid orange star
  • A pentagon with an orange outline
  • A solid orange pentagon
What will be the output from this code?
cs-2 sb-1-Pythonimg_no 163.jpg
  • Square
  • Triangle
  • Circle
  • Rectangle
What is wrong with this code?
cs-2 sb-1-Pythonimg_no 164.jpg
  • Missing Brackets
  • Missing Comma
  • Missing Colon
  • Incorrect spelling 
What is python?
cs-2 sb-1-Pythonimg_no 165.jpg
  • programming language
  • animal
  • food
  • subject
What will this code print?
cs-2 sb-1-Pythonimg_no 166.jpg
  • Print the word 'letter'.
  • Print a user input on one line.
  • Print a user input one letter at a time.
  • Print an Error.
What will be the output from this code?
cs-2 sb-1-Pythonimg_no 167.jpg
  • A star with an orange outline
  • A solid orange star
  • A pentagon with an orange outline
  • A solid orange pentagon
What will be the output from this code?
cs-2 sb-1-Pythonimg_no 168.jpg
  • Square
  • Triangle
  • Circle
  • Rectangle
What is wrong with this code?
cs-2 sb-1-Pythonimg_no 169.jpg
  • Missing Brackets
  • Missing Comma
  • Missing Colon
  • Incorrect spelling 
What is python?
cs-2 sb-1-Pythonimg_no 170.jpg
  • programming language
  • animal
  • food
  • subject
Python shell can be in ________________ways
  • 2
  • 3
  • 1
Creating script in python by choose
  • ctrl+n
  • ctrl+o
  • ctrl+s
python files are save with extension __________________
  • .py
  • .xls
  • .pyn
In python comments begin with ______________ symbol
  • +
  • #
  • *
_________________________ are logical operators.
  • AND,OR,NOT
  • OR , NOT
  • AND, OR
_____________________ is raw data given in variable or constant.
  • constant
  • literal
  • delimiters
Boolean data can have two values______________
  • true or false
  • 0 and 1
  • right or wrong
Ternary operator is known as _____________
  • relational operator
  • logical operators
  • conditional operator
python identifier is case sensitive
  • no
  • yes
In python there are______________ types of literals
  • 2
  • 4
  • 3
С помощью какого значка мы присваиваем значение переменной?
  • =
  • ==
  • :=
  • ===
Какой из значков используется для возведения в степень?
  • *
  • ^^
  • ^
  • **
Какая функция используется для вывода в консоль?
  • int()
  • input()
  • print()
  • range()
Какая функция используется для преобразования в целое число?
  • input()
  • int()
  • str()
  • float()
Какая функция используется для ввода данных с клавиатуры?
  • range()
  • str()
  • input()
  • int()
Что будет выведено в консоль в результате работы программы?
cs-2 sb-1-Pythonimg_no 310.jpg
  • 53
  • 8
  • TypeError(ошибка)
  • 35
Что будет выведено в консоль в результате работы программы?
cs-2 sb-1-Pythonimg_no 311.jpg
  • 104
  • 410
  • TypeError(ошибка)
  • 14
Какую команду надо вставить в строку номер 2 чтобы выходные данные совпали?
cs-2 sb-1-Pythonimg_no 312.jpg
  • print("Мне", t, "лет!")
  • print("Мне " + "t" + " лет!")
  • print("Мне " + 5 + " лет!")
  • print(Мне 5 лет!)
Code repeated / looped until a condition has been met or a set number of times.
  • Sequence
  • Selection
  • Iteration
  • Variable
Decides if a string only contains numbers
  • isalpha()
  • isnumeric()
  • int()
  • string()
Tells the interpreter that the code which follows is a function
  • const
  • int
  • def
  • while
people = ["John", "Rob", "Bob"]print (people[1]) what would this result be?
  • John
  • Rob
  • Bob
What letter will be printed on the screen after running this code:
cs-2 sb-1-Pythonimg_no 166.jpg
  • e
  • x
  • t
  • Nothing prints
What does the APPEND procedure do in the following code:
cs-2 sb-1-Pythonimg_no 167.jpg
  • Adds Liverpool to the beginning of the list
  • Replaces Bristol with Liverpool
  • Replaces Manchester with Liverpool
  • Adds Liverpool to the end of the list
What output will this code produce?
cs-2 sb-1-Pythonimg_no 168.jpg
  • ['France', 'Wales', 'England']France
  • ['France', 'Wales', 'England']Wales
  • France, Wales, EnglandWales
  • France  Wales  EnglandFrance
What output will this code produce?
cs-2 sb-1-Pythonimg_no 169.jpg
  • ['France', 'Wales', 'England']Ireland
  • ['France', 'Ireland', 'England']
  • ['France', 'Ireland', 'Wales', 'England']
  • ['Ireland', 'Wales', 'England']
What output will this code produce?
cs-2 sb-1-Pythonimg_no 170.jpg
  • Exeter
  • 4
  • 6
  • city
What output will this code produce?
cs-2 sb-1-Pythonimg_no 171.jpg
  • 3
  • 20
  • 25
  • 17
What output will this code produce?
cs-2 sb-1-Pythonimg_no 172.jpg
  • blue
  • green
  • red
  • error
What output will this code produce?
cs-2 sb-1-Pythonimg_no 173.jpg
  • ['Bristol', 'Exeter', 'London', 'Manchester']
  • ['Manchester', 'London',  'Exeter', 'Bristol']
  • ['Manchester', 'Bristol', 'Exeter', 'London',  ]
  • ['London',  'Exeter', 'Bristol', 'Manchester']
To insert an the string "strawberries" in the first position of a list we use
  • fruit.append("strawberries, 1")
  • fruit.insert("strawberries",0)
  • fruit.insert(1, "strawberries")
  • fruit.insert(0, "strawberries")
What will the output be from the following code?print(9/3*2+4-5)
  • 19
  • 5.0
  • 0.5
  • 5
What is a Count-Controlled loop?
  • for loop
  • while loop
Which of these operators means EQUAL TO?
  • '='
  • '=>'
  • '<='
  • '=='
What will be the output of this code?
cs-2 sb-1-Pythonimg_no 174.jpg
  • 1,2,3,4,5,6,7,8,9,10,11,12
  • 0,2,4,6,8,10
  • 2,4,6,8,10,12
  • 2,4,6,8,10
If i want to continuously check for a correct answer, what loop would i use?
  • for loop
  • while loop
Which of the following is invalid?
  • _a = 1
  • __a = 1
  • __str__ = 1
  • none of the mentioned
Which of the following is an invalid statement?
  • abc = 1,000,000
  • a b c = 1000 2000 3000
  • a,b,c = 1000, 2000, 3000
  • a_b_c = 1,000,000
What is the output of this expression, 3*1**3?
  • 27
  • 9
  • 3
  • 1
We can insert the new item into tuple
  • True
  • False
You are in the car with traffic jammed at a junction. To cross that junction according to the traffic rules, which one is NOT applicable
  • While loop
  • Conditional Statement
  • For loop
What is the word (command) used to display numbers and text on the screen?
  • print
  • input
  • output
  • command
What is the name of the programming language we are learning?
cs-2 sb-1-Pythonimg_no 175.jpg
  • Scratch
  • Python
  • Pie thin
  • Scribble
What will be the output?name = "Dave"print (name)
  • Dave
  • 'Dave'
  • name
  • (name)
What is Python?
  • text based programming language
  • word processor 
  • spreadsheet
  • block based programming language
The number or word we give to a variable
  • Value
  • Bug
  • Information
  • Text
What symbol is used in python to assign values to a variable?
  • equals =
  • plus + 
  • forward slash /
  • asterisk *
If you want to create an empty list called colours in Python, which of the following is correct?
  • colours = [ ]
  • colours = ( )
  • colours = { },
  • colours = <>
What will the output be from the following Python code?Print("Hello world!")
  • NameError
  • Hello world!
  • "Hello world"
  • Print(Hello world!)
What is the function of the secondary memory in a computer?
  • Execute all of the computation and logic of the program
  • Retrieve web pages over the Internet
  • Store information for the long term, even beyond a power cycle
  • Take input from the user
What is a program?
  • A sequence of Phyton statements
  • An interpreter that translates code
  • A group of codes
  • A low-level conceptual pattern
What is the difference between a compiler and an interpreter?
  • A compiler translates one statement at a time into a machine code.
  • A compiler translates the entire program into machine code at once.
  • A compiler compiles the given statements into machine code.
  • There is no difference between them.
Which of the following contains "machine code"?
  • The Python interpreter
  • The keyboard
  • Python source file
  • A word processing document
Where in the computer is a variable such as "x" stored after the following Python line finishes? x = 123
  • CPU
  • Main Memory
  • Secondary Memory
  • Input Devices
What will the following program print out:x = 43x = x + 1print(x)
  • 43
  • 44
  • x+1
  • Error message
Why is it called 'Python'?
  • The guy who created it loves snakes
  • The guy who created it loves Monty Python films
  • You can create a game on python called snake
  • It was created by someone called Mr Python
What is the process of developing and implementing various sets of instructions to enable a computer to do a certain task?
  • Computer Engineering
  • Computer Programming
  • Computer Processing
  • Computer Science
What command is this shape for?
cs-2 sb-1-Pythonimg_no 197.jpg
  • START / STOP
  • INPUT / OUTPUT
  • PROCESS
  • DECISION
What does this shape represent?
cs-2 sb-1-Pythonimg_no 198.jpg
  • Input/Output
  • Decision
  • Process
  • Start/Stop
What does this shape represent?
cs-2 sb-1-Pythonimg_no 199.jpg
  • Decission
  • Process
  • Input/Output
  • Start/End
What Python command lets the user enter an answer to a question?
  • answer()
  • open()
  • print()
  • input()
What will be the output?name = 'Dave'greeting = "Good morning" + nameprint (greeting)
  • Good moning 'Dave'
  • Good morning Dave
  • Good morning name
  • Good morning + Dave
What letter will be printed on the screen after running this code:
cs-2 sb-1-Pythonimg_no 211.jpg
  • e
  • x
  • t
  • Nothing prints
What does the APPEND procedure do in the following code:
cs-2 sb-1-Pythonimg_no 212.jpg
  • Adds Liverpool to the beginning of the list
  • Replaces Bristol with Liverpool
  • Replaces Manchester with Liverpool
  • Adds Liverpool to the end of the list
Each item in a list has an index. What is the first index in a Python list?
  • 0
  • 1
  • a
  • A
What output will this code produce?
cs-2 sb-1-Pythonimg_no 213.jpg
  • 4
  • 2
  • 3
  • 5
What output will this code produce?
cs-2 sb-1-Pythonimg_no 214.jpg
  • 3
  • 20
  • 25
  • 17
What output will this code produce?
cs-2 sb-1-Pythonimg_no 215.jpg
  • 1
  • 3
  • 2
  • 4
What is the Python built-in function to converts a number to a string?
  • str()
  • int()
  • parseInt()
  • convert
Which of these is correct Python conditional statement?
  • IF answer == "Yes":
  • if answer == "Yes"
  • if answer == "Yes":
  • if answer = "yes":
What output will this code produce?
cs-2 sb-1-Pythonimg_no 221.jpg
  • ['France', 'Wales', 'England']Ireland
  • ['France', 'Ireland', 'England']
  • ['France', 'Ireland', 'Wales', 'England']
  • ['Ireland', 'Wales', 'England']
What output will this code produce?
cs-2 sb-1-Pythonimg_no 222.jpg
  • ['Bristol', 'Exeter', 'London', 'Manchester']
  • ['Manchester', 'London',  'Exeter', 'Bristol']
  • ['Manchester', 'Bristol', 'Exeter', 'London',  ]
  • ['London',  'Exeter', 'Bristol', 'Manchester']
What output will this code produce?
cs-2 sb-1-Pythonimg_no 223.jpg
  • red
  • ['blue', 'green', 'red']
  • ['red', 'green', 'blue']
  • error
The program above
cs-2 sb-1-Pythonimg_no 224.jpg
  • prints all the odd numbers between 1 and 20
  • prints all even numbers between 1 and 20
  • print all the odd numbers between 1 and 21
  • prints all the even numbers between 1 and 21
The above program prints
cs-2 sb-1-Pythonimg_no 230.jpg
  • Numbers 1 to 10 in reverse order
  • Numbers 1 to 11 in reverse order
  • Numbers 1 to 10
  • Numbers 1 to 11
The code above prints all numbers between 1 and 30 that are
cs-2 sb-1-Pythonimg_no 231.jpg
  • not divisible by 5
  • divisible by 5
The program above prints the sum of
cs-2 sb-1-Pythonimg_no 232.jpg
  • all odd numbers less than 100
  • all even numbers less than 100
  • all numbers less than 100
The program above prints the sum of all the numbers between 0 and 101 that are
cs-2 sb-1-Pythonimg_no 233.jpg
  • alternate odd numbers
  • alternate even numbers
  • alternate numbers
The program above prints each number between 1 and 10
cs-2 sb-1-Pythonimg_no 234.jpg
  • as many times as the number itself
  • 10 times
  • 11 times
The program above prints each number between 1 and 10
cs-2 sb-1-Pythonimg_no 235.jpg
  • as many times as the number itself
  • 10 times
  • 11 times
How many times will 1 be printed
cs-2 sb-1-Pythonimg_no 236.jpg
  • 3
  • 4
  • 5
  • 6
What is the output of the program above
cs-2 sb-1-Pythonimg_no 237.jpg
  • 10
  • 15
  • 18
  • 17
  • 16
What is the value of the variable sum after the code above executes
cs-2 sb-1-Pythonimg_no 243.jpg
  • 54
  • 44
  • 64
  • 34
  • 74
What does this program print
cs-2 sb-1-Pythonimg_no 244.jpg
  • 2 + 2 = 44 + 4 = 88 + 8 = 1616 + 16 = 3232 + 32 = 64
  • 2 + 2 = 42 + 2 = 42 + 2 = 42 + 2 = 42 + 2 = 4
  • 2 + 2 = 42 + 4 = 62 + 6 = 82 + 8 = 102 + 10 = 12
  • 2 + 2 = 42 + 2 = 42 + 2 = 42 + 2 = 4
  • 2 + 2 = 42 + 4 = 62 + 6 = 82 + 8 = 10
Who developed Python?
  • Ritche
  • Guido Van Rossum
  • Bill Gates
  • Sunder Pitchai
In Python, the script mode programs can be stored with the extension.
  • .pyt
  • .pyn
  • .pn
  • .py
Which mode displays the python code result immediately?
  • Script
  • Compiler
  • Interactive
  • Program
Which of the following used to develop and run Python code?
  • GUI
  • Command prompt
  • CUI
  • IDLE
Which of the following defines the Python interactive mode of programming?
  • >>>
  • >>
  • <<
  • <<<
How many ways python program can be written?
  • 1
  • 2
  • 3
  • 4
Which of the following shortcut is used tocreate new Python Program?
  • Ctrl + F
  • Ctrl + N
  • Ctrl + B
  • Ctrl + V
What is the name of the programming language we are learning?
cs-2 sb-1-Pythonimg_no 269.jpg
  • Scratch
  • Python
  • Pie thin
  • Scribble
A python function is coloured
  • Pink
  • Purple
  • Green
  • Blue
A Python string is coloured
  • Green
  • Purple
  • Blue
  • Pink
A function can be described as
  • an instruction to the computer
  • a set of characters like letters and numbers
  • An error message you received when the code is wrong
  • What the user will see on the screen
Will the following line of code work:print('hello")
  • Yes
  • No
Variables are used to
  • give the computer a set of instructions
  • make writing code easier and quicker
  • Ask the user a question
  • Vary the amount of data inputted
A variable must be assigned a name
  • True
  • False
If the following code was used, the user would see:print("Harry" + " " + "Potter")
  • HarryPotter
  • Harry Potter
  • Error Message
  • harry potter
To ask the user a question, you must use
  • an input
  • a question mark
  • correct grammar
  • capital letters
Python can use used as a calculator
  • True
  • False
The Len Function
  • Counts all the characters in the string
  • Only counts the letters used in the string
  • Doesn't count anything
  • Only counts the numbers used in a string
Which statement correctly assigns the string "Tanner" to the variable name?
  • name  = print( "Tanner")
  • input("Tanner")
  • name = "Tanner"
  • name = input("Tanner")
Which of the following is a correctly-formatted comment?
  • #Comment
  • &Comment
  • ""Comment""
  • !Comment
What is an "int"?
  • an integer or whole number
  • the words printed to the screen
  • the function used to print
  • when two numbers are added together
What does the function "print" do?
  • A string
  • Allows a string to show up on the screen
  • A whole number
  • Allows a number to be added to another
What does the function "input" do?
  • Allows the user to print a string
  • Allows a string to be added to another string
  • Stores numbers
  • Allows an answer to be inserted into the computer by the user
What is a string?
  • An integer or whole number
  • A sequence of characters
  • A question
  • The answer to a question that you typed in
the function .lower() does what?
  • changes everything to upper case
  • changes everything to lower case
  • changes everything to a number
  • changes everything to symbols
The function .upper() does what?
  • replaces all text
  • replaces some text to what you want it to say
  • changes everything to upper case
  • changes everything to lower case
What does the function .replace() do?
  • changes everything from upper to lower case
  • only replaces numbers
  • replaces what you tell it to, to something else you want
  • replaces the whole sentence
the program in the picture will print to the screen:
cs-2 sb-1-Pythonimg_no 548.jpg
  • Hello my name is Eliza
  • Hello, my name is Eliza
  • Hello, my name is Eliza.
  • Hi, I'm Eliza
From the picture, what will be the code?
cs-2 sb-1-Pythonimg_no 549.jpg
  • ans = input("What is your favorite movie?")print(f"Great! I love {ans}, too.")
  • ans = print("What is your favorite movie?")print(f"Great! I love {ans}, too.")
  • ans = input("What is your favorite movie?")print(f"Great! I love Harry Potter too.")
  • ans = input("What is your favorite movie?")print("Great! I love {ans}, too.")
What will this print to the screen if I input "Shrek" as my answer?
cs-2 sb-1-Pythonimg_no 550.jpg
  • So what is your favorite movie?ShrekI love Shrek too.
  • So what is your favorite movie? ShrekGreat! I love Shrek too.
  • So what is your favorite movie?Harry PotterGreat! I love Harry Potter too.
  • So what is your favorite movie?ShrekGreat! I love Shrek too.
Which program would calculate 2 times 4?
  • print("2 x 4")
  • print(2 x 4)
  • print(2*4)
  • int(2*4)
Which of these tells the computer you are using a number?
  • int
  • print
  • integer
  • input
Which of these calculates 6 divided by 3
  • print(6/3)
  • print("6 divided by 3")
  • pint(6 - 3)
  • print(3/6)
Choose the correct use of a variable
  • day = Wednesday
  • sport = "AFL"
  • saturday = Saturday
  • colour = Pink Balloon
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly
  • True
  • False
Which of the following types of computer languages uses binary code to communicate with the computer?
  • High-level languages
  • Assembly languages
  • Machine language
  • Database languages
Arithmetic Operators - What is + ?
  • Addition
  • Subtraction
  • Multiplication
  • Division
Arithmetic OperatorWhat is a - ?
  • Addition
  • Subtraction
  • MultiplicationMultiplication
  • Modulo
Arithmetic OperatorWhat is a * ?
  • Addition
  • Subtraction
  • Multiplication
  • Modulo
Arithmetic OperatorsWhat is a / ? 
  • Addition
  • Subtraction
  • Division
  • Modulo
What would print (10 + 16) produce?
  • 20
  • 22
  • 24
  • 26
How do you display text?
  • input
  • output
  • print
  • variable 
To display the following on screenHello World!the following command should be used:
  • print(Hello World!)
  • print("Hello World!")
  • print("Hello World" + !)
  • print"(Hello World!)"
Operators used in python:divide, multiply, add, subtract
  • /, *, +, -
  • div, mul, +, -
  • \, x, +, -
  • ~, *, +, -
the designation for the code that we make in a programming language is __________.
  • Script
  • text
  • image
  • shape
Python is a __________computer programing language and Scratch is visual-based.
  • picture based
  • Vision based
  • ilustration based
  • text based
X = 3Y = 4Z = X + Yin the formula, X is called as ___________
  • String
  • Variable
  • text
  • Number
Based on the question no 4, What is the program to count the addition
  • print X = 3
  • print Y
  • print y = 3
  • print (Z)
what is the correct program to do the substraction from this data50 - 30 = 20x = 50 y =30 z =x - y
  • print (x)
  • print (y)
  • print (z)
  • print(x-y)
What is the symbol to do the multiplication in python.
  • +
  • -
  • *
  • /
What is the symbol to do the division in python.
  • +
  • *
  • /
  • -
what commands appear when we do the typo
  • repeat again
  • syntax eror
  • join again
  • inform to the teacher
what is the output of this scriptA = 60B = 30C = A / BPrint (C)
  • 60
  • 30
  • B = 30
  • 2.0
Переменная в Python - это
  • величина , которая имеет имя , тип , и значение
  • значение , которое не имеет имя
  • величина , которая имеет имя , но не имеет тип и значение
  • значение, которое имеет имя
Для вывода сообщения на экран используется функция : ...
  • input()
  • int()
  • print()
  • string()
Что будет выведено на экран ?a=5b=6print(a)
  • 11
  • 5
  • 6
  • 1
Что будет выведено на экран в результате выполнения фрагмента программы?a=4b=6print(a*b)
  • 24
  • 6
  • 12
  • a*b
Какие из вариантов подойдут в качестве имени для переменной?
  • fg
  • _d
  • 2s
  • j 3
Для ввода сообщения на экран используется функция?
  • input()
  • int()
  • print()
  • string()
Целочисленный тип данных в python - ...
  • float
  • string
  • int
  • real
Для преоброзования даных в текст используется функция:
  • string()
  • input()
  • print()
  • int()
> – это следующий знак:
  • больше
  • меньше
  • больше или равно
  • меньше или равно
< – это следующий знак:
  • больше
  • меньше
  • больше или равно
  • меньше или равно
Что будет выведено на экран?
cs-2 sb-1-Pythonimg_no 621.jpg
  • 42 + 5
  • 42
  • 47
  • 5
Что будет выведено на экран?
cs-2 sb-1-Pythonimg_no 622.jpg
  • 42 + 5
  • 42
  • 47
  • 5
Что будет выведено на экран?
cs-2 sb-1-Pythonimg_no 623.jpg
  • 42 + 5
  • 42
  • 47
  • 5
Переменная int:
  • вещественное число
  • символьная строка
  • логическая переменная
  • целое число
Переменная str:
  • символьная строка
  • логическая переменная
  • целое число
Переменная float:
  • целое число
  • вещественное число
  • логическая переменная
Каков будет результат выполнения int("88"):
  • "88"
  • 88
  • 88.00
Каков будет результат выполнения str(88):
  • "88"
  • 88
  • 88.00
Что будет в результате выполнения команды:a = 20b = a + 5a = b * 100print(a)
  • 25
  • 1000
  • 25000
  • 2500
Что будет в результате выполнения следующего действия print(23 % 2)
  • 11
  • 1
  • 0
Результатом вычисления print(24 // 3) будет число:
  • 4
  • 8
  • 12
Что будет результатом выполнения алгоритма: a = input()b = input()s = a + bprint(s)Если последовательно будет введено 5 и 7.
  • 12
  • 57
  • 35
Что будет в результате выполнения следующего алгоритма:x = int(input())if x > 0: print(x)else: print(-x)Входные данные: -57
  • -57
  • 57
  • 0
  • -1
Какой ряд чисел образуется после выполнения следующего алгоритма: for i in range(1,10): print(i)
  • 1 2 3 4 5 6 7 8 9 10
  • 1 2 3 4 5 6 7 8 9
  • 0
Что выведет программа после выполнения данного алгоритма: print('Как Ваша фамилия?')name = input()print('Здравствуйте, '+ name + '!' )Входные данные: Иванов
  • Как Ваша фамилия? Здравствуйте, Иванов!
  • Как Ваша фамилия? Здравствуйте, Иванов
  • Как Ваша фамилия? Здравствуйте, Иванов !
Как обозначается логический оператор И, ИЛИ, НЕ в питоне:
  • OR, NOT, IF
  • AND, OR, NOT
  • AND, OR, IF
  • AND, ELSE, NOT
Что будет в результате выполнения следующего алгоритма программы: a = int(input())b = int(input())if a % 10 == 0 or b % 10 == 0: print('YES')else: print('NO')Входные данные: 1545
  • YES
  • NO
Как будет записано число 18 после выполнения следующего алгоритма: x = float(input())print(x)
  • 18
  • 18.0
  • 18.00
Что будет после выполнения следующего листинга программы:for i in range(4)print(i, end=' ', i ** 2)
  • 0 0 1 1 3 3 4 4
  • 0 0 1 1 2 4 3 9
  • 0 0 1 1 2 2 3 3
Результатом выполнения алгоритма будет:i = 1while i <= 10: print(i ** 2) i = i + 1
  • 1 2 4 8 12 14
  • 1 2 16 24 32
  • 1 4 9 16 25 36 49 64 81 100
Co to jest Python?
  • język programowania
  • edytor tekstowy
  • system operacyjny
if warunek: kodelse: kodjest:
  • pętlą
  • warunkiem
  • nie ma czegoś takiego
Do wyświetlania służy funkcja
  • print()
  • input()
  • int()
co będzie wynikiem kodu:x = 3.23print("x")
  • x
  • błąd
  • 3.23
co będzie wynikiem kodu:x = 3.23print(x)
  • x
  • błąd
  • 3.23
Czym wyświetlisz tekst "Hello World"w interpreterze?Poprawne w wersji języka stosowanej na zajęciach
  • print("Hello World")
  • print "Hello World"
  • print "Hello World";
  • print["Hello World"]
Aby wprowadzić dane z klawiatury należy użyć funkcji:
  • print
  • input
  • int
  • string
Algorytmem nie jest
  • Przepis na ugotowanie jajka na miękko
  • Instrukcja obsługi pralki
  • Malowanie obrazu artystycznego
  • Opis dotarcia z domu do szkoły
Jaki napis zostanie zwrócony przez kod:a="Jaki jest dzisiaj dzień?"print (a)
  • Litera "a"
  • Wyraz "piątek"
  • Zawsze bieżący dzień tygodnia
  • Tekst: Jaki jest dzisiaj dzień?
Co wyświetli poniższy kod:a = 5b = 4if a == 4 and b == 5:  print ("Prawda")else:    print ("Fałsz")
  • Prawda
  • True
  • Fałsz
  • cyfry "4" i "5"
The second part of if, that is executed when the condition is false
  • if
  • else
  • for
  • input
Data type that can only be true or false
  • int
  • string
  • bool
  • float
A variable that can hold a collection of values, often called an array in other programming languages
  • list
  • int
  • string
  • constant
Converts a number to a string
  • str()
  • int()
  • parseInt()
  • convert
What will the output be from the following code?print(3*4)
  • 34
  • 7
  • 12
  • 3*4
What will the output be from the following code?print("Hello" + "world!")
  • Hello world!
  • Helloworld!
  • SyntaxError
  • "Hello" "world!"
Which Python command is used to output information to the screen?
  • read
  • output
  • print
  • display
When you have an error in your code what is the term to summarise finding and fixing that error?
  • Error checking
  • Debugging
  • Syntax finder
  • Error finder
people = ["John", "Rob", "Bob"]print (people[4]) what would this result be?
  • John
  • Rob
  • Bob
  • Error
To allow users to enter data we use the _________ function
  • Print
  • Input
  • print
  • Variable
To display information to the user we use the _________ function.
  • print
  • Input
  • PRINT
  • imput
Which data type stores whole numbers?
  • Float
  • String
  • Integer
  • Char
Which data type stores decimal numbers?
  • Float
  • String
  • Char
  • Integer
True or False - You can store multiple values in a variable at any one time.
  • True
  • False
To start a flowchart you use the __________ symbol.
  • Decision
  • Process
  • Start
  • Terminator
What is Selection?
  • A decision or question
  • A button
  • An answer
  • A question
What is a sequence?
  • A decision or question
  • An ordered list
  • A set of step by step instructions that are carried out in the correct order.
  • A set of step by step instructions that are carried out in the incorrect order.
What are the two types of Iteration?
  • Count Controlled, Condition Controlled
  • Chloe Controlled, Charlotte Controlled
  • Counted Controlled, Condition Controlled
  • Controlled Count, Controlled Condition
What is a Syntax Error?
  • Correct Spelling and Grammar
  • A spelling or grammatical mistake
  • A spelling mistake
  • A variable
Choose the correct code
  • print("Hello World")
  • PRINT(Hello World)
  • Print("Hello World")
  • Print"Hello world"
Choose the correct code
  • favourite colour = imput("What is your fave colour?")
  • Favourite_Colour = imput("What is your fave colour?")
  • Favourite_Colour=input("What is your fave colour?")
  • fave colour=inpu("What is your fave colour?")
Choose the correct variable
  • Fave_Colour + ("Purple")
  • Favourite_Colour = Purple
  • Favourite_Colour = ("Purple")
  • fave colour = purple
What will the output be from the following code?name=input("enter your name = ")surname=input("enter your surname=")print("welcome",name,surname)
  • Enter your name = omerenter your surname = korkmazwelcome name and surname
  • enter your name = omerenter your surname = korkmazwelcome omer korkmaz
  • name and surnamewelcome omer korkmaz
  • Welcome
Data type for a whole number
  • String
  • Integer
  • Boolean
  • Float
To solve a problem that requires the user to enter 10 numbers would use what type of iteration?
  • While loop
  • For loop
  • Variable
  • Selection
What function is used to let the user answer a question?
  • Open
  • Print
  • Answer
  • Input
What will the output be from the following code?number=int(input("enter a number = ")) --->9for x in range(3,number,2): print(x)
  • enter a number = 90123456789
  • enter a number = 92468
  • enter a number = 93579
  • enter a number = 9357
When the following for loop is complete, how many spaces will Tracy have moved?
cs-2 sb-1-Pythonimg_no 782.jpg
  • 50 spaces
  • 60 spaces
  • 10 spaces
  • 5 spaces
Suppose you write a function. How many times can you call the function in your code?
  • Once
  • Not more than the number of commands the function holds
  • It depends on the function
  • As many times as you want
In which of the following situations would it be best to make a function?
  • You want Tracy to draw a blue line, and your program requires lots of blue lines.
  • You need Tracy to move forward by 100.
  • You need Tracy to turn right and then turn left.
  • You need to change Tracy’s color.
Suppose you want to make Tracy draw a mountain range, like the one shown below, starting from the left side. Which of the following functions would be the most useful function to write in order to solve this problem?
cs-2 sb-1-Pythonimg_no 787.jpg
  • # Has Tracy draw a single triangledef make_triangle():
  • # Change's Tracy's color to reddef change_to_red():
  • # Moves Tracy forward by 100def move_100():
  • # Draws a squaredef my_function():
Which of the following is NOT a command you can give to Tracy?
  • color
  • turn
  • backward
  • left
Which of the statements below is true about indentation in Python?
  • Indentation only matters in for loops. Then, everything must be indented one level.
  • Indentation never matters in Python. You can align your code any way you like, but indentation makes your code easier to read.
  • Indentation always matters in Python. Every statement must be aligned correctly.
  • Indentation only matters in functions. Then, everything must be indented one level.
Which of the following statements are true about for loops?I. By default, the range function starts at 0 II. Using for i in range(4) will result in i taking the values 0, 1, 2, 3, 4 III. For loops let you repeat something any number of times IV. Statements in a for loop do not need to be indented V. It is not possible to have the range value count 6, 12, 18, 24 VI. It is not possible to have the range values count 1, 2, 4, 8, 16
  • I, III, VI
  • I, II, III, VI
  • I, II, III, V, VI
  • I, III
Which of the following is NOT a purpose of using functions?
  • Functions let Tracy do new things.
  • Functions help group statements together to make your code more readable.
  • Functions let you execute code a fixed number of times.
  • Functions allow the programmer to reuse code.
What is the difference between defining and calling a function?
  • Defining a function means you are teaching the computer a new word. Calling a function means you are commanding the computer to complete defined actions.
  • There is no difference.
  • Calling a function means you are teaching the computer a new word. Defining a function means you are commanding the computer to complete defined actions.
  • Defining a function must be done each time you want to use the function. Calling a function can only happen once in your code.
What does the number in the parentheses in a forward or backward command represent?
  • How many degrees Tracy is supposed to turn
  • How fast Tracy is supposed to move
  • How many times Tracy should repeat the command
  • How far Tracy is supposed to move
What control structure would be best to use in the following code?
cs-2 sb-1-Pythonimg_no 792.jpg
  • A function
  • A while loop
  • A for loop
  • An if/else statement
Which of the following commands can be used to turn Tracy to face North if she is initially facing South?
  • left(90) right(90)
  • right(180)
  • right(90) left(180)
  • left(360)
What shape will be drawn with the following command? circle(50, 360, 3)
  • A circle
  • A hexagon
  • A triangle
  • A diamond
How can we use variable to control the size of a circle?
  • radius = 50 circle(radius)
  • radius = circle(50)
  • circle(radius) radius = 50
  • radius = 50 circle(50)
Can a user’s input control the size of a circle? If so, how?
  • No, user input is a string.
  • Yes circle(user_input=50)
  • Yes radius = int(input("Radius: ")) circle(radius)
  • Yes radius = input("Radius: ") circle(radius)
What will be the output of the following program?
cs-2 sb-1-Pythonimg_no 805.jpg
  • Three circles with radii of 3, 7 and 2.
  • Three shapes- a triangle (3 sides), a heptagon (7 sides), and a line (2 sides).
  • Three shapes- a triangle (3 sides), a pentagon (5 sides), and a heptagon (7 sides).
  • Two shapes- a triangle (3 sides) and a pentagon (5 sides).
What will be the radii of the circles drawn from the following code?
cs-2 sb-1-Pythonimg_no 806.jpg
  • 10, 20, 30, 40, 50
  • 10, 15, 20, 25, 30, 35, 40, 45, 50, 55
  • 10, 55, 10
  • 10, 20, 30, 40, 50, 55
What will this python code do?print("Hello, World")
  • Display Hello, World
  • Sent a message to our printer to print Hello, World in a paper
  • Display "Hello, World"
  • Nothing its syntax is wrong
how do we assign to the variable x a value of 5?
  • var x = 5;
  • var x = 5
  • x = 5
  • (x) == 5
Whats wrong with the script below?print(a+b)a = 5b = 10
  • The program doesn' t now what a and b is.
  • The print function should be print("a+b")
  • The print function should be print(a + b)
click the correct if function:
  • if x = 5:
  • if x = num(5):
  • if x == 5:
  • if x = float(num(5)):
Whats the correct boolean type:
  • x == 5
  • x = 5
  • x = condition(True)
  • x = True
  • x == True
why will the following script won't work?user_input1 = input("Enter a number: ")user_input2 = input("Enter a second number: ")print(user_input1 + user_input2)
  • Because variables cannot be longer than 1 word
  • Because user_input1 and user_input2 is a string
  • Because input is an invalid function
  • Because python will always thing that it has to add 1+2
  • It will work
Which of the following is a GUI extension for python (Graphical User Interface)
  • extension.py.gui
  • Python.gui
  • tkinter
  • root
what is the following:x = [3, 5, 7, 10, 9]
  • A boolean
  • A tuple
  • A list
  • A string
How many times will the following code execute:i = 0while i <= 10:print(i)i += i
  • Infinity
  • None because <= isnt valid
  • 10
  • 9
When we get an input what type of variable is it?Examble:input_var = input("Input: ")
  • float
  • string
  • int
  • key
In the below function how is the the thing inside the brackets called:def handle_turn(current_turn):
  • Parameter
  • Condition
  • Info
  • Def info
  • String
in:import randomwhats random?
  • function
  • module
  • External_function
  • External_module
  • I.E (Importable Element)
Which of the following is correc tif x is a boolean and we want to check if x is equal to True.
  • if x == "True":
  • if x == True:
  • if x:
  • if x = True:
What will the below line of code print?print(3**2)
  • 9
  • 12
  • 10
  • 5
Which code will work?1) num1 = input("Number 1")num2 = input("Number 2")print(num1+num2)2)num1 = float(input("Number1")num2= float(input("Number 2")print(num1+num2)
  • 1
  • 2
What will the code below print if num1 = 5 and num2 = 8?num1 = input("Number 1")num2 = input("Number 2")print(num1+num2)
  • 85
  • 58
  • 5+8
  • None of the above
Which command will Tracy perform when given the following code?
cs-2 sb-1-Pythonimg_no 807.jpg
  • forward(200)
  • backward(200)
  • forward(201)
  • backward(201)
Which command will Tracy perform when given the following code?
cs-2 sb-1-Pythonimg_no 808.jpg
  • forward(10)
  • backward(10)
  • backward(10) circle(10)
  • circle(10)
What will be the output of the following code?
cs-2 sb-1-Pythonimg_no 809.jpg
  • 5 circles in a row
  • 4 circles in a row
  • A slinky with 5 circles
  • An infinite loop will occur
Для виводу повідомлення на екран консолі використовують таку функцію:
  • input()
  • print()
  • int()
  • string()
Для перетворення данних в числові використовується така функція:
  • string()
  • int()
  • input()
  • str()
Для перетворення даних в текст використовується така функція:
  • print()
  • int()
  • str()
  • input()
> – цей знак означає
  • більше
  • більше рівне
  • менше рівне
  • менше
Що буде виведено на екран?
cs-2 sb-1-Pythonimg_no 767.jpg
  • 45+2
  • 42
  • 47
  • 5
Що буде виведено на екран?
cs-2 sb-1-Pythonimg_no 768.jpg
  • 42-5
  • Rodion
  • Mamkin hazker
  • Mamkin hatzker!
Як під'єднати модуль "черепашки"?
  • from turtle
  • from turtle import
  • from tаrtle import*
  • from turtle import*
На скільки градусів потрібно здійснювати поворот "черепашці", щоб намалювати правильний трикутник?
  • 60
  • 120
  • 90
  • 50
Де, за замовчуванням, знаходиться "черепашка"?
  • (0, 50)
  • (0, 0)
  • (-100, 0)
  • (-50, 0)
Що робитиме ''черепашка'' після виконання команди forward(300) ?
  • Проповзе 300 кроків в заданому напрямку
  • Проповзе 300 кроків вниз
  • Проповзе 300 кроків вгору
Що намалює '''черепашка'?
cs-2 sb-1-Pythonimg_no 769.jpg
  • Квадрат
  • Коло
  • Трикутник
  • Зигзаг
Що таке змінна? (виберіть найточніше)
  • Величина, яка має свою назву та певне змінне значення
  • Вид програми, в яких змінюються дані
  • Величина, що здатна змінюватися протягом роботи програми
  • Число, що має свою назву
Який клас даних позначають як іnt?
  • текстовий рядок
  • цілі числа
  • дробові числа
  • натуральні числа
Який рядок є правильним позначенням змінної в мові програмування Python?
  • user_name=х
  • а==64
  • 1а=64
  • ?а=6.4
Яку конструкцію коду потрібно застосувати для запиту цілого числа у користувача з повідомленням "a="?
  • int(input(a=))
  • input("a=")
  • int(input("a = "))
  • int(input("a=")
а=20//7 і х=20%7
  • частка від ділення 2, остача 6
  • частка від ділення 3, остача 1
  • частка від ділення 6, остача 2
Какой язык программирования ты учил последние полгода?
  • Python
  • Delphi
  • C/C++
  • PHP
Для вывода сообщений на екран консоли используеться функция:
  • input()
  • print()
  • int()
  • string()
Для преоброзования даных в число испульзуется функция:
  • string()
  • print()
  • input()
  • int()
Для развлетвения используется:
  • if
  • while
  • for
  • def
Что будет выведено на экран?
cs-2 sb-1-Pythonimg_no 793.jpg
  • 42 + 5
  • 42
  • 47
  • 5
Что будет выведено на экран?
cs-2 sb-1-Pythonimg_no 794.jpg
  • 42 + 5
  • 42
  • Mamkin hatzker!
  • Rodion
Что будет выведено на экран?
cs-2 sb-1-Pythonimg_no 795.jpg
  • You are a Rodion! I don't know you!
  • You are a stranger! I don't know you!
  • Hello, Kyrylo!
  • Hello, Rodion!
Что будет выведено на экран?a = 5b = 6print(a)
  • 5
  • 6
  • 11
  • 1
Что будет выведено на экран в результате выполнения фрагмента программыa = 4b = 6print(a*b)
  • 24
  • 12
  • 6
  • a*b
Чему равно "a" после выполнения программы?a = 2If a<3: print(a+1)else: print(a-1)
  • 3
  • 2
  • 1
  • 0
Что такое input?
  • Оператор вывода данных
  • Оператор присваивания
  • Оператор ввода данных
  • Не знаю
Чему равно b после выполнения программы?b = 2if b > 4: b = b + 2
  • 4
  • 2
  • 0
  • нет правильного ответа
Чему равно c ?a = 2b = 5if a > b: c = aelse: c = b
  • 2
  • 5
  • нет правильного ответа
  • 0
print (2**5) Что появится на экране после выполнения этой инструкции?
  • 10
  • 100
  • 32
  • 0.4
print (20//3)Что появится на экране после выполнения этой инструкции?
  • 2
  • 6
  • 6.6666
  • 60
print (20%3)Что появится на экране после выполнения этой инструкции?
  • 6
  • 2
  • 6.666666
  • 60
if a%2==0: a = a**2Что означает эта инструкция?
  • если число а - четное, возвести его в квадрат
  • если число а - не четное, возвести его в квадрат
  • если число а - четное, умножить его на 2
  • если число а - не четное, умножить его на 2
Что означает эта инструкция: a = int ( input() )
  • ввод пользователем целого числа
  • ввод пользователем вещественного числа
  • ввод пользователем символа
Что получится в результате выполнения этой инструкции?n = 1238d = n // 10 k = n % 10 print (d, k)
  • 123; 8
  • 12; 38
  • 123, 8
Вы получили подозрительную ссылку. Что будете делать?
cs-2 sb-1-Pythonimg_no 796.jpg
  • Не переходить по ней
  • Перейти и посмотреть
  • Проверить содержимое сайта на вирусы
  • Все выше перечисленное
На электронную почту пришло письмо с неизвестного адреса с сообщением о высокооплачиваемой работе и ссылка на ресурс. Как поступить?
cs-2 sb-1-Pythonimg_no 797.jpg
  • Проверить ресурс на наличие работы
  • Удалить письмо
  • Проверить письмо антивирусной программой
Почему нужно быть осторожным при пользовании свободным Wi-Fi?
cs-2 sb-1-Pythonimg_no 798.jpg
  • Снижается скорость работы 
  • Незащищенный Wi-Fi  может взломать любой, у кого есть специальное ПО
  • Воздух содержит много вредных микробов, вирусов и инфекций.
Какую цель преследует такая угроза как фишинг?
cs-2 sb-1-Pythonimg_no 799.jpg
  • Перенаправлять любые запросы пользователя в браузере на хакерский сайт о рыбалке
  • Использование вод мирового океана для глобального распространения вредоносных вирусов
  • Обманным путем выудить у пользователя данные, позволяющие получить доступ к его учетным записям
При создании пароля вы ...
cs-2 sb-1-Pythonimg_no 800.jpg
  • Копируете логин
  • Используете буквы, цифры и символы
  • Основываетесь на словарных словах
  • Используете личные данные
Облачные технологии
  • это модель обеспечения удобного (автоматизированного) сетевого доступа по требованию к общему фонду конфигурируемых вычислительных ресурсов, которые могут быть оперативно предоставлены
Инновационная технология, которая позволяет объединять ИТ-ресурсы различных аппаратных платформ в единое целое и предоставлять пользователю доступ к ним через локальную сеть или через интернет, называется:
  • облачное приложение
  • облачные хранилища
  • облачные технологии
Что из списка не является облачным хранилищем?
  • Яндекс.Диск
  • Dropbox
  • Google Docs
  • Kahoot
Какой из перечисленных сервисов является виртуальной галереей?
  • Google Hangouts
  • Google Keep
  • Google Arts & Culture
в СССР подключение к сети Интернет осуществилось в
  • 1990
  • 1993
  • 1985
  • 1970
Глобальная сеть - ...
  • WAN - Wide Area Network
  • VPN - Virtual Private Network
  • IAN - Internet Area Network
  • LAN - Local Area Network
Выберите корректный адрес электронной почты.
  • ivan_petrov@mail.ru
  • ivanpetrov.mail.ru
  • ivanpetrov@mail
  • ivan_petrov.mail.ru
DevOps-инженер кто это?
  • специалист, который проектирует, создает, тестирует, подсоединяет и обслуживает схемы/структуры и системы управления сетями, применяемые в сетях передачи данных.
  • специалист, который работает на стыке этих двух должностей и занимается автоматизацией жизненного цикла приложения (включая проектирование, разработку, тестирование, развертывание, поддержку и мониторинг).
  • специалист, должностные обязанности которого подразумевают обеспечение штатной работы парка компьютерной техники, сети и программного обеспечения.
Правда ли, что  с 1918 по 1935 годы елка, как символ Рождества, в России находилась под запретом?
cs-2 sb-1-Pythonimg_no 802.jpg
  • Да
  • Нет
  • Такого не может быть!
Белорусского деда Мороза называют...
  • Морозун
  • Морозяка
  • Зюзя
  • Заморозник
Как величали сурового предшественника современного русского Деда Мороза?
cs-2 sb-1-Pythonimg_no 803.jpg
  • Дед Колотун
  • Дед Трескун
  • Дед Въюговей
  • Дед Зимостой
Что это такое?
cs-2 sb-1-Pythonimg_no 804.jpg
  • TeamSpeak
  • Skype
  • Discord
  • Teamviewer
Что будет выведено на экран?
cs-2 sb-1-Pythonimg_no 805.jpg
  • 42 + 5
  • 42
  • 47
  • 5
Что будет выведено на экран?
cs-2 sb-1-Pythonimg_no 806.jpg
  • 42 + 5
  • 42
  • Mamkin hatzker!
  • Rodion
Что будет выведено на экран?
cs-2 sb-1-Pythonimg_no 807.jpg
  • You are a Rodion! I don't know you!
  • You are a stranger! I don't know you!
  • Hello, Kyrylo!
  • Hello, Rodion!
Вы получили подозрительную ссылку. Что будете делать?
cs-2 sb-1-Pythonimg_no 808.jpg
  • Не переходить по ней
  • Перейти и посмотреть
  • Проверить содержимое сайта на вирусы
  • Все выше перечисленное
На электронную почту пришло письмо с неизвестного адреса с сообщением о высокооплачиваемой работе и ссылка на ресурс. Как поступить?
cs-2 sb-1-Pythonimg_no 809.jpg
  • Проверить ресурс на наличие работы
  • Удалить письмо
  • Проверить письмо антивирусной программой
Почему нужно быть осторожным при пользовании свободным Wi-Fi?
cs-2 sb-1-Pythonimg_no 810.jpg
  • Снижается скорость работы 
  • Незащищенный Wi-Fi  может взломать любой, у кого есть специальное ПО
  • Воздух содержит много вредных микробов, вирусов и инфекций.
Какую цель преследует такая угроза как фишинг?
cs-2 sb-1-Pythonimg_no 811.jpg
  • Перенаправлять любые запросы пользователя в браузере на хакерский сайт о рыбалке
  • Использование вод мирового океана для глобального распространения вредоносных вирусов
  • Обманным путем выудить у пользователя данные, позволяющие получить доступ к его учетным записям
При создании пароля вы ...
cs-2 sb-1-Pythonimg_no 812.jpg
  • Основываетесь на словарных словах
  • Используете личные данные
  • Копируете логин
  • Используете буквы, цифры и символы
Правда ли, что  с 1918 по 1935 годы елка, как символ Рождества, в России находилась под запретом?
cs-2 sb-1-Pythonimg_no 814.jpg
  • Да
  • Нет
  • Такого не может быть!
Как величали сурового предшественника современного русского Деда Мороза?
cs-2 sb-1-Pythonimg_no 815.jpg
  • Дед Колотун
  • Дед Трескун
  • Дед Въюговей
  • Дед Зимостой
Что это такое?
cs-2 sb-1-Pythonimg_no 816.jpg
  • TeamSpeak
  • Skype
  • Discord
  • Teamviewer
What is the position of the name 'Paula' in the following array:names = ["Paul","Phillip","Paula","Phillipa"]
  • 0
  • 1
  • 2
  • 3
What is the word (command) used to output data?
  • print
  • input
  • output
  • command
In programming, what is iteration?
  • The repetition of steps within a program
  • The order in which instructions are carried out
  • A decision point in a program
  • Testing a program to make sure it works
Why is iteration important?
  • It determines the order in which instructions are carried out
  • It allows code to be simplified by removing duplicated steps
  • It allows multiple paths through a program
  • It ensures the code works correctly
Which two statements are used to implement iteration?
  • IF and WHILE
  • ELSE and WHILE
  • FOR and WHILE
  • IF and ELSE
FOR loops are
  • loops which run an unknown number of times
  • loops which run for a specific number of times
  • the same as if statements
  • not part of programming
WHILE loops are
  • loops which run an unknown number of times
  • loops which run for a specific number of times
  • the same as if statements
  • not part of programming
Co to jest Python?
  • edytor tekstowy
  • język programowania
  • system operacyjny
  • zwierzę
if warunek:kodelse:kodjest:
  • warunkiem
  • pętlą
  • nie ma czegoś takiego
co będzie wynikiem kodu:print("2 + 2")
  • 2 + 2
  • 4
  • 8
  • błąd
W jaki sposób zapiszesz warunek: Czy a jest równe b?
  • a==b
  • a!=b
  • a=b
  • a===b
Skąd pochodzi nazwa Python?
  • od imienia psa autora języka
  • od nazwy serialu komediowego ("Latający cyrk Monty Pythona")
  • od zwierzęcia
  • od przezwiska autora języka
Które działanie wskazuje na potęgowanie?
  • 7 // 2
  • 9 / 3
  • 15%3
  • 5**2
Python jest dynamicznym językiem...
  • kompilowanym
  • kodowanym
  • interpretowanym
  • kodującym
0:0:1



Answered

Not Answered

Not Visited
Correct : 0
Incorrect : 0