GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

Assuming a user enters 30, 20, and 10 as the input values, w…

Assuming a user enters 30, 20, and 10 as the input values, what is the output of the following code snippet? num1 = int(input(“Enter a number: “))num2 = int(input(“Enter a number: “))num3 = int(input(“Enter a number: “))if num1 > num2 : if num1 > num3 : print(num1) else : print(num3)else : if num2 > num3 : print(num2) else : print(num3)

Read Details

Computers store both data and programs not currently running…

Computers store both data and programs not currently running in:

Read Details

Consider the following code snippet: age = int(input(“Enter…

Consider the following code snippet: age = int(input(“Enter your age: “))if age < 13 : print("Child", end="")if age >= 13 and age 19 and age < 30 : print("Young adult", end="")if age >= 30 and age 50 : print(“Young at heart”, end=””) Assuming that the user enters 55 as the age, what is the output?

Read Details

Consider the following code segment:   from graphics import…

Consider the following code segment:   from graphics import GraphicsWindow   win = GraphicsWindow(400, 200) canvas = win.canvas() The line of code that should be added to the end of the code segment above to draw a diagonal line connecting the upper left corner to the lower right corner is:

Read Details

The following pseudocode calculates the total purchase price…

The following pseudocode calculates the total purchase price for an item including sales tax, what is the missing last line?Start by setting the total cost to zero.Ask the user for the item cost.Ask the user for the tax rate.Set the item tax to item cost times tax rate. _________________________________

Read Details

Consider the following code segment: def main() : avg = 0 to…

Consider the following code segment: def main() : avg = 0 total = 0 for i in range(6) : iSquared = i * i total = total + iSquared avg = total / i print(total) print(avg) Which of the following answers lists all of the local variables in this code segment?

Read Details

What is printed by the following code snippet?print(Hello)

What is printed by the following code snippet?print(Hello)

Read Details

Della wants to get promoted but the competition is tough. Sh…

Della wants to get promoted but the competition is tough. She has intentionally taken on committee work and voluntary roles in order to stand out from the crowd. She spends extra time, sometimes after hours, to make her work as good as possible so it will be noticed. She feels that she has a great shot at the promotion because all the work she has done will make it more likely she will get selected. Della is engaging in a theory of motivation. Which theory BEST fits what has motivated Della to work so hard?

Read Details

Consider the following code segment: x = [5, 3, 7, 9, 1]…

Consider the following code segment: x = [5, 3, 7, 9, 1] y = x[3 : ] print(y) What is displayed when it executes?

Read Details

Assuming that the user provides 303 as input, what is the ou…

Assuming that the user provides 303 as input, what is the output of the following code snippet? y = int(input(“Please enter a number: “)) if y > 300 : x = y else : x = 0 print(“x:”, x)

Read Details

Posts pagination

Newer posts 1 … 66 67 68 69 70 … 95,372 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top