GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

How many times will the print function be called during the…

How many times will the print function be called during the function call draw_chessboard(1, 1, ‘K’, 3) ? (Check carefully all print statements)

Read Details

What function call should we use to get this chessboard outp…

What function call should we use to get this chessboard output where ‘P’ is the last character printed (except for special characters).  There are 8 rows and each row contains 8 characters. # # # # # # # ## # # # # # # ## # # # # # # ## # # #  # # # P

Read Details

In Python, what will type(get_budget(get_id(“Parks”),2024))…

In Python, what will type(get_budget(get_id(“Parks”),2024)) evaluate to?

Read Details

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

Posts pagination

Newer posts 1 … 25,238 25,239 25,240 25,241 25,242 … 81,963 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top