The program will be: word = “eggplant print(“Your word is !” + word + “!”) for i in word: INDENT HERE or TAB print( i + “!”) What’s the information about In Python, it’s important to maintain consistent indentation to indicate blocks of code. In this case, the print(i + ...
Quizzma Latest Questions
import math # fill in this function to return the distance between the two points! first_point = (1, 1) second_point = (4, 5) def distance(first_point, second_point): x1= first_point[0] x2= second_point[0] y1= first_point[1] y2= second_point[1] power1 = pow(y2 - y1, 2) power2 = pow(x2 - x1, ...
/* Your code... */ text = input("Enter some text: ") text.lower() text.split() print("There are " + str(text.count("owl")) + " words that contained "owl".") print("They occured at indices: for c, value in enumerate(text, 1):") print("They occured at indices: ") for c, value in ...
Write a program that keeps track of inventory. The program starts with a predefined number of items in inventory. While there are still items available, the user can input how many items they want to buy. If there are enough ...
Write a Python program that repeatedly asks the user for a denominator as long as the denominator is 0. When a valid denominator (non-zero) is provided, check if the numerator divides evenly by the denominator. If it does, print “Divides ...
Write a Python program that prompts a user for a password using a loop. The program should repeatedly ask the user to enter ...
Write a Python program that simulates rolling two dice until you get “snake eyes” (when both dice show a value of 1). Each ...
Which Python keyword skips back to the beginning of a loop? Answer Options: break continue
If I am using the following condition in my program: while True: Which keyword should ...
Which of the following returns a random number between 1 and 10?
In the following code, what will be the last number to print to the screen before the program finishes? The code provided is:
This graphics program should draw a worm. A worm is made up of NUM_CIRCLES circles. Use a for loop to draw the worm, ...
Write a program that prints out all of ...
Define Sensitive Compartmented Information?
Why do we use if/else statements in JavaScript?
Ryan is designing an app that needs to quickly send low quality photos between users. Most smartphones take much higher quality photos than Ryan needs for his app. Which answer best describes the type of compression Ryan should choose and ...
The check boxes next to the Ruler and Navigation Pane options are selected in the Show group on the View tab. Which of the following best describes what is being shown in the program window?
Which of the following tabs contains the command to open a new, blank document? Answers: File Insert Design Print
If you were practicing keyboarding and the exercise contained the letters, s, w, e, z, r, v, and t, what section of the keyboard are you practicing?
Which finger presses the H key on the keyboard?
Which of the following fingers presses the space bar?
Question: Which of the following fingers is used to press the Enter key? Options: Left middle finger Right little finger Right middle finger Thumb
What is the main difference between ByVal and ByRef? Where are they used in Visual Basic Programming? Explain your answers with examples.
How to type upside down question mark on Mac?
Remy thinks his text on a slide would be more effective as SmartArt. Which of the following groups on the Home tab would allow him to convert his text to SmartArt?
Which of the following opens when a chart is inserted on a slide?
Which of the following are movements which can be applied to objects in a presentation
Remy is looking at a presentation and notices there is a star next to slide two in the Thumbnail pane. This appears due to which of the following?
Charlie has chosen to apply the fly-in entrance effect to an image in his presentation, but he would like the image to fly in from another direction. Which of the following should Charlie click to see other directions which can ...
Which of the following is a complete set of characters in a specific face, style and size?
A local router is configured to limit the bandwidth of guest users connecting to the Internet. Which of the following best explains the result of this configuration as compared to a configuration in which the router does not limit the ...
Which of the following best explains how devices and information can be susceptible to unauthorized access if weak passwords are used?
A sequential algorithm is broken into three stages
What are the impacts of running a parallel algorithm on a large number of computers?
What is the benefit of parallel and distributed computing?
Based on a binary search algorithm – how do you find the maximum number of iterations for a list of 5 numbers? 7? 9?
What type of search algorithm needs to be used if a data set is not sorted?
Write an algorithm that is the same as the flowchart below
How can you modify the code below to find the smallest element in the list?
Give an example of an optimization problem
Write an algorithm that would take the turtle along the same path as the one below
Give an example of each of the following in an algorithm:
What methods can be used to construct algorithms