GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Write a Python program that reads data from a file and write…

Write a Python program that reads data from a file and writes to another file. 

Read Details

In Python, create a list, insert an element at index 2, and…

In Python, create a list, insert an element at index 2, and remove the last element. 

Read Details

Define a class Book in C++ with private attributes title, au…

Define a class Book in C++ with private attributes title, author, and price, and appropriate public member functions. Include a method display_info(). 

Read Details

True or False (Mark T or F)  _____ In Python, __init__() is…

True or False (Mark T or F)  _____ In Python, __init__() is automatically called when an object is created.  _____ C++ allows operator overloading for built-in types. _____ Python supports multiple inheritance.  _____ Pointers in C++ must always be initialized before use.  _____ ifstream in C++ is used for writing files.  _____ In Python, strings are immutable.  _____ A class can inherit from more than one class in both Python and C++. _____ The time complexity of naive recursive Fibonacci is O(n). _____ In C++, new and delete must always be used in pairs to avoid memory leaks. _____ In C++, forgetting to declare a destructor as virtual can lead to memory leaks in polymorphic base classes. 

Read Details

Identify the base and recursive case in your function. 

Identify the base and recursive case in your function. 

Read Details

Compare and contrast C-strings and std::string in C++.

Compare and contrast C-strings and std::string in C++.

Read Details

Select which bonus question you’d like to contribute to your…

Select which bonus question you’d like to contribute to your final grade.  

Read Details

Extract the word “World” from the string “Hello World!” in C…

Extract the word “World” from the string “Hello World!” in C++ and convert it to uppercase.

Read Details

Consider the following C++ classes:  #include   using namesp…

Consider the following C++ classes:  #include   using namespace std;  class Base {  public:  virtual void print() {  cout

Read Details

Write a recursive function in C++ that returns the Fibonacci…

Write a recursive function in C++ that returns the Fibonacci of a number. 

Read Details

Posts pagination

Newer posts 1 … 27,897 27,898 27,899 27,900 27,901 … 89,393 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top