Working with Switch Statement
Welcome to the "Working with Switch Statement" Practice Lab. In this module, you will be provided with the instructions and devices needed to develop your hands-on skills.
Welcome to the Working with Switch Statement Practice Lab. In this module, you will be provided with the instructions and devices needed to develop your hands-on skills.
The following exam objective is covered in this lab:
- 3.2 Complete and debug decision statements
It will take approximately 15 minutes to complete this lab.
Exercise 1 - Working with Switch Statement
The expression provided in the parentheses along with the switch statement is compared with each case condition. If the condition is true, the respective code block is executed. Else, the default code block is executed. You can specify the default code block using the default keyword. The break keyword terminates the execution and exits the switch-case.
In this exercise, you will perform two tasks:
- Task 1 - You will download the Visual Studio Code workspace (ComputeGrade) from the Intranet and open the HTML page named Grade.html in the ComputeGrade workspace.
After completing this exercise, you will be able to:
IT & Cybersecurity certification hands on practice labs and practice exams for certifications and skill development.
See the full benefits of our immersive learning experience with interactive courses and guided career paths.