subject
Computers and Technology, 18.03.2021 01:30 sef4kt

What is the index for “Ahmed” in the list [“James”, “Omar”, “Ahmed”, “Lee”, “Mia”]? 1
2
A
Ahmed
What is a method that deletes an item from a list using the item’s index?
Remove
Delete
Erase
Pop
What does HTML stand for?
Home Teachable Markup Language
Historical Text-Making Language
Hypertext Markup Language
Hyper Tutorial Maker Language
Using a while loop to iterate over a list requires an incrementing variable.
True
False
Katrina wants to get a random number and assign it to a variable called force. Which line of code should be used?
force = random. randint(1,10)
force = random(1,10)
force = randint(1,10)
force == random. randint(1,10)
You can add items to the end of a list using append.
True
False
Going through a list item by item is called “iterating over a list”.
True
False
Which keywords would be needed to convert this scenario into Python?

If the user picks up the rock, the program will respond by indicating that the user has disturbed the mummy. But if the user picks up the branch, he or she will get eaten by the monster. If the user scoops up leaves, he or she will discover a fairy.

if, if, if
if, elif, elif
if, else, else
if, then, last
A friend asks you to look over the code for an adventure game and help figure out why it won’t work. Which of these options is something that would cause a program to work improperly?
There is a user-defined function with two variables.
There is an infinite loop.
There are two lines of code beginning with elif in a row.
There is an if statement without an else statement.
Jorge is creating a program that will allow the user to enter race times to keep track of them. Which of the following will allow Jorge to manage the data that the user enters?
a Boolean variable
an elif statement
a list
a parameter
The time. sleep() method requires a number of seconds as a parameter.
True
False
What is the index of “tables” in the list [“table”, ”rug”, “chair”, “sofa”]?
0
1
2
3
The index of the first item on a list is 1.
True
False
If you create a function and you want it to pass a value back to the main program, what do you need to include in the function’s definition?
an iterating variable
a local variable
a return statement
a parameter
What kind of program has a looping branch of code?
sequence
selection
iteration
pseudocode
What is a number that refers to the position of an item on a list?
variable
parameter
operator
index
What would be the result of running these two lines of code?

devices = [“Laptop”, “Phone”, “Computer”]

print(devices[0])

0
Laptop
Phone
Computer
A block of CSS that is applied to a specific HTML element is called a:
segment.
chunk.
construction.
rule set.


What is the index for “Ahmed” in the list [“James”, “Omar”, “Ahmed”, “Lee”, “Mia”]?

 
1
2
A
Ahmed
What is the index for “Ahmed” in the list [“James”, “Omar”, “Ahmed”, “Lee”, “Mia”]?

 
1
2
A
Ahmed
What is the index for “Ahmed” in the list [“James”, “Omar”, “Ahmed”, “Lee”, “Mia”]?

 
1
2
A
Ahmed
What is the index for “Ahmed” in the list [“James”, “Omar”, “Ahmed”, “Lee”, “Mia”]?

 
1
2
A
Ahmed

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:00, chuchi24
Robots with telescoping arms are sometimes used to perform tasks (e. g., welding or placing screws) where access may be difficult for other robotic types. during a test run, a robot arm is programmed to extend according to the relationship r = 3 + 0.5cos(4θ) and the arm rotates according to the relationship θ=−π4t2+πt , where r is in feet, θ is in radians, and t is in seconds. use a computer program to plot the path of tip a in x and y coordinates for 0 ≤ t ≤ 4s.
Answers: 2
image
Computers and Technology, 23.06.2019 00:00, brooklyn4932
What engine component is shown in the above figure?
Answers: 1
image
Computers and Technology, 23.06.2019 01:30, solikhalifeoy3j1r
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) a process declaring its maximum need as maximum possible for each resource. in other words, if a resource a has 5 instances, then each process declares its maximum need as 5. (ii) a process declaring its minimum needs as maximum needs. for example, a process may need 2-5 instances of resource a. but it declares its maximum need as 2.
Answers: 3
image
Computers and Technology, 23.06.2019 04:31, legendman27
Jennifer has to set up a network in a factory with an environment that has a lot of electrical interference. which cable would she prefer to use? jennifer would prefer to use because its metal sheath reduces interference.
Answers: 1
You know the right answer?
What is the index for “Ahmed” in the list [“James”, “Omar”, “Ahmed”, “Lee”, “Mia”]? 1
2

Questions in other subjects: