GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

You are given the following function: def my_func(x,y):   if…

You are given the following function: def my_func(x,y):   if y == 0 or x == 0:      return “division by zero not allowed”   elif x < y:     return y / x    else:     return x / y What will be the return value of my_func(2,1)?

Read Details

What values are printed:   i = 0while i < 10:    i = i + 1  ...

What values are printed:   i = 0while i < 10:    i = i + 1    if i % 2 != 0:        continue    print(i)  

Read Details

What function call will create the following chessboard when…

What function call will create the following chessboard when ‘Q’ is the first character printed? There are 4 rows printed and each row contains 4 characters.  Q # # ## #  # #

Read Details

What does this expression evaluate to: “hi” + “5”

What does this expression evaluate to: “hi” + “5”

Read Details

Which of the following code snippets will produce this outpu…

Which of the following code snippets will produce this output: CS220    is “great” Please note that the spaces between “220” and “is” is equivalent to one tab.

Read Details

How would you modify the expression 2 + 4 * 5 + 10 to get a…

How would you modify the expression 2 + 4 * 5 + 10 to get a result of 40 in Excel?

Read Details

If you have a formula in Excel as =MAXIFS(A2:C2, A3:C3, “>50…

If you have a formula in Excel as =MAXIFS(A2:C2, A3:C3, “>50”), what will the formula return if the values in row 2 are: A2 = 40, B2 = 60, C2 = 80 and the values in row 3 are: A3 = 45, B3 = 55, C3 = 30?

Read Details

In this example, students with a score of 90 or above will r…

In this example, students with a score of 90 or above will receive a High Pass result. Otherwise, if their score is 70 or above, they will receive a Pass result. Below that, they’ll receive a Fail unless there is no grade at all, in which case they’ll receive an Incomplete. Which of these formulas in D3 would produce those results?

Read Details

Given the following values in cells along with this formula,…

Given the following values in cells along with this formula, which value will the formula return? =IF(AND(A1=”YEL”, C3=”GRE”), IF(OR(B2 = “YEL”, AND(C3=”GRE”, A1=”YEL”)), “SAPPHIRE”, “RUBY”), “DIAMOND”)

Read Details

If you have a formula in cell H6 that reads =A$10/2 and you…

If you have a formula in cell H6 that reads =A$10/2 and you copy this formula to cell H7, what will the formula in H7 be?

Read Details

Posts pagination

Newer posts 1 … 36,275 36,276 36,277 36,278 36,279 … 93,000 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top