GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

You are building a house with a concrete foundation that nee…

You are building a house with a concrete foundation that needs to be 77 ft long, 31 ft wide, and 2 ft deep.  How many cubic feet of concrete will be needed for the foundation?

Read Details

Which Gland activates the immune system?

Which Gland activates the immune system?

Read Details

What does the following code segment do? x = 0 for i in ra…

What does the following code segment do? x = 0 for i in range(1, len(values)) : if values[i]

Read Details

Which of the following is a possible output after the follow…

Which of the following is a possible output after the following code snippet is executed? names = set([“Jane”, “Joe”, “Amy”, “Lisa”]) names.add(“Amber”) names.add(“Zoe”) names.discard(“Jim”) print(names)

Read Details

Assuming that a user enters 25 for the price of an item, whi…

Assuming that a user enters 25 for the price of an item, which of the following hand-trace tables is valid for the given code snippet? price = 0 status = “” price = float(input(“Enter the price for your item: “)) if price >= 50 : status = “reasonable” if price >= 75 : status = “costly” else : status = “inexpensive” if price

Read Details

The following function is supposed to return -1 when x is ne…

The following function is supposed to return -1 when x is negative, +1 when x is positive, or 0 if x is zero. What, if anything, is wrong with the function? def plusMinusZero(x) : if x == 0 : return 0 elif x = 0 : return 1

Read Details

Consider the following code segment: data = {“A”: 65, “B”:…

Consider the following code segment: data = {“A”: 65, “B”: 66, “C”: 67} data[“D”] = 68 print(len(data)) What is displayed when this code segment is executed?

Read Details

Consider the following program: def main() : print(factori…

Consider the following program: def main() : print(factorial(n)) # Line 1 def factorial(n) : # Line 2 if n

Read Details

When does the execution switch from the inner to the outer l…

When does the execution switch from the inner to the outer loop? j = 1 for i in range(0, 10) : while(j

Read Details

What output is generated by the following code snippet? fi…

What output is generated by the following code snippet? firstName = “Pamela” middleName = “Rose” lastName = “Smith” print(firstName[0], middleName[0], lastName[5])

Read Details

Posts pagination

Newer posts 1 … 48 49 50 51 52 … 87,212 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top