Browse all Courses

Start Now!

Enroll for FREE

With this course, you will:

  • Gain a strong grasp of advanced C++
  • Take programming logic to the next level
  • Earn a professional certificate
Fi Coin

Average Salary (US)

$114,997

Fi Box

Prerequisites

Fi Coin

Average Salary (US)

$114,997

Fi Box

Prerequisites

Start Now!

Enroll for FREE
Course Hero Image
Challenge Course

C++ Beyond Basics Challenges

Apply the skills you have gained from the C++ Beyond Basics course to solve challenges and become a C++ master.

  • Level: Intermediate

  • Duration: 1 week

  • Type: Interfactive

  • Language: English

  • challenge

    Coding Challenges: 25+

Challenge Sneak Peek

Create a program to catch the divide by zero exception.

Instructions

  • Inside a try block, check if the denominator is zero.
  • If the denominator is zero, throw an exception with the message Reality has been reshaped. The result is infinity.
  • If the denominator is non-zero, divide the numerator by the denominator and print the result.
  • If an exception is thrown by the try block, catch the exception.
  • Print the thrown message inside the catch block.

Example

For input values:

5
0

The output of the program will be:

Reality has been reshaped. The result is infinity.
main.cpp

Learn by Doing

Fact: You can't learn to code without writing code yourself.

Master advanced C++ by completing 20+ advanced challenges in real-time.

Get Certified

Earn certification through our curated career paths and showcase your new skills in LinkedIn.Boost your career with professional certifications and impress your potential employers on LinkedIn.

CERTIFICATE OF COMPLETION

This is to certify that

Jane Doe

has successfully completed the course

C++ Beyond Basics Challenges

Feedback from our students

Aaron Sang
The platform is wonderful and will continue to be a step above the rest of what's out there right now.

Feedback from our students

Aaron Sang
The platform is wonderful and will continue to be a step above the rest of what's out there right now.
Landan Devencia
Learning to code is hard, but Programiz PRO has made it easy by being right by my side in my coding journey.
Ayushma Malla Thakuri
On Programiz PRO, the research work is already done by an expert in the background; all you need to do is focus on your learning.

Challenge courses similar to this

Challenge courses similar to this

Loading...Loading...