MCQExams
0:0:1
CBSE
JEE
NTSE
NEET
Practice
Homework
×
Computer Science
Python
What will the output be from the following code?print("Hello world!")
Report Question
0%
SyntaxError
0%
Hello world!
0%
"Hello world!"
0%
print(Hello world!)
What will the output be from the following code?print(3+4)
Report Question
0%
3+4
0%
7
0%
SyntaxError
0%
print(3+4)
print("12"*3)What would this print?
Report Question
0%
36
0%
121212
0%
24
0%
12*3
What will the output be from the following code?print("3+4")
Report Question
0%
7
0%
3+4
0%
34
0%
SyntaxError
What will the output be from the following code?Print("Hello world!")
Report Question
0%
NameError
0%
Hello world!
0%
"Hello world"
0%
Print(Hello world!)
What will the output be from the following code?print("Hello" + "world" + "today")
Report Question
0%
Helloworldtoday
0%
Hello world today
0%
"Hello" "world" "today"
0%
SyntaxError
What will the output be from the following code?print(Hello world!)
Report Question
0%
Hello world!
0%
SyntaxError
0%
Hello world
0%
print(Hello world!)
What will the output be from the following code?print(9/3)
Report Question
0%
3
0%
3.0
0%
9/3
0%
SyntaxError
Which function takes a users input
Report Question
0%
print()
0%
int()
0%
input()
0%
def
A data type consisting of numbers, letters and symbols.
Report Question
0%
String
0%
Integer
0%
Float
0%
Boolean
Which is the most appropriate data type for: "13th December"
Report Question
0%
Float
0%
Boolean
0%
Integer
0%
String
A location in memory used to store data that can be changed.
Report Question
0%
Constant
0%
Value
0%
Variable
0%
Iteration
What is python named after
Report Question
0%
The snake
0%
Television show called Monty Python
Python identifies blocks of code by
Report Question
0%
BEGIN and END keywords
0%
{ and },
0%
aligning up the starts of lines (indentation)
0%
guessing
What will the output be from the following code?print("Hello world!" * 2)
Report Question
0%
TypeError
0%
Hello world world!
0%
Hello world!Hello world!
0%
Hello world! * 2
people = ["John", "Rob", "Bob"]print (people[-1]) what would this result be?
Report Question
0%
John
0%
Rob
0%
Bob
To create a newline at the end of prompt, you can use which of the following expressions?
Report Question
0%
\new
0%
\n
0%
\break
0%
\return
What is a variable?
Report Question
0%
A box(memory location) where you store values
0%
a type of graphics
0%
Data type
0%
a type of memory
What letter will be printed on the screen after running this code:
Report Question
0%
e
0%
x
0%
t
0%
Nothing prints
What extension must you add to the end of a file when saving?
Report Question
0%
.xlsx
0%
.pptx
0%
.docx
0%
.py
What will the output be from the following code?print(3*4+5)
Report Question
0%
27
0%
17
0%
12
0%
SyntaxError
Find T ?T=144 / 2 + 5 * 9 - ( 8 -3 )
Report Question
0%
106
0%
688
0%
112
0%
684
Find the Output:Item = {"ECE" , "CSE" , "EEE" , "CIVIL"},Item.add (2,"MECH")print(Item)
Report Question
0%
{ "ECE" , "MECH" , "CSE" , "EEE" , "CIVIL" },
0%
{ "ECE" , "CSE" , "MECH" , "EEE" , "CIVIL" },
0%
{ "ECE" , "CSE" , "EEE" , "CIVIL" },
0%
{ "ECE" , "CSE" , "EEE" ,"MECH" , "CIVIL" },
Find the Output ?A = "Anand Institute of higher technology"print ( A[-5:7]
Report Question
0%
_Institute of higher techn
0%
nstitute of higher technol
0%
d Institute of higher techn
0%
Institute of higher techno
def.number (r1 , r2)sum = r1 / r2return suma = number (r2 = 15 , r1 = 10)
Report Question
0%
2 / 3
0%
3 / 2
0%
error
0%
2
what is the output of the following code ?var1 = 1var2 = 2var3 = "3"print (var + var2 var3)
Report Question
0%
Error. Mixing operators between numbers and strings are not supported
0%
6
0%
33
0%
123
Which of the following function convert a string to a float in python ?
Report Question
0%
float(X)
0%
int(x[,base])
0%
long(X[,base])
0%
str(X)
what is the output of the following programing ?X = [ 'ab' , 'cd' ]for i in X: i.upper()print (x)
Report Question
0%
[ 'AB' , 'CD' ]
0%
[ 'ab' , 'cd' ]
0%
[ AB , CD ]
0%
ERROR
find p ?p = ( 35 , 46 , 73 , 21 )p.append( -2 , 24 )print (p)
Report Question
0%
( 35 , 46 , 73 , 24 , 21 )
0%
error
0%
( 35 , 46 , 24 , 73 , 21 )
0%
( 35 , 24 , 73 , 21 )
what will be the output of the following python code snippet ?not (10 < 20) and not (10 > 30 )
Report Question
0%
TRUE
0%
FALSE
Find the output ?a = Trueb = Falsec = Falseif a or b and c : print "INFYTQ"else: print "infytq"
Report Question
0%
infytq
0%
INFYTQ
0%
ERROR
What is syntax?
Report Question
0%
Syntax is the word used to describe an error
0%
Syntax is the rules of the programming language
0%
It is used to read information
0%
It is used to output information
What does the following code do? myAge = int (myAge)
Report Question
0%
Converts the var (variable) myAge to a string
0%
Converts the var (variable) myAge to a integer
0%
Converts the var (variable) myAge from a integer to a string
0%
Converts the var (variable) myAge to if statement
Joining elements together to make a string is called what?
Report Question
0%
Combining
0%
Connecting
0%
Concatenation
0%
Stringing
What does the print function do in python?
Report Question
0%
It's a variable.
0%
It can input data.
0%
It displays something like a string or integer
0%
It loops the code.
What symbol do you use to make a comment in Python?
Report Question
0%
@
0%
¬
0%
;
0%
#
Used to create exponents
Report Question
0%
**
0%
"""
0%
%
0%
#
The correct way to write a variable in Python?
Report Question
0%
my_variable = 10
0%
my variable = 10
0%
my_variable is 10
0%
my_variable: 10
102 = 100Which of the following is used in Python to calculate ten squared?
Report Question
0%
10 ** 2
0%
10 * 2
0%
10 % 2
0%
10 ** 10
What will the output be from the following code?print("3*4+5")
Report Question
0%
SyntaxErrror
0%
17
0%
3*4+5
0%
12
What will the output be from the following code?print("Hello" + str(2) + "world!")
Report Question
0%
Hello world! Hello world!
0%
Hello2world!
0%
Hello Hello world! world!
0%
SyntaxError
Python language was developed in what year?
Report Question
0%
1985
0%
2001
0%
1991
0%
1820
Is python an interpreter or compiler programming language?
Report Question
0%
Compiler
0%
Interpreter
Python is uses braces to block off code
Report Question
0%
True
0%
False
Python uses indentation to block code into chunks
Report Question
0%
True
0%
False
Python correct naming convention for constants is?
Report Question
0%
firstName
0%
First_Name
0%
FIRST_NAME
0%
firstname
Python correct naming convention for variables is?
Report Question
0%
new_user25
0%
NewUser25
0%
25_new_user
0%
25NewUser
0%
NEWUSER25
What output will the console show, if 15 and 30 are entered by the user?
Report Question
0%
Syntax error
0%
The sum of the two numbers - 45
0%
The concatenation of the two numbers - 1530
0%
Complier error
What result will display in the shell if 15 and 20 is entered by the user?
Report Question
0%
"num1 + num2"
0%
1520
0%
35
What datatype will the answer be if the user enters 15 and 30?
Report Question
0%
Integer
0%
String
0%
Boolean
0%
Float
What letter will be printed on the screen after running this code:
Report Question
0%
e
0%
x
0%
t
0%
Nothing prints
What is the position of the name "Robert" in the following list:
Report Question
0%
0
0%
1
0%
2
0%
3
What does the APPEND procedure do in the following code:
Report Question
0%
Adds Liverpool to the beginning of the list
0%
Replaces Bristol with Liverpool
0%
Replaces Manchester with Liverpool
0%
Adds Liverpool to the end of the list
In the following code, "city" is an example of a what?
Report Question
0%
List
0%
Loop
0%
Variable
0%
Array
Each item in a list has an "address" or index. The first index in a Python list is what?
Report Question
0%
0
0%
1
0%
a
0%
A
What output will this code produce?
Report Question
0%
['France', 'Wales', 'England']France
0%
['France', 'Wales', 'England']Wales
0%
France, Wales, EnglandWales
0%
France Wales EnglandFrance
What output will this code produce?
Report Question
0%
['France', 'Wales', 'England']Ireland
0%
['France', 'Ireland', 'England']
0%
['France', 'Ireland', 'Wales', 'England']
0%
['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?
Report Question
0%
players.pop[3]
0%
players.delete(3)
0%
players.remove(3)
0%
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?
Report Question
0%
players.add("Bob")
0%
player.append("Bob")
0%
players.append("Bob")
0%
players.addend("Bob")
If you want to create an empty list called colours, which of the following pieces of code is correct?
Report Question
0%
colours = [ ]
0%
colours = ( )
0%
colours = { },
0%
colors = [ ]
What output will this code produce?
Report Question
0%
Exeter
0%
4
0%
6
0%
city
What output will this code produce?
Report Question
0%
4
0%
2
0%
3
0%
5
What output will this code produce?
Report Question
0%
3
0%
20
0%
25
0%
17
What output will this code produce?
Report Question
0%
1
0%
3
0%
2
0%
4
What output will this code produce?
Report Question
0%
1
0%
3
0%
i
0%
0
What output will this code produce?
Report Question
0%
red
0%
['blue', 'green', 'red']
0%
['red', 'green', 'blue']
0%
error
What output will this code produce?
Report Question
0%
['blue', 'green', 'red', 'yellow']
0%
['blue', 'red', 'yellow']
0%
['yellow', 'red', 'green']
0%
['yellow', 'red', 'blue']
What output will this code produce?
Report Question
0%
['blue', 'green', 'red', 'yellow']
0%
['blue', 'red', 'yellow']
0%
['yellow', 'red', 'green']
0%
['yellow', 'red', 'blue']
What output will this code produce?
Report Question
0%
['Bristol', 'Exeter', 'London', 'Manchester']
0%
['Manchester', 'London', 'Exeter', 'Bristol']
0%
['Manchester', 'Bristol', 'Exeter', 'London', ]
0%
['London', 'Exeter', 'Bristol', 'Manchester']
Output of the following code:
Report Question
0%
Syntax Error
0%
ABC@0@@
0%
ABC0@00
0%
None of these
What will the output be from the following code?print("Hello world!\nHello world!")
Report Question
0%
Hello world! Hello world!
0%
Hello world!Hello world!
0%
SyntaxError
0%
Hello world!
Code executed based on a condition being true
Report Question
0%
Sequence
0%
Condition
0%
Iteration
0%
Variable
What is Python named after
Report Question
0%
The snake
0%
Television show called Monty Python
0%
Surname of the creator
0%
Combination of names of the creators
Used to create a function
Report Question
0%
const
0%
int
0%
def
0%
while
What does the term 'debug' mean?
Report Question
0%
Identify errors and fix them
0%
Making a calculation
0%
A set of instructions
0%
Looking at code
If you want more than one option for your code, what do you use (after if)?
Report Question
0%
elif
0%
else
0%
ifif
0%
else if
What would this result be?people = ["John", "Rob", "Bob"]print (people[1])
Report Question
0%
John
0%
Rob
0%
Bob
What is the name of the environment in Python that write your programs and then test them out?
Report Question
0%
Shell
0%
Window
0%
IDLE
0%
CLI
What is the code for a STRING in python?
Report Question
0%
str
0%
stri
0%
stg
What is correct code for INTEGER in python?
Report Question
0%
in
0%
ing
0%
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!”
Report Question
0%
“You are aged to perfection!”
0%
"Wow, you are half a century old!"
0%
"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!”
Report Question
0%
"You are aged to perfection"
0%
"Wow, you are half a century old!"
0%
"You are spring chicken!"
Look at this code, how many times will it loop?
Report Question
0%
3
0%
1
0%
0
0%
4
Look at this code, what shape will it make?
Report Question
0%
Square
0%
Triangle
0%
Rectangle
0%
Hexagon
What is wrong with this code?
Report Question
0%
Missing Brackets
0%
Missing Comma
0%
Missing Colon
0%
Incorrect spelling
What is wrong with this code?
Report Question
0%
Missing Brackets
0%
Missing Comma
0%
Missing Colon
0%
Incorrect spelling
What will be the output from this code?
Report Question
0%
A star with an orange outline
0%
A solid orange star
0%
A pentagon with an orange outline
0%
A solid orange pentagon
What will be the output from this code?
Report Question
0%
A pentagon with an orange outline
0%
A solid orange star
0%
A star with an orange outline
0%
A solid orange pentagon
To stop the turtle drawing you need to use which of the following commands?
Report Question
0%
penup:
0%
pen_up( )
0%
penup( )
0%
penup( ):
To move the turtle to a specific position on the drawing canvas you need to use which of the following commands?
Report Question
0%
set_pos( )
0%
setpos( ):
0%
setpos
0%
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?
Report Question
0%
1, 1
0%
100, 100
0%
0, 0
0%
500, 500
Used to structure code in Python
Report Question
0%
Whitespace
0%
Comments
0%
Booleans
0%
Variables
a data type than can have one of two values: True or False
Report Question
0%
Boolean
0%
Variable
0%
Modulo
0%
Interpreter
What will the output be from the following code?print( 3 + 4 )
Report Question
0%
3 + 4
0%
7
0%
SyntaxError
0%
print( 3 + 4 )
To repeat a fixed number of times use a
Report Question
0%
while loop
0%
for loop
0%
if loop
0%
indentation
The character that must be at the end of the line for if, while, for etc.
Report Question
0%
:
0%
;
0%
.
0%
,
To repeat until a particular condition is true use
Report Question
0%
while loop
0%
for loop
0%
if loop
0%
indentation
Which of these would work as a piece of code?
Report Question
0%
IF answer == "Yes":
0%
if answer == "Yes"
0%
if answer == "Yes":
0%
if answer = "yes":
Python is an example of a....
Report Question
0%
Text-based programming language
0%
Object orientated programming language
0%
language written in java script
0%
Visual-based programming language
What is python?
Report Question
0%
a programming language
0%
DTP software
0%
Spreadsheet software
0%
Computer
What syntax can you use to insert a line break between strings so that they appear over multiple lines?
Report Question
0%
/
0%
\n
0%
\l
0%
n
Python is _____ sensitive which means you must use the same indentation every time.
Report Question
0%
space
0%
colour
0%
code
0%
word
What button do you press to compile (run) your program so that it runs in the shell?
Report Question
0%
F3
0%
F5
0%
F7
0%
F9
Which of these is NOT a loop in python?
Report Question
0%
for loop
0%
while loop
0%
nested loop
0%
if loop
What will this code print?
Report Question
0%
Print the word 'letter'.
0%
Print a user input on one line.
0%
Print a user input one letter at a time.
0%
Print an Error.
What will be the output from this code?
Report Question
0%
A star with an orange outline
0%
A solid orange star
0%
A pentagon with an orange outline
0%
A solid orange pentagon
What will be the output from this code?
Report Question
0%
Square
0%
Triangle
0%
Circle
0%
Rectangle
What is wrong with this code?
Report Question
0%
Missing Brackets
0%
Missing Comma
0%
Missing Colon
0%
Incorrect spelling
What is python?
Report Question
0%
programming language
0%
animal
0%
food
0%
subject
What will this code print?
Report Question
0%
Print the word 'letter'.
0%
Print a user input on one line.
0%
Print a user input one letter at a time.
0%
Print an Error.
What will be the output from this code?
Report Question
0%
A star with an orange outline
0%
A solid orange star
0%
A pentagon with an orange outline
0%
A solid orange pentagon
What will be the output from this code?
Report Question
0%
Square
0%
Triangle
0%
Circle
0%
Rectangle
What is wrong with this code?
Report Question
0%
Missing Brackets
0%
Missing Comma
0%
Missing Colon
0%
Incorrect spelling
What is python?
Report Question
0%
programming language
0%
animal
0%
food
0%
subject
Python shell can be in ________________ways
Report Question
0%
2
0%
3
0%
1
Creating script in python by choose
Report Question
0%
ctrl+n
0%
ctrl+o
0%
ctrl+s
python files are save with extension __________________
Report Question
0%
.py
0%
.xls
0%
.pyn
In python comments begin with ______________ symbol
Report Question
0%
+
0%
#
0%
*
_________________________ are logical operators.
Report Question
0%
AND,OR,NOT
0%
OR , NOT
0%
AND, OR
_____________________ is raw data given in variable or constant.
Report Question
0%
constant
0%
literal
0%
delimiters
Boolean data can have two values______________
Report Question
0%
true or false
0%
0 and 1
0%
right or wrong
Ternary operator is known as _____________
Report Question
0%
relational operator
0%
logical operators
0%
conditional operator
python identifier is case sensitive
Report Question
0%
no
0%
yes
In python there are______________ types of literals
Report Question
0%
2
0%
4
0%
3
С помощью какого значка мы присваиваем значение переменной?
Report Question
0%
=
0%
==
0%
:=
0%
===
Какой из значков используется для возведения в степень?
Report Question
0%
*
0%
^^
0%
^
0%
**
Какая функция используется для вывода в консоль?
Report Question
0%
int()
0%
input()
0%
print()
0%
range()
Какая функция используется для преобразования в целое число?
Report Question
0%
input()
0%
int()
0%
str()
0%
float()
Какая функция используется для ввода данных с клавиатуры?
Report Question
0%
range()
0%
str()
0%
input()
0%
int()
Что будет выведено в консоль в результате работы программы?
Report Question
0%
53
0%
8
0%
TypeError(ошибка)
0%
35
Что будет выведено в консоль в результате работы программы?
Report Question
0%
104
0%
410
0%
TypeError(ошибка)
0%
14
Какую команду надо вставить в строку номер 2 чтобы выходные данные совпали?
Report Question
0%
print("Мне", t, "лет!")
0%
print("Мне " + "t" + " лет!")
0%
print("Мне " + 5 + " лет!")
0%
print(Мне 5 лет!)
Code repeated / looped until a condition has been met or a set number of times.
Report Question
0%
Sequence
0%
Selection
0%
Iteration
0%
Variable
Decides if a string only contains numbers
Report Question
0%
isalpha()
0%
isnumeric()
0%
int()
0%
string()
Tells the interpreter that the code which follows is a function
Report Question
0%
const
0%
int
0%
def
0%
while
people = ["John", "Rob", "Bob"]print (people[1]) what would this result be?
Report Question
0%
John
0%
Rob
0%
Bob
What letter will be printed on the screen after running this code:
Report Question
0%
e
0%
x
0%
t
0%
Nothing prints
What does the APPEND procedure do in the following code:
Report Question
0%
Adds Liverpool to the beginning of the list
0%
Replaces Bristol with Liverpool
0%
Replaces Manchester with Liverpool
0%
Adds Liverpool to the end of the list
What output will this code produce?
Report Question
0%
['France', 'Wales', 'England']France
0%
['France', 'Wales', 'England']Wales
0%
France, Wales, EnglandWales
0%
France Wales EnglandFrance
What output will this code produce?
Report Question
0%
['France', 'Wales', 'England']Ireland
0%
['France', 'Ireland', 'England']
0%
['France', 'Ireland', 'Wales', 'England']
0%
['Ireland', 'Wales', 'England']
What output will this code produce?
Report Question
0%
Exeter
0%
4
0%
6
0%
city
What output will this code produce?
Report Question
0%
3
0%
20
0%
25
0%
17
What output will this code produce?
Report Question
0%
blue
0%
green
0%
red
0%
error
What output will this code produce?
Report Question
0%
['Bristol', 'Exeter', 'London', 'Manchester']
0%
['Manchester', 'London', 'Exeter', 'Bristol']
0%
['Manchester', 'Bristol', 'Exeter', 'London', ]
0%
['London', 'Exeter', 'Bristol', 'Manchester']
To insert an the string "strawberries" in the first position of a list we use
Report Question
0%
fruit.append("strawberries, 1")
0%
fruit.insert("strawberries",0)
0%
fruit.insert(1, "strawberries")
0%
fruit.insert(0, "strawberries")
What will the output be from the following code?print(9/3*2+4-5)
Report Question
0%
19
0%
5.0
0%
0.5
0%
5
What is a Count-Controlled loop?
Report Question
0%
for loop
0%
while loop
Which of these operators means EQUAL TO?
Report Question
0%
'='
0%
'=>'
0%
'<='
0%
'=='
What will be the output of this code?
Report Question
0%
1,2,3,4,5,6,7,8,9,10,11,12
0%
0,2,4,6,8,10
0%
2,4,6,8,10,12
0%
2,4,6,8,10
If i want to continuously check for a correct answer, what loop would i use?
Report Question
0%
for loop
0%
while loop
Which of the following is invalid?
Report Question
0%
_a = 1
0%
__a = 1
0%
__str__ = 1
0%
none of the mentioned
Which of the following is an invalid statement?
Report Question
0%
abc = 1,000,000
0%
a b c = 1000 2000 3000
0%
a,b,c = 1000, 2000, 3000
0%
a_b_c = 1,000,000
What is the output of this expression, 3*1**3?
Report Question
0%
27
0%
9
0%
3
0%
1
We can insert the new item into tuple
Report Question
0%
True
0%
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
Report Question
0%
While loop
0%
Conditional Statement
0%
For loop
What is the word (command) used to display numbers and text on the screen?
Report Question
0%
print
0%
input
0%
output
0%
command
What is the name of the programming language we are learning?
Report Question
0%
Scratch
0%
Python
0%
Pie thin
0%
Scribble
What will be the output?name = "Dave"print (name)
Report Question
0%
Dave
0%
'Dave'
0%
name
0%
(name)
What is Python?
Report Question
0%
text based programming language
0%
word processor
0%
spreadsheet
0%
block based programming language
The number or word we give to a variable
Report Question
0%
Value
0%
Bug
0%
Information
0%
Text
What symbol is used in python to assign values to a variable?
Report Question
0%
equals =
0%
plus +
0%
forward slash /
0%
asterisk *
If you want to create an empty list called colours in Python, which of the following is correct?
Report Question
0%
colours = [ ]
0%
colours = ( )
0%
colours = { },
0%
colours = <>
What will the output be from the following Python code?Print("Hello world!")
Report Question
0%
NameError
0%
Hello world!
0%
"Hello world"
0%
Print(Hello world!)
What is the function of the secondary memory in a computer?
Report Question
0%
Execute all of the computation and logic of the program
0%
Retrieve web pages over the Internet
0%
Store information for the long term, even beyond a power cycle
0%
Take input from the user
What is a program?
Report Question
0%
A sequence of Phyton statements
0%
An interpreter that translates code
0%
A group of codes
0%
A low-level conceptual pattern
What is the difference between a compiler and an interpreter?
Report Question
0%
A compiler translates one statement at a time into a machine code.
0%
A compiler translates the entire program into machine code at once.
0%
A compiler compiles the given statements into machine code.
0%
There is no difference between them.
Which of the following contains "machine code"?
Report Question
0%
The Python interpreter
0%
The keyboard
0%
Python source file
0%
A word processing document
Where in the computer is a variable such as "x" stored after the following Python line finishes? x = 123
Report Question
0%
CPU
0%
Main Memory
0%
Secondary Memory
0%
Input Devices
What will the following program print out:x = 43x = x + 1print(x)
Report Question
0%
43
0%
44
0%
x+1
0%
Error message
Why is it called 'Python'?
Report Question
0%
The guy who created it loves snakes
0%
The guy who created it loves Monty Python films
0%
You can create a game on python called snake
0%
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?
Report Question
0%
Computer Engineering
0%
Computer Programming
0%
Computer Processing
0%
Computer Science
What command is this shape for?
Report Question
0%
START / STOP
0%
INPUT / OUTPUT
0%
PROCESS
0%
DECISION
What does this shape represent?
Report Question
0%
Input/Output
0%
Decision
0%
Process
0%
Start/Stop
What does this shape represent?
Report Question
0%
Decission
0%
Process
0%
Input/Output
0%
Start/End
What Python command lets the user enter an answer to a question?
Report Question
0%
answer()
0%
open()
0%
print()
0%
input()
What will be the output?name = 'Dave'greeting = "Good morning" + nameprint (greeting)
Report Question
0%
Good moning 'Dave'
0%
Good morning Dave
0%
Good morning name
0%
Good morning + Dave
What letter will be printed on the screen after running this code:
Report Question
0%
e
0%
x
0%
t
0%
Nothing prints
What does the APPEND procedure do in the following code:
Report Question
0%
Adds Liverpool to the beginning of the list
0%
Replaces Bristol with Liverpool
0%
Replaces Manchester with Liverpool
0%
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?
Report Question
0%
0
0%
1
0%
a
0%
A
What output will this code produce?
Report Question
0%
4
0%
2
0%
3
0%
5
What output will this code produce?
Report Question
0%
3
0%
20
0%
25
0%
17
What output will this code produce?
Report Question
0%
1
0%
3
0%
2
0%
4
What is the Python built-in function to converts a number to a string?
Report Question
0%
str()
0%
int()
0%
parseInt()
0%
convert
Which of these is correct Python conditional statement?
Report Question
0%
IF answer == "Yes":
0%
if answer == "Yes"
0%
if answer == "Yes":
0%
if answer = "yes":
What output will this code produce?
Report Question
0%
['France', 'Wales', 'England']Ireland
0%
['France', 'Ireland', 'England']
0%
['France', 'Ireland', 'Wales', 'England']
0%
['Ireland', 'Wales', 'England']
What output will this code produce?
Report Question
0%
['Bristol', 'Exeter', 'London', 'Manchester']
0%
['Manchester', 'London', 'Exeter', 'Bristol']
0%
['Manchester', 'Bristol', 'Exeter', 'London', ]
0%
['London', 'Exeter', 'Bristol', 'Manchester']
What output will this code produce?
Report Question
0%
red
0%
['blue', 'green', 'red']
0%
['red', 'green', 'blue']
0%
error
The program above
Report Question
0%
prints all the odd numbers between 1 and 20
0%
prints all even numbers between 1 and 20
0%
print all the odd numbers between 1 and 21
0%
prints all the even numbers between 1 and 21
The above program prints
Report Question
0%
Numbers 1 to 10 in reverse order
0%
Numbers 1 to 11 in reverse order
0%
Numbers 1 to 10
0%
Numbers 1 to 11
The code above prints all numbers between 1 and 30 that are
Report Question
0%
not divisible by 5
0%
divisible by 5
The program above prints the sum of
Report Question
0%
all odd numbers less than 100
0%
all even numbers less than 100
0%
all numbers less than 100
The program above prints the sum of all the numbers between 0 and 101 that are
Report Question
0%
alternate odd numbers
0%
alternate even numbers
0%
alternate numbers
The program above prints each number between 1 and 10
Report Question
0%
as many times as the number itself
0%
10 times
0%
11 times
The program above prints each number between 1 and 10
Report Question
0%
as many times as the number itself
0%
10 times
0%
11 times
How many times will 1 be printed
Report Question
0%
3
0%
4
0%
5
0%
6
What is the output of the program above
Report Question
0%
10
0%
15
0%
18
0%
17
0%
16
What is the value of the variable sum after the code above executes
Report Question
0%
54
0%
44
0%
64
0%
34
0%
74
What does this program print
Report Question
0%
2 + 2 = 44 + 4 = 88 + 8 = 1616 + 16 = 3232 + 32 = 64
0%
2 + 2 = 42 + 2 = 42 + 2 = 42 + 2 = 42 + 2 = 4
0%
2 + 2 = 42 + 4 = 62 + 6 = 82 + 8 = 102 + 10 = 12
0%
2 + 2 = 42 + 2 = 42 + 2 = 42 + 2 = 4
0%
2 + 2 = 42 + 4 = 62 + 6 = 82 + 8 = 10
Who developed Python?
Report Question
0%
Ritche
0%
Guido Van Rossum
0%
Bill Gates
0%
Sunder Pitchai
In Python, the script mode programs can be stored with the extension.
Report Question
0%
.pyt
0%
.pyn
0%
.pn
0%
.py
Which mode displays the python code result immediately?
Report Question
0%
Script
0%
Compiler
0%
Interactive
0%
Program
Which of the following used to develop and run Python code?
Report Question
0%
GUI
0%
Command prompt
0%
CUI
0%
IDLE
Which of the following defines the Python interactive mode of programming?
Report Question
0%
>>>
0%
>>
0%
<<
0%
<<<
How many ways python program can be written?
Report Question
0%
1
0%
2
0%
3
0%
4
Which of the following shortcut is used tocreate new Python Program?
Report Question
0%
Ctrl + F
0%
Ctrl + N
0%
Ctrl + B
0%
Ctrl + V
What is the name of the programming language we are learning?
Report Question
0%
Scratch
0%
Python
0%
Pie thin
0%
Scribble
A python function is coloured
Report Question
0%
Pink
0%
Purple
0%
Green
0%
Blue
A Python string is coloured
Report Question
0%
Green
0%
Purple
0%
Blue
0%
Pink
A function can be described as
Report Question
0%
an instruction to the computer
0%
a set of characters like letters and numbers
0%
An error message you received when the code is wrong
0%
What the user will see on the screen
Will the following line of code work:print('hello")
Report Question
0%
Yes
0%
No
Variables are used to
Report Question
0%
give the computer a set of instructions
0%
make writing code easier and quicker
0%
Ask the user a question
0%
Vary the amount of data inputted
A variable must be assigned a name
Report Question
0%
True
0%
False
If the following code was used, the user would see:print("Harry" + " " + "Potter")
Report Question
0%
HarryPotter
0%
Harry Potter
0%
Error Message
0%
harry potter
To ask the user a question, you must use
Report Question
0%
an input
0%
a question mark
0%
correct grammar
0%
capital letters
Python can use used as a calculator
Report Question
0%
True
0%
False
The Len Function
Report Question
0%
Counts all the characters in the string
0%
Only counts the letters used in the string
0%
Doesn't count anything
0%
Only counts the numbers used in a string
Which statement correctly assigns the string "Tanner" to the variable name?
Report Question
0%
name = print( "Tanner")
0%
input("Tanner")
0%
name = "Tanner"
0%
name = input("Tanner")
Which of the following is a correctly-formatted comment?
Report Question
0%
#Comment
0%
&Comment
0%
""Comment""
0%
!Comment
What is an "int"?
Report Question
0%
an integer or whole number
0%
the words printed to the screen
0%
the function used to print
0%
when two numbers are added together
What does the function "print" do?
Report Question
0%
A string
0%
Allows a string to show up on the screen
0%
A whole number
0%
Allows a number to be added to another
What does the function "input" do?
Report Question
0%
Allows the user to print a string
0%
Allows a string to be added to another string
0%
Stores numbers
0%
Allows an answer to be inserted into the computer by the user
What is a string?
Report Question
0%
An integer or whole number
0%
A sequence of characters
0%
A question
0%
The answer to a question that you typed in
the function .lower() does what?
Report Question
0%
changes everything to upper case
0%
changes everything to lower case
0%
changes everything to a number
0%
changes everything to symbols
The function .upper() does what?
Report Question
0%
replaces all text
0%
replaces some text to what you want it to say
0%
changes everything to upper case
0%
changes everything to lower case
What does the function .replace() do?
Report Question
0%
changes everything from upper to lower case
0%
only replaces numbers
0%
replaces what you tell it to, to something else you want
0%
replaces the whole sentence
the program in the picture will print to the screen:
Report Question
0%
Hello my name is Eliza
0%
Hello, my name is Eliza
0%
Hello, my name is Eliza.
0%
Hi, I'm Eliza
From the picture, what will be the code?
Report Question
0%
ans = input("What is your favorite movie?")print(f"Great! I love {ans}, too.")
0%
ans = print("What is your favorite movie?")print(f"Great! I love {ans}, too.")
0%
ans = input("What is your favorite movie?")print(f"Great! I love Harry Potter too.")
0%
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?
Report Question
0%
So what is your favorite movie?ShrekI love Shrek too.
0%
So what is your favorite movie? ShrekGreat! I love Shrek too.
0%
So what is your favorite movie?Harry PotterGreat! I love Harry Potter too.
0%
So what is your favorite movie?ShrekGreat! I love Shrek too.
Which program would calculate 2 times 4?
Report Question
0%
print("2 x 4")
0%
print(2 x 4)
0%
print(2*4)
0%
int(2*4)
Which of these tells the computer you are using a number?
Report Question
0%
int
0%
print
0%
integer
0%
input
Which of these calculates 6 divided by 3
Report Question
0%
print(6/3)
0%
print("6 divided by 3")
0%
pint(6 - 3)
0%
print(3/6)
Choose the correct use of a variable
Report Question
0%
day = Wednesday
0%
sport = "AFL"
0%
saturday = Saturday
0%
colour = Pink Balloon
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly
Report Question
0%
True
0%
False
Which of the following types of computer languages uses binary code to communicate with the computer?
Report Question
0%
High-level languages
0%
Assembly languages
0%
Machine language
0%
Database languages
Arithmetic Operators - What is + ?
Report Question
0%
Addition
0%
Subtraction
0%
Multiplication
0%
Division
Arithmetic OperatorWhat is a - ?
Report Question
0%
Addition
0%
Subtraction
0%
MultiplicationMultiplication
0%
Modulo
Arithmetic OperatorWhat is a * ?
Report Question
0%
Addition
0%
Subtraction
0%
Multiplication
0%
Modulo
Arithmetic OperatorsWhat is a / ?
Report Question
0%
Addition
0%
Subtraction
0%
Division
0%
Modulo
What would print (10 + 16) produce?
Report Question
0%
20
0%
22
0%
24
0%
26
How do you display text?
Report Question
0%
input
0%
output
0%
print
0%
variable
To display the following on screenHello World!the following command should be used:
Report Question
0%
print(Hello World!)
0%
print("Hello World!")
0%
print("Hello World" + !)
0%
print"(Hello World!)"
Operators used in python:divide, multiply, add, subtract
Report Question
0%
/, *, +, -
0%
div, mul, +, -
0%
\, x, +, -
0%
~, *, +, -
the designation for the code that we make in a programming language is __________.
Report Question
0%
Script
0%
text
0%
image
0%
shape
Python is a __________computer programing language and Scratch is visual-based.
Report Question
0%
picture based
0%
Vision based
0%
ilustration based
0%
text based
X = 3Y = 4Z = X + Yin the formula, X is called as ___________
Report Question
0%
String
0%
Variable
0%
text
0%
Number
Based on the question no 4, What is the program to count the addition
Report Question
0%
print X = 3
0%
print Y
0%
print y = 3
0%
print (Z)
what is the correct program to do the substraction from this data50 - 30 = 20x = 50 y =30 z =x - y
Report Question
0%
print (x)
0%
print (y)
0%
print (z)
0%
print(x-y)
What is the symbol to do the multiplication in python.
Report Question
0%
+
0%
-
0%
*
0%
/
What is the symbol to do the division in python.
Report Question
0%
+
0%
*
0%
/
0%
-
what commands appear when we do the typo
Report Question
0%
repeat again
0%
syntax eror
0%
join again
0%
inform to the teacher
what is the output of this scriptA = 60B = 30C = A / BPrint (C)
Report Question
0%
60
0%
30
0%
B = 30
0%
2.0
Переменная в Python - это
Report Question
0%
величина , которая имеет имя , тип , и значение
0%
значение , которое не имеет имя
0%
величина , которая имеет имя , но не имеет тип и значение
0%
значение, которое имеет имя
Для вывода сообщения на экран используется функция : ...
Report Question
0%
input()
0%
int()
0%
print()
0%
string()
Что будет выведено на экран ?a=5b=6print(a)
Report Question
0%
11
0%
5
0%
6
0%
1
Что будет выведено на экран в результате выполнения фрагмента программы?a=4b=6print(a*b)
Report Question
0%
24
0%
6
0%
12
0%
a*b
Какие из вариантов подойдут в качестве имени для переменной?
Report Question
0%
fg
0%
_d
0%
2s
0%
j 3
Для ввода сообщения на экран используется функция?
Report Question
0%
input()
0%
int()
0%
print()
0%
string()
Целочисленный тип данных в python - ...
Report Question
0%
float
0%
string
0%
int
0%
real
Для преоброзования даных в текст используется функция:
Report Question
0%
string()
0%
input()
0%
print()
0%
int()
> – это следующий знак:
Report Question
0%
больше
0%
меньше
0%
больше или равно
0%
меньше или равно
< – это следующий знак:
Report Question
0%
больше
0%
меньше
0%
больше или равно
0%
меньше или равно
Что будет выведено на экран?
Report Question
0%
42 + 5
0%
42
0%
47
0%
5
Что будет выведено на экран?
Report Question
0%
42 + 5
0%
42
0%
47
0%
5
Что будет выведено на экран?
Report Question
0%
42 + 5
0%
42
0%
47
0%
5
Переменная int:
Report Question
0%
вещественное число
0%
символьная строка
0%
логическая переменная
0%
целое число
Переменная str:
Report Question
0%
символьная строка
0%
логическая переменная
0%
целое число
Переменная float:
Report Question
0%
целое число
0%
вещественное число
0%
логическая переменная
Каков будет результат выполнения int("88"):
Report Question
0%
"88"
0%
88
0%
88.00
Каков будет результат выполнения str(88):
Report Question
0%
"88"
0%
88
0%
88.00
Что будет в результате выполнения команды:a = 20b = a + 5a = b * 100print(a)
Report Question
0%
25
0%
1000
0%
25000
0%
2500
Что будет в результате выполнения следующего действия print(23 % 2)
Report Question
0%
11
0%
1
0%
0
Результатом вычисления print(24 // 3) будет число:
Report Question
0%
4
0%
8
0%
12
Что будет результатом выполнения алгоритма: a = input()b = input()s = a + bprint(s)Если последовательно будет введено 5 и 7.
Report Question
0%
12
0%
57
0%
35
Что будет в результате выполнения следующего алгоритма:x = int(input())if x > 0: print(x)else: print(-x)Входные данные: -57
Report Question
0%
-57
0%
57
0%
0
0%
-1
Какой ряд чисел образуется после выполнения следующего алгоритма: for i in range(1,10): print(i)
Report Question
0%
1 2 3 4 5 6 7 8 9 10
0%
1 2 3 4 5 6 7 8 9
0%
0
Что выведет программа после выполнения данного алгоритма: print('Как Ваша фамилия?')name = input()print('Здравствуйте, '+ name + '!' )Входные данные: Иванов
Report Question
0%
Как Ваша фамилия? Здравствуйте, Иванов!
0%
Как Ваша фамилия? Здравствуйте, Иванов
0%
Как Ваша фамилия? Здравствуйте, Иванов !
Как обозначается логический оператор И, ИЛИ, НЕ в питоне:
Report Question
0%
OR, NOT, IF
0%
AND, OR, NOT
0%
AND, OR, IF
0%
AND, ELSE, NOT
Что будет в результате выполнения следующего алгоритма программы: a = int(input())b = int(input())if a % 10 == 0 or b % 10 == 0: print('YES')else: print('NO')Входные данные: 1545
Report Question
0%
YES
0%
NO
Как будет записано число 18 после выполнения следующего алгоритма: x = float(input())print(x)
Report Question
0%
18
0%
18.0
0%
18.00
Что будет после выполнения следующего листинга программы:for i in range(4)print(i, end=' ', i ** 2)
Report Question
0%
0 0 1 1 3 3 4 4
0%
0 0 1 1 2 4 3 9
0%
0 0 1 1 2 2 3 3
Результатом выполнения алгоритма будет:i = 1while i <= 10: print(i ** 2) i = i + 1
Report Question
0%
1 2 4 8 12 14
0%
1 2 16 24 32
0%
1 4 9 16 25 36 49 64 81 100
Co to jest Python?
Report Question
0%
język programowania
0%
edytor tekstowy
0%
system operacyjny
if warunek: kodelse: kodjest:
Report Question
0%
pętlą
0%
warunkiem
0%
nie ma czegoś takiego
Do wyświetlania służy funkcja
Report Question
0%
print()
0%
input()
0%
int()
co będzie wynikiem kodu:x = 3.23print("x")
Report Question
0%
x
0%
błąd
0%
3.23
co będzie wynikiem kodu:x = 3.23print(x)
Report Question
0%
x
0%
błąd
0%
3.23
Czym wyświetlisz tekst "Hello World"w interpreterze?Poprawne w wersji języka stosowanej na zajęciach
Report Question
0%
print("Hello World")
0%
print "Hello World"
0%
print "Hello World";
0%
print["Hello World"]
Aby wprowadzić dane z klawiatury należy użyć funkcji:
Report Question
0%
print
0%
input
0%
int
0%
string
Algorytmem nie jest
Report Question
0%
Przepis na ugotowanie jajka na miękko
0%
Instrukcja obsługi pralki
0%
Malowanie obrazu artystycznego
0%
Opis dotarcia z domu do szkoły
Jaki napis zostanie zwrócony przez kod:a="Jaki jest dzisiaj dzień?"print (a)
Report Question
0%
Litera "a"
0%
Wyraz "piątek"
0%
Zawsze bieżący dzień tygodnia
0%
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")
Report Question
0%
Prawda
0%
True
0%
Fałsz
0%
cyfry "4" i "5"
The second part of if, that is executed when the condition is false
Report Question
0%
if
0%
else
0%
for
0%
input
Data type that can only be true or false
Report Question
0%
int
0%
string
0%
bool
0%
float
A variable that can hold a collection of values, often called an array in other programming languages
Report Question
0%
list
0%
int
0%
string
0%
constant
Converts a number to a string
Report Question
0%
str()
0%
int()
0%
parseInt()
0%
convert
What will the output be from the following code?print(3*4)
Report Question
0%
34
0%
7
0%
12
0%
3*4
What will the output be from the following code?print("Hello" + "world!")
Report Question
0%
Hello world!
0%
Helloworld!
0%
SyntaxError
0%
"Hello" "world!"
Which Python command is used to output information to the screen?
Report Question
0%
read
0%
output
0%
print
0%
display
When you have an error in your code what is the term to summarise finding and fixing that error?
Report Question
0%
Error checking
0%
Debugging
0%
Syntax finder
0%
Error finder
people = ["John", "Rob", "Bob"]print (people[4]) what would this result be?
Report Question
0%
John
0%
Rob
0%
Bob
0%
Error
To allow users to enter data we use the _________ function
Report Question
0%
Print
0%
Input
0%
print
0%
Variable
To display information to the user we use the _________ function.
Report Question
0%
print
0%
Input
0%
PRINT
0%
imput
Which data type stores whole numbers?
Report Question
0%
Float
0%
String
0%
Integer
0%
Char
Which data type stores decimal numbers?
Report Question
0%
Float
0%
String
0%
Char
0%
Integer
True or False - You can store multiple values in a variable at any one time.
Report Question
0%
True
0%
False
To start a flowchart you use the __________ symbol.
Report Question
0%
Decision
0%
Process
0%
Start
0%
Terminator
What is Selection?
Report Question
0%
A decision or question
0%
A button
0%
An answer
0%
A question
What is a sequence?
Report Question
0%
A decision or question
0%
An ordered list
0%
A set of step by step instructions that are carried out in the correct order.
0%
A set of step by step instructions that are carried out in the incorrect order.
What are the two types of Iteration?
Report Question
0%
Count Controlled, Condition Controlled
0%
Chloe Controlled, Charlotte Controlled
0%
Counted Controlled, Condition Controlled
0%
Controlled Count, Controlled Condition
What is a Syntax Error?
Report Question
0%
Correct Spelling and Grammar
0%
A spelling or grammatical mistake
0%
A spelling mistake
0%
A variable
Choose the correct code
Report Question
0%
print("Hello World")
0%
PRINT(Hello World)
0%
Print("Hello World")
0%
Print"Hello world"
Choose the correct code
Report Question
0%
favourite colour = imput("What is your fave colour?")
0%
Favourite_Colour = imput("What is your fave colour?")
0%
Favourite_Colour=input("What is your fave colour?")
0%
fave colour=inpu("What is your fave colour?")
Choose the correct variable
Report Question
0%
Fave_Colour + ("Purple")
0%
Favourite_Colour = Purple
0%
Favourite_Colour = ("Purple")
0%
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)
Report Question
0%
Enter your name = omerenter your surname = korkmazwelcome name and surname
0%
enter your name = omerenter your surname = korkmazwelcome omer korkmaz
0%
name and surnamewelcome omer korkmaz
0%
Welcome
Data type for a whole number
Report Question
0%
String
0%
Integer
0%
Boolean
0%
Float
To solve a problem that requires the user to enter 10 numbers would use what type of iteration?
Report Question
0%
While loop
0%
For loop
0%
Variable
0%
Selection
What function is used to let the user answer a question?
Report Question
0%
Open
0%
Print
0%
Answer
0%
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)
Report Question
0%
enter a number = 90123456789
0%
enter a number = 92468
0%
enter a number = 93579
0%
enter a number = 9357
When the following for loop is complete, how many spaces will Tracy have moved?
Report Question
0%
50 spaces
0%
60 spaces
0%
10 spaces
0%
5 spaces
Suppose you write a function. How many times can you call the function in your code?
Report Question
0%
Once
0%
Not more than the number of commands the function holds
0%
It depends on the function
0%
As many times as you want
In which of the following situations would it be best to make a function?
Report Question
0%
You want Tracy to draw a blue line, and your program requires lots of blue lines.
0%
You need Tracy to move forward by 100.
0%
You need Tracy to turn right and then turn left.
0%
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?
Report Question
0%
# Has Tracy draw a single triangledef make_triangle():
0%
# Change's Tracy's color to reddef change_to_red():
0%
# Moves Tracy forward by 100def move_100():
0%
# Draws a squaredef my_function():
Which of the following is NOT a command you can give to Tracy?
Report Question
0%
color
0%
turn
0%
backward
0%
left
Which of the statements below is true about indentation in Python?
Report Question
0%
Indentation only matters in for loops. Then, everything must be indented one level.
0%
Indentation never matters in Python. You can align your code any way you like, but indentation makes your code easier to read.
0%
Indentation always matters in Python. Every statement must be aligned correctly.
0%
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
Report Question
0%
I, III, VI
0%
I, II, III, VI
0%
I, II, III, V, VI
0%
I, III
Which of the following is NOT a purpose of using functions?
Report Question
0%
Functions let Tracy do new things.
0%
Functions help group statements together to make your code more readable.
0%
Functions let you execute code a fixed number of times.
0%
Functions allow the programmer to reuse code.
What is the difference between defining and calling a function?
Report Question
0%
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.
0%
There is no difference.
0%
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.
0%
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?
Report Question
0%
How many degrees Tracy is supposed to turn
0%
How fast Tracy is supposed to move
0%
How many times Tracy should repeat the command
0%
How far Tracy is supposed to move
What control structure would be best to use in the following code?
Report Question
0%
A function
0%
A while loop
0%
A for loop
0%
An if/else statement
Which of the following commands can be used to turn Tracy to face North if she is initially facing South?
Report Question
0%
left(90) right(90)
0%
right(180)
0%
right(90) left(180)
0%
left(360)
What shape will be drawn with the following command? circle(50, 360, 3)
Report Question
0%
A circle
0%
A hexagon
0%
A triangle
0%
A diamond
How can we use variable to control the size of a circle?
Report Question
0%
radius = 50 circle(radius)
0%
radius = circle(50)
0%
circle(radius) radius = 50
0%
radius = 50 circle(50)
Can a user’s input control the size of a circle? If so, how?
Report Question
0%
No, user input is a string.
0%
Yes circle(user_input=50)
0%
Yes radius = int(input("Radius: ")) circle(radius)
0%
Yes radius = input("Radius: ") circle(radius)
What will be the output of the following program?
Report Question
0%
Three circles with radii of 3, 7 and 2.
0%
Three shapes- a triangle (3 sides), a heptagon (7 sides), and a line (2 sides).
0%
Three shapes- a triangle (3 sides), a pentagon (5 sides), and a heptagon (7 sides).
0%
Two shapes- a triangle (3 sides) and a pentagon (5 sides).
What will be the radii of the circles drawn from the following code?
Report Question
0%
10, 20, 30, 40, 50
0%
10, 15, 20, 25, 30, 35, 40, 45, 50, 55
0%
10, 55, 10
0%
10, 20, 30, 40, 50, 55
What will this python code do?print("Hello, World")
Report Question
0%
Display Hello, World
0%
Sent a message to our printer to print Hello, World in a paper
0%
Display "Hello, World"
0%
Nothing its syntax is wrong
how do we assign to the variable x a value of 5?
Report Question
0%
var x = 5;
0%
var x = 5
0%
x = 5
0%
(x) == 5
Whats wrong with the script below?print(a+b)a = 5b = 10
Report Question
0%
The program doesn' t now what a and b is.
0%
The print function should be print("a+b")
0%
The print function should be print(a + b)
click the correct if function:
Report Question
0%
if x = 5:
0%
if x = num(5):
0%
if x == 5:
0%
if x = float(num(5)):
Whats the correct boolean type:
Report Question
0%
x == 5
0%
x = 5
0%
x = condition(True)
0%
x = True
0%
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)
Report Question
0%
Because variables cannot be longer than 1 word
0%
Because user_input1 and user_input2 is a string
0%
Because input is an invalid function
0%
Because python will always thing that it has to add 1+2
0%
It will work
Which of the following is a GUI extension for python (Graphical User Interface)
Report Question
0%
extension.py.gui
0%
Python.gui
0%
tkinter
0%
root
what is the following:x = [3, 5, 7, 10, 9]
Report Question
0%
A boolean
0%
A tuple
0%
A list
0%
A string
How many times will the following code execute:i = 0while i <= 10:print(i)i += i
Report Question
0%
Infinity
0%
None because <= isnt valid
0%
10
0%
9
When we get an input what type of variable is it?Examble:input_var = input("Input: ")
Report Question
0%
float
0%
string
0%
int
0%
key
In the below function how is the the thing inside the brackets called:def handle_turn(current_turn):
Report Question
0%
Parameter
0%
Condition
0%
Info
0%
Def info
0%
String
in:import randomwhats random?
Report Question
0%
function
0%
module
0%
External_function
0%
External_module
0%
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.
Report Question
0%
if x == "True":
0%
if x == True:
0%
if x:
0%
if x = True:
What will the below line of code print?print(3**2)
Report Question
0%
9
0%
12
0%
10
0%
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)
Report Question
0%
1
0%
2
What will the code below print if num1 = 5 and num2 = 8?num1 = input("Number 1")num2 = input("Number 2")print(num1+num2)
Report Question
0%
85
0%
58
0%
5+8
0%
None of the above
Which command will Tracy perform when given the following code?
Report Question
0%
forward(200)
0%
backward(200)
0%
forward(201)
0%
backward(201)
Which command will Tracy perform when given the following code?
Report Question
0%
forward(10)
0%
backward(10)
0%
backward(10) circle(10)
0%
circle(10)
What will be the output of the following code?
Report Question
0%
5 circles in a row
0%
4 circles in a row
0%
A slinky with 5 circles
0%
An infinite loop will occur
Для виводу повідомлення на екран консолі використовують таку функцію:
Report Question
0%
input()
0%
print()
0%
int()
0%
string()
Для перетворення данних в числові використовується така функція:
Report Question
0%
string()
0%
int()
0%
input()
0%
str()
Для перетворення даних в текст використовується така функція:
Report Question
0%
print()
0%
int()
0%
str()
0%
input()
> – цей знак означає
Report Question
0%
більше
0%
більше рівне
0%
менше рівне
0%
менше
Що буде виведено на екран?
Report Question
0%
45+2
0%
42
0%
47
0%
5
Що буде виведено на екран?
Report Question
0%
42-5
0%
Rodion
0%
Mamkin hazker
0%
Mamkin hatzker!
Як під'єднати модуль "черепашки"?
Report Question
0%
from turtle
0%
from turtle import
0%
from tаrtle import*
0%
from turtle import*
На скільки градусів потрібно здійснювати поворот "черепашці", щоб намалювати правильний трикутник?
Report Question
0%
60
0%
120
0%
90
0%
50
Де, за замовчуванням, знаходиться "черепашка"?
Report Question
0%
(0, 50)
0%
(0, 0)
0%
(-100, 0)
0%
(-50, 0)
Що робитиме ''черепашка'' після виконання команди forward(300) ?
Report Question
0%
Проповзе 300 кроків в заданому напрямку
0%
Проповзе 300 кроків вниз
0%
Проповзе 300 кроків вгору
Що намалює '''черепашка'?
Report Question
0%
Квадрат
0%
Коло
0%
Трикутник
0%
Зигзаг
Що таке змінна? (виберіть найточніше)
Report Question
0%
Величина, яка має свою назву та певне змінне значення
0%
Вид програми, в яких змінюються дані
0%
Величина, що здатна змінюватися протягом роботи програми
0%
Число, що має свою назву
Який клас даних позначають як іnt?
Report Question
0%
текстовий рядок
0%
цілі числа
0%
дробові числа
0%
натуральні числа
Який рядок є правильним позначенням змінної в мові програмування Python?
Report Question
0%
user_name=х
0%
а==64
0%
1а=64
0%
?а=6.4
Яку конструкцію коду потрібно застосувати для запиту цілого числа у користувача з повідомленням "a="?
Report Question
0%
int(input(a=))
0%
input("a=")
0%
int(input("a = "))
0%
int(input("a=")
а=20//7 і х=20%7
Report Question
0%
частка від ділення 2, остача 6
0%
частка від ділення 3, остача 1
0%
частка від ділення 6, остача 2
Какой язык программирования ты учил последние полгода?
Report Question
0%
Python
0%
Delphi
0%
C/C++
0%
PHP
Для вывода сообщений на екран консоли используеться функция:
Report Question
0%
input()
0%
print()
0%
int()
0%
string()
Для преоброзования даных в число испульзуется функция:
Report Question
0%
string()
0%
print()
0%
input()
0%
int()
Для развлетвения используется:
Report Question
0%
if
0%
while
0%
for
0%
def
Что будет выведено на экран?
Report Question
0%
42 + 5
0%
42
0%
47
0%
5
Что будет выведено на экран?
Report Question
0%
42 + 5
0%
42
0%
Mamkin hatzker!
0%
Rodion
Что будет выведено на экран?
Report Question
0%
You are a Rodion! I don't know you!
0%
You are a stranger! I don't know you!
0%
Hello, Kyrylo!
0%
Hello, Rodion!
Что будет выведено на экран?a = 5b = 6print(a)
Report Question
0%
5
0%
6
0%
11
0%
1
Что будет выведено на экран в результате выполнения фрагмента программыa = 4b = 6print(a*b)
Report Question
0%
24
0%
12
0%
6
0%
a*b
Чему равно "a" после выполнения программы?a = 2If a<3: print(a+1)else: print(a-1)
Report Question
0%
3
0%
2
0%
1
0%
0
Что такое input?
Report Question
0%
Оператор вывода данных
0%
Оператор присваивания
0%
Оператор ввода данных
0%
Не знаю
Чему равно b после выполнения программы?b = 2if b > 4: b = b + 2
Report Question
0%
4
0%
2
0%
0
0%
нет правильного ответа
Чему равно c ?a = 2b = 5if a > b: c = aelse: c = b
Report Question
0%
2
0%
5
0%
нет правильного ответа
0%
0
print (2**5) Что появится на экране после выполнения этой инструкции?
Report Question
0%
10
0%
100
0%
32
0%
0.4
print (20//3)Что появится на экране после выполнения этой инструкции?
Report Question
0%
2
0%
6
0%
6.6666
0%
60
print (20%3)Что появится на экране после выполнения этой инструкции?
Report Question
0%
6
0%
2
0%
6.666666
0%
60
if a%2==0: a = a**2Что означает эта инструкция?
Report Question
0%
если число а - четное, возвести его в квадрат
0%
если число а - не четное, возвести его в квадрат
0%
если число а - четное, умножить его на 2
0%
если число а - не четное, умножить его на 2
Что означает эта инструкция: a = int ( input() )
Report Question
0%
ввод пользователем целого числа
0%
ввод пользователем вещественного числа
0%
ввод пользователем символа
Что получится в результате выполнения этой инструкции?n = 1238d = n // 10 k = n % 10 print (d, k)
Report Question
0%
123; 8
0%
12; 38
0%
123, 8
Вы получили подозрительную ссылку. Что будете делать?
Report Question
0%
Не переходить по ней
0%
Перейти и посмотреть
0%
Проверить содержимое сайта на вирусы
0%
Все выше перечисленное
На электронную почту пришло письмо с неизвестного адреса с сообщением о высокооплачиваемой работе и ссылка на ресурс. Как поступить?
Report Question
0%
Проверить ресурс на наличие работы
0%
Удалить письмо
0%
Проверить письмо антивирусной программой
Почему нужно быть осторожным при пользовании свободным Wi-Fi?
Report Question
0%
Снижается скорость работы
0%
Незащищенный Wi-Fi может взломать любой, у кого есть специальное ПО
0%
Воздух содержит много вредных микробов, вирусов и инфекций.
Какую цель преследует такая угроза как фишинг?
Report Question
0%
Перенаправлять любые запросы пользователя в браузере на хакерский сайт о рыбалке
0%
Использование вод мирового океана для глобального распространения вредоносных вирусов
0%
Обманным путем выудить у пользователя данные, позволяющие получить доступ к его учетным записям
При создании пароля вы ...
Report Question
0%
Копируете логин
0%
Используете буквы, цифры и символы
0%
Основываетесь на словарных словах
0%
Используете личные данные
Облачные технологии
Report Question
0%
это модель обеспечения удобного (автоматизированного) сетевого доступа по требованию к общему фонду конфигурируемых вычислительных ресурсов, которые могут быть оперативно предоставлены
0%
Инновационная технология, которая позволяет объединять ИТ-ресурсы различных аппаратных платформ в единое целое и предоставлять пользователю доступ к ним через локальную сеть или через интернет, называется:
Report Question
0%
облачное приложение
0%
облачные хранилища
0%
облачные технологии
Что из списка не является облачным хранилищем?
Report Question
0%
Яндекс.Диск
0%
Dropbox
0%
Google Docs
0%
Kahoot
Какой из перечисленных сервисов является виртуальной галереей?
Report Question
0%
Google Hangouts
0%
Google Keep
0%
Google Arts & Culture
в СССР подключение к сети Интернет осуществилось в
Report Question
0%
1990
0%
1993
0%
1985
0%
1970
Глобальная сеть - ...
Report Question
0%
WAN - Wide Area Network
0%
VPN - Virtual Private Network
0%
IAN - Internet Area Network
0%
LAN - Local Area Network
Выберите корректный адрес электронной почты.
Report Question
0%
ivan_petrov@mail.ru
0%
ivanpetrov.mail.ru
0%
ivanpetrov@mail
0%
ivan_petrov.mail.ru
DevOps-инженер кто это?
Report Question
0%
специалист, который проектирует, создает, тестирует, подсоединяет и обслуживает схемы/структуры и системы управления сетями, применяемые в сетях передачи данных.
0%
специалист, который работает на стыке этих двух должностей и занимается автоматизацией жизненного цикла приложения (включая проектирование, разработку, тестирование, развертывание, поддержку и мониторинг).
0%
специалист, должностные обязанности которого подразумевают обеспечение штатной работы парка компьютерной техники, сети и программного обеспечения.
Правда ли, что с 1918 по 1935 годы елка, как символ Рождества, в России находилась под запретом?
Report Question
0%
Да
0%
Нет
0%
Такого не может быть!
Белорусского деда Мороза называют...
Report Question
0%
Морозун
0%
Морозяка
0%
Зюзя
0%
Заморозник
Как величали сурового предшественника современного русского Деда Мороза?
Report Question
0%
Дед Колотун
0%
Дед Трескун
0%
Дед Въюговей
0%
Дед Зимостой
Что это такое?
Report Question
0%
TeamSpeak
0%
Skype
0%
Discord
0%
Teamviewer
Что будет выведено на экран?
Report Question
0%
42 + 5
0%
42
0%
47
0%
5
Что будет выведено на экран?
Report Question
0%
42 + 5
0%
42
0%
Mamkin hatzker!
0%
Rodion
Что будет выведено на экран?
Report Question
0%
You are a Rodion! I don't know you!
0%
You are a stranger! I don't know you!
0%
Hello, Kyrylo!
0%
Hello, Rodion!
Вы получили подозрительную ссылку. Что будете делать?
Report Question
0%
Не переходить по ней
0%
Перейти и посмотреть
0%
Проверить содержимое сайта на вирусы
0%
Все выше перечисленное
На электронную почту пришло письмо с неизвестного адреса с сообщением о высокооплачиваемой работе и ссылка на ресурс. Как поступить?
Report Question
0%
Проверить ресурс на наличие работы
0%
Удалить письмо
0%
Проверить письмо антивирусной программой
Почему нужно быть осторожным при пользовании свободным Wi-Fi?
Report Question
0%
Снижается скорость работы
0%
Незащищенный Wi-Fi может взломать любой, у кого есть специальное ПО
0%
Воздух содержит много вредных микробов, вирусов и инфекций.
Какую цель преследует такая угроза как фишинг?
Report Question
0%
Перенаправлять любые запросы пользователя в браузере на хакерский сайт о рыбалке
0%
Использование вод мирового океана для глобального распространения вредоносных вирусов
0%
Обманным путем выудить у пользователя данные, позволяющие получить доступ к его учетным записям
При создании пароля вы ...
Report Question
0%
Основываетесь на словарных словах
0%
Используете личные данные
0%
Копируете логин
0%
Используете буквы, цифры и символы
Правда ли, что с 1918 по 1935 годы елка, как символ Рождества, в России находилась под запретом?
Report Question
0%
Да
0%
Нет
0%
Такого не может быть!
Как величали сурового предшественника современного русского Деда Мороза?
Report Question
0%
Дед Колотун
0%
Дед Трескун
0%
Дед Въюговей
0%
Дед Зимостой
Что это такое?
Report Question
0%
TeamSpeak
0%
Skype
0%
Discord
0%
Teamviewer
What is the position of the name 'Paula' in the following array:names = ["Paul","Phillip","Paula","Phillipa"]
Report Question
0%
0
0%
1
0%
2
0%
3
What is the word (command) used to output data?
Report Question
0%
print
0%
input
0%
output
0%
command
In programming, what is iteration?
Report Question
0%
The repetition of steps within a program
0%
The order in which instructions are carried out
0%
A decision point in a program
0%
Testing a program to make sure it works
Why is iteration important?
Report Question
0%
It determines the order in which instructions are carried out
0%
It allows code to be simplified by removing duplicated steps
0%
It allows multiple paths through a program
0%
It ensures the code works correctly
Which two statements are used to implement iteration?
Report Question
0%
IF and WHILE
0%
ELSE and WHILE
0%
FOR and WHILE
0%
IF and ELSE
FOR loops are
Report Question
0%
loops which run an unknown number of times
0%
loops which run for a specific number of times
0%
the same as if statements
0%
not part of programming
WHILE loops are
Report Question
0%
loops which run an unknown number of times
0%
loops which run for a specific number of times
0%
the same as if statements
0%
not part of programming
Co to jest Python?
Report Question
0%
edytor tekstowy
0%
język programowania
0%
system operacyjny
0%
zwierzę
if warunek:kodelse:kodjest:
Report Question
0%
warunkiem
0%
pętlą
0%
nie ma czegoś takiego
co będzie wynikiem kodu:print("2 + 2")
Report Question
0%
2 + 2
0%
4
0%
8
0%
błąd
W jaki sposób zapiszesz warunek: Czy a jest równe b?
Report Question
0%
a==b
0%
a!=b
0%
a=b
0%
a===b
Skąd pochodzi nazwa Python?
Report Question
0%
od imienia psa autora języka
0%
od nazwy serialu komediowego ("Latający cyrk Monty Pythona")
0%
od zwierzęcia
0%
od przezwiska autora języka
Które działanie wskazuje na potęgowanie?
Report Question
0%
7 // 2
0%
9 / 3
0%
15%3
0%
5**2
Python jest dynamicznym językiem...
Report Question
0%
kompilowanym
0%
kodowanym
0%
interpretowanym
0%
kodującym
0:0:1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
0
Answered
0
Not Answered
0
Not Visited
Correct : 0
Incorrect : 0
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqexams.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page