GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

The part of the problem which can be solved without recursio…

The part of the problem which can be solved without recursion is the _______ case.

Read Details

An algorithm that uses a loop will usually run faster than a…

An algorithm that uses a loop will usually run faster than an equivalent recursive algorithm.

Read Details

Suppose a program uses two classes: Airplane and JumboJet. W…

Suppose a program uses two classes: Airplane and JumboJet. Which of these would most likely be the subclass?

Read Details

Polymorphism allows you to write methods in a subclass that…

Polymorphism allows you to write methods in a subclass that have the same name as methods in the superclass.

Read Details

What is the output of the following code snippet? myset = se…

What is the output of the following code snippet? myset = set([10,9,8])myset.update(‘aabc’)print(myset)

Read Details

Consider the following dictionary: phonebook = { ‘Chris’ : ‘…

Consider the following dictionary: phonebook = { ‘Chris’ : ‘555-1111’, ‘Katie’ : ‘555-2222’, ‘Joanne’ : ‘555-3333’} If I try to execute following code, then it will generate KeyError exception. print( phonebook.get(‘Kathryn’, ‘Entry not found’ )

Read Details

What is the output of the following code snippet? a = {i : i…

What is the output of the following code snippet? a = {i : i*i for i in range(6)}print(a)

Read Details

A recursive function ________.

A recursive function ________.

Read Details

A function is called once from the program’s main function,…

A function is called once from the program’s main function, then it calls itself 4 times. The depth of recursion is ____.

Read Details

Which of these about a dictionary is false?

Which of these about a dictionary is false?

Read Details

Posts pagination

Newer posts 1 … 45,068 45,069 45,070 45,071 45,072 … 73,194 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top