Programming - write and display code in different programming languages
1. Create task/test as usual
2. Click on modules module and add form:
3. Change the name from Form to the name you would like and click add and add Question.
Choose the question type and scroll down to Programming:
5. Write your question and then select a programming language in the Syntax Marking:
You can choose the following c, cpp, csharp, css, html, java, javascript, jsx, lua, php, python, ruby, sql, tsx, typescript, and xml .
Then choose whether you want Code Completion on or off, i.e. if you want code to be automatically completed when the student writes
6. For the student, the task with the choice of python as syntax is:
7. The student writes his code in the box
8. When the student submits it ends up in your Google Drive and the answer looks like this: