Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skillsβperfect for learners of all ages.
Test your understanding with targeted questions related to the topic.
Question 1
Easy
Write a line that assigns the value 10 to x
, and then assigns the value of 5 + x
to y
.
π‘ Hint: Use a semicolon to separate the two assignments.
Question 2
Easy
Enter a command that sets a=2
, then displays the value of 3*a
.
π‘ Hint: Don't forget to include the semicolon after the assignment!
Practice 4 more questions and get performance evaluation
Engage in quick quizzes to reinforce what you've learned and check your comprehension.
Question 1
What is the result of a=7; b=cos(a), c=cosh(a)
?
π‘ Hint: Remember what the comma does in terms of output.
Question 2
True or False: Using a semicolon at the end of a line in MATLAB will result in output being displayed.
π‘ Hint: Think about the purpose of the semicolon.
Solve 2 more questions and get performance evaluation
Push your limits with challenges.
Question 1
Write a line of code that combines the commands to define two variables, x=8
and then calculate the square of x
and assign to squared
, showing the value of squared
in output.
π‘ Hint: Use a comma to display the calculated value of `squared`.
Question 2
Combine the commands to set two angles in degrees, theta1=30
and theta2=45
, and then calculate their sine values suppressing their outputs in one line.
π‘ Hint: What punctuation will you use to avoid displaying intermediates?
Challenge and get performance evaluation