2 - Core Programming Concepts
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What is a variable?
💡 Hint: Think about how you might put things into boxes.
What does an if/else statement do?
💡 Hint: Think of it as a decision-making tool.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What is a variable in programming?
💡 Hint: Think about how data is organized.
True or False: A loop is used to repeat a block of code.
💡 Hint: Consider how repetition in tasks can be handled in programming.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Create a program that takes continuous distance readings and makes the robot move forward if there's no obstacle, stop if there's one within 10 units, and turn around if an obstacle is too close (less than 3 units).
💡 Hint: Think about how you can structure your if statements for different conditions.
Write a function that takes a list of distances and returns the average distance. Use this to decide if the robot should turn left or right based on distance averages.
💡 Hint: Consider how you can iterate through the list to compute the sum.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.