*Please answer all the following questions. 1. Assuming students have entered their own first name and last name in resp
Posted: Thu Jun 02, 2022 7:49 am
*Please answer all the following questions.
1.
Assuming students have entered their own first name and last
name in response to separate inputs in Python, what is accomplished
by the following code snippet?
Student_name = firstname + lastname
Student name would become Firstname Lastname (e.g., "Juan
Doe").
An array called Student_name would be created.
Student name would become FirstnameLastname (e.g.,
"JuanDoe").
This line would return a syntax error.
2.
During testing, a user complains that the buttons are hard
to touch without bumping other buttons. What needs to be
revised?
the Gantt algorithm
the Kanban workup
the SQL injector
the GUI
3.
Aurelia is designing a user interface for a new game app. Which
of the following should she taken into consideration for the user
interface?
what inputs the game will need to take in from the user
whether an array will need to be used
what type of loops will be used
how many variables will need to be used
4.
Which of the following people can edit a Kanban chart?
upper-level management only
project managers only
developers only
both project managers and developers
5.
Assuming str(rate) is "7.25," what output would be produced by
the following snippet?
print("The hourly parking rate is $" ,
str(rate))
A syntax error because the rate is an integer not a string.
"The hourly parking rate is $7.25"
"The hourly parking rate is $." "7.25"
"The hourly parking rate is $ 7.25"
6.
Which of the following is an example of an incremented
sequence?
A, B, C, D
1, 2, 3, 4
4, 3, 2, 1
North, South, East, West
7.
Which of the following statements would print “zebra” from this
list?
animals = [“koala”, “meerkat”, “zebra”, “monkey”,
“lion”]
animals[2]
print(animals[2])
animals[3]
print(animals[3])
8.
Jacob is writing code that performs some calculations with
money. He wants to make sure that only two digits after the decimal
place are printed. Which function should he use?
len
scope
round
index
9.
Which Python function would you use if you wanted to convert a
string to lower case letters?
change_lower()
small()
lower()
uniform()
10.
What does the following code snippet represent?
GET location from phone
pseudocode
Python code
Kanban code
protocode
11.
Which of these is a quicker way to add onto the value previously
held by the variable “a” in in Python?
a/20
a += 20
a == a + 20
a + 20
12.
Holly wants to search within an array containing prices to find
the largest number. Which of the following tools would be most
useful?
type casting
indexing
array lookup
scope
13.
Which of the following should be used with an input statement to
make sure the user enters a number instead of a letter?
indexing
scope
type casting
concatenation
14.
Chloe has just written the following code. What will the output
be and why?
def coffeeInfo():
drink = "mocha"
print("You ordered a", drink)
“You ordered a mocha” will be printed because the print
statement will execute normally.
A syntax error will occur because the coffeeInfo() function was
never called.
“You ordered a” will be printed because the drink variable’s
scope is only inside the function.
A syntax error will occur because the scope of the drink
variable is only inside the function and cannot be used outside the
function.
15.
Based on the following code, what will the output be if "number"
is 35.557?
round(number, 2)
40
36
35.55
35.56
1.
Assuming students have entered their own first name and last
name in response to separate inputs in Python, what is accomplished
by the following code snippet?
Student_name = firstname + lastname
Student name would become Firstname Lastname (e.g., "Juan
Doe").
An array called Student_name would be created.
Student name would become FirstnameLastname (e.g.,
"JuanDoe").
This line would return a syntax error.
2.
During testing, a user complains that the buttons are hard
to touch without bumping other buttons. What needs to be
revised?
the Gantt algorithm
the Kanban workup
the SQL injector
the GUI
3.
Aurelia is designing a user interface for a new game app. Which
of the following should she taken into consideration for the user
interface?
what inputs the game will need to take in from the user
whether an array will need to be used
what type of loops will be used
how many variables will need to be used
4.
Which of the following people can edit a Kanban chart?
upper-level management only
project managers only
developers only
both project managers and developers
5.
Assuming str(rate) is "7.25," what output would be produced by
the following snippet?
print("The hourly parking rate is $" ,
str(rate))
A syntax error because the rate is an integer not a string.
"The hourly parking rate is $7.25"
"The hourly parking rate is $." "7.25"
"The hourly parking rate is $ 7.25"
6.
Which of the following is an example of an incremented
sequence?
A, B, C, D
1, 2, 3, 4
4, 3, 2, 1
North, South, East, West
7.
Which of the following statements would print “zebra” from this
list?
animals = [“koala”, “meerkat”, “zebra”, “monkey”,
“lion”]
animals[2]
print(animals[2])
animals[3]
print(animals[3])
8.
Jacob is writing code that performs some calculations with
money. He wants to make sure that only two digits after the decimal
place are printed. Which function should he use?
len
scope
round
index
9.
Which Python function would you use if you wanted to convert a
string to lower case letters?
change_lower()
small()
lower()
uniform()
10.
What does the following code snippet represent?
GET location from phone
pseudocode
Python code
Kanban code
protocode
11.
Which of these is a quicker way to add onto the value previously
held by the variable “a” in in Python?
a/20
a += 20
a == a + 20
a + 20
12.
Holly wants to search within an array containing prices to find
the largest number. Which of the following tools would be most
useful?
type casting
indexing
array lookup
scope
13.
Which of the following should be used with an input statement to
make sure the user enters a number instead of a letter?
indexing
scope
type casting
concatenation
14.
Chloe has just written the following code. What will the output
be and why?
def coffeeInfo():
drink = "mocha"
print("You ordered a", drink)
“You ordered a mocha” will be printed because the print
statement will execute normally.
A syntax error will occur because the coffeeInfo() function was
never called.
“You ordered a” will be printed because the drink variable’s
scope is only inside the function.
A syntax error will occur because the scope of the drink
variable is only inside the function and cannot be used outside the
function.
15.
Based on the following code, what will the output be if "number"
is 35.557?
round(number, 2)
40
36
35.55
35.56