Creating Single and Multi-Dimensional Arrays
Welcome to the "Creating Single and Multi-Dimensional Arrays" Practice Lab. In this module, you will be provided with the instructions and devices needed to develop your hands-on skills.
Welcome to the Creating Single and Multi-Dimensional Arrays 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:
- 2.2 Declare and use arrays
It will take approximately 20 minutes to complete this lab.
Exercise 1 - Creating Arrays
In a single-dimensional array, you will have one row and multiple columns. You can identify each value stored in an array with the help of an index number. An index number within an array starts at 0. Therefore, the first element in an array is , the second element is , the third element is , and so on. You can traverse within an array with the help of loops.
In this exercise, you will learn how to create both single-dimensional and multi-dimensional arrays with fixed values. You will traverse within the arrays with the help of for, while, and nested for loops.
The first task in this exercise will be to create a new folder named StudentList on PLABWIN10 desktop, add the folder to a Visual Studio Code workspace, and save the workspace with the name StudentList. You will create a new HTML page named StudentList.html in the StudentList 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.