Bird
Raised Fist0
EV Technologyknowledge~10 mins

Sensor suite (LiDAR, radar, camera) in EV Technology - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the sensor that uses laser light to measure distance.

EV Technology
sensor_type = "[1]"  # This sensor uses laser light pulses to create 3D maps.
Drag options to blanks, or click blank then click option'
ALiDAR
BRadar
CCamera
DUltrasound
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing radar with LiDAR because both measure distance.
Choosing camera as it captures images but does not measure distance with lasers.
2fill in blank
medium

Complete the code to select the sensor that uses radio waves to detect objects and their speed.

EV Technology
sensor_type = "[1]"  # This sensor sends radio waves and measures their reflections.
Drag options to blanks, or click blank then click option'
AInfrared
BLiDAR
CCamera
DRadar
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing LiDAR which uses laser light, not radio waves.
Selecting camera which captures images but does not use radio waves.
3fill in blank
hard

Fix the error in the code to correctly identify the sensor that captures visual images.

EV Technology
sensor_type = "[1]"  # This sensor captures images similar to human eyes.
Drag options to blanks, or click blank then click option'
ARadar
BCamera
CLiDAR
DSonar
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing camera with LiDAR or radar which do not capture images.
Choosing sonar which uses sound waves, not images.
4fill in blank
hard

Fill both blanks to complete the description of sensor functions.

EV Technology
The [1] sensor uses [2] waves to detect object speed and distance.
Drag options to blanks, or click blank then click option'
ARadar
BLaser
CRadio
DCamera
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up laser and radio waves.
Choosing camera which does not use waves to detect speed.
5fill in blank
hard

Fill all three blanks to complete the dictionary comprehension describing sensor data processing.

EV Technology
sensor_data = { [1]: [2] for [3] in sensors if sensors[[3]] != None }
Drag options to blanks, or click blank then click option'
Asensor.upper()
Bsensors[sensor]
Csensor
Ddata
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'data' instead of the loop variable for keys or values.
Not converting sensor names to uppercase for keys.

Practice

(1/5)
1. Which sensor in an electric vehicle's sensor suite is best at creating detailed 3D maps of the surroundings?
easy
A. LiDAR
B. Radar
C. Camera
D. Ultrasonic sensor

Solution

  1. Step 1: Understand LiDAR's function

    LiDAR uses laser light to measure distances and create detailed 3D maps of the environment.
  2. Step 2: Compare with other sensors

    Radar uses radio waves mainly for detecting objects and speed, cameras capture images but don't directly measure distance in 3D, and ultrasonic sensors are for close range detection.
  3. Final Answer:

    LiDAR -> Option A
  4. Quick Check:

    3D mapping = LiDAR [OK]
Hint: LiDAR uses lasers for 3D maps, unlike radar or cameras [OK]
Common Mistakes:
  • Confusing radar with LiDAR for detailed mapping
  • Thinking cameras provide 3D distance data directly
  • Assuming ultrasonic sensors cover long distances
2. Which of the following correctly lists the three main sensors in an electric vehicle's sensor suite?
easy
A. Camera, ultrasonic, GPS
B. Radar, GPS, camera
C. LiDAR, sonar, GPS
D. LiDAR, radar, camera

Solution

  1. Step 1: Recall the main sensors used in EV sensor suites

    The main sensors are LiDAR, radar, and cameras, which together provide a full view of the environment.
  2. Step 2: Eliminate incorrect options

    GPS is for location, sonar and ultrasonic are not the primary sensors in this suite.
  3. Final Answer:

    LiDAR, radar, camera -> Option D
  4. Quick Check:

    Main EV sensors = LiDAR, radar, camera [OK]
Hint: Remember the trio: LiDAR, radar, and camera [OK]
Common Mistakes:
  • Including GPS as a main sensor for environment sensing
  • Confusing sonar or ultrasonic with radar
  • Mixing unrelated sensors in the list
3. Consider this simplified sensor data processing code snippet for an EV sensor suite:
def detect_objects(lidar_data, radar_data, camera_data):
    objects = set()
    if lidar_data > 0:
        objects.add('Obstacle')
    if radar_data > 0:
        objects.add('Moving object')
    if camera_data == 'clear':
        objects.add('No hazard')
    return objects

result = detect_objects(5, 0, 'clear')
print(result)

What will be printed?
medium
A. {'Moving object', 'No hazard'}
B. {'Obstacle', 'No hazard'}
C. {'Obstacle', 'Moving object', 'No hazard'}
D. {'No hazard'}

Solution

  1. Step 1: Analyze input values and conditions

    Input values are lidar_data=5, radar_data=0, camera_data='clear'. Since lidar_data > 0, 'Obstacle' is added. radar_data is 0, so 'Moving object' is not added. camera_data is 'clear', so 'No hazard' is added.
  2. Step 2: Determine the final set contents

    The set contains 'Obstacle' and 'No hazard'.
  3. Final Answer:

    {'Obstacle', 'No hazard'} -> Option B
  4. Quick Check:

    Conditions met = Obstacle + No hazard [OK]
Hint: Check each if condition carefully with given inputs [OK]
Common Mistakes:
  • Assuming radar_data=0 adds 'Moving object'
  • Ignoring camera_data condition
  • Confusing set contents order
4. The following code is intended to detect if any sensor detects an obstacle. What is the error?
def check_obstacle(lidar, radar, camera):
    if lidar or radar > 0:
        return True
    elif camera == 'obstacle':
        return True
    else:
        return False

print(check_obstacle(0, 0, 'clear'))
medium
A. The print statement is missing parentheses.
B. The function should return strings, not booleans.
C. The condition 'lidar or radar > 0' is incorrect; it should check both separately.
D. The camera comparison should be 'camera == obstacle' without quotes.

Solution

  1. Step 1: Analyze the condition 'lidar or radar > 0'

    This condition is evaluated as 'lidar' or '(radar > 0)', which is incorrect because it does not check if lidar > 0.
  2. Step 2: Correct the condition to check both sensors properly

    It should be 'lidar > 0 or radar > 0' to correctly detect obstacles from either sensor.
  3. Final Answer:

    The condition 'lidar or radar > 0' is incorrect; it should check both separately. -> Option C
  4. Quick Check:

    Check each sensor comparison explicitly [OK]
Hint: Use parentheses and compare each sensor explicitly [OK]
Common Mistakes:
  • Using 'or' without comparing both variables
  • Misunderstanding operator precedence
  • Ignoring boolean vs numeric comparisons
5. An electric vehicle uses LiDAR, radar, and cameras together to detect obstacles. If the LiDAR fails in heavy rain, which sensor is most reliable to still detect moving objects and why?
hard
A. Radar, because radio waves penetrate rain better than light
B. Camera, because images are clearer in rain
C. LiDAR, because it uses lasers unaffected by weather
D. null, all sensors fail in rain

Solution

  1. Step 1: Understand sensor performance in rain

    LiDAR uses laser light which can be scattered by rain, reducing effectiveness. Cameras can be blurred by water droplets. Radar uses radio waves which penetrate rain better.
  2. Step 2: Identify the most reliable sensor for moving object detection in rain

    Radar remains reliable in rain due to its radio wave technology, making it best to detect moving objects when LiDAR fails.
  3. Final Answer:

    Radar, because radio waves penetrate rain better than light -> Option A
  4. Quick Check:

    Radar works best in rain for detection [OK]
Hint: Radar waves pass through rain better than light or cameras [OK]
Common Mistakes:
  • Assuming cameras work best in rain
  • Thinking LiDAR is unaffected by weather
  • Believing all sensors fail equally in rain
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard