Coding exercises are an interactive tool you can add to your programming courses, so your learners can get practical coding experience. This article outlines how instructors can add a coding exercise to their course curriculum.
Which programming languages are available?
Instructors can create coding exercises in various languages, some of which include C++, C#, HTML & Javascript, Java, Python, Ruby, Swift and PHP, among others. Review all the programming languages that are available for coding exercises.
How to add a coding exercise to your course
To add a coding exercise to your course curriculum, please follow the steps below:
- Navigate to the Curriculum page of your course.
- On the side, hover your cursor over the grey space within a section, where you want the exercise to be placed. Click the + icon that appears and then Coding Exercise.
- Enter the exercise’s title and then click Add Coding Exercise.
- Move your cursor to the exercise title and click on the pencil icon that appears to choose the programming language the students will use.
- Enter the exercise you would like learners to solve. Review detailed information on how to create exercises for each language.
-
In addition to inputting the code for the exercise, you can provide a problem statement, a related lecture, as well as hints, which learners can revisit to get more information on how to solve the problem.
You can also write a detailed explanation for the Instructor solution to highlight key concepts that learners can review to help comprehend the exercise and solution. - Next, check the exercise’s solution by clicking on Check solution at the bottom right hand of the page.
- If the solution is correct, click Save at the top right hand of the page. You can also preview the coding exercise by clicking on Preview.
Please note: coding exercises will only appear published in the curriculum of published courses.
If the course is not published, then a checkmark will not appear beside the coding exercise when it's been added to the curriculum.