
Common Programming Errors Quiz
Quiz
•
Computers
•
3rd Grade
•
Practice Problem
•
Hard
FARHAN MOHAMAD
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Common syntax error in coding include
Spelling errors.
Missing/wrong type of brackets.
Missing semicolons at the end of lines.
All of the above.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Refer to the segment of coding below int sensorValue1 = 0 int sensorValue2 = 0 Correct the syntax error that is stopping the program from working.
Insert brackets.
Correct spelling errors.
Change the data type used.
Add semicolons at the end of lines.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The segment of coding below shows the setup function in a typical Arduino sketch. void setup() { Serial.begin(9600); Serial.print("Temp = "); } Describe the possible display on the serial monitor.
Serial monitor will display 9600
Serial monitor will display Temp =
Serial monitor will display Nonsense
Serial monitor will not display anything
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Figure 4-1 shows the message displayed in the Arduino IDE message window Suggest a possible compiling error with respect to the message displayed
Syntax error.
The baud rate is not set correctly.
The sketch is not uploaded successfully.
Microcontroller is not connected to the computer.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The segment of coding below shows the loop function in the “blink” sketch. void loop() { digitalwrite(LED_BUILTIN, HIGH); delay(1000); digitalwrite(LED_BUILTIN, LOW); delay(500); } Will the build-in LED blink? Why?
Yes. The LED will Blink, there is no compiling error.
No. Because the delay in line 5, (500) is not applicable.
No. Because there are syntax error on line 2 and line 4.
No. Because there are spelling mistakes in line 2 and 4.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When initiating the Serial monitor in code, its baud rate has to be set a ..
to 9600.
Less than 9600.
more than 9600.
to the same value as the value in the code.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The complete sketch of the “blink” program is shown below.
void setup() {
pinMode(LED_BUILTIN, OUTPUT); }
void loop()
digitalWrite(LED_BUILTIN, 1);
delay(1000);
digitalWrite(LED_BUILTIN, 0);
delay(1000);
}
Suggest a possible compiling error that is preventing the sketch from uploading successfully.
Missing bracket in the sketch.
Syntax error for delay() function.
Syntax error for pinMode() function.
Syntax error for digitalWrite() function.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
GENDER EQUALITY
Quiz
•
2nd - 5th Grade
10 questions
Email Quiz - PWHS
Quiz
•
1st - 12th Grade
10 questions
Among us youtubers
Quiz
•
KG - Professional Dev...
10 questions
Bitmap v Vector Images
Quiz
•
KG - University
11 questions
Regreso a Clases 2023
Quiz
•
1st - 5th Grade
10 questions
Cyber Safety Yr 2
Quiz
•
1st - 3rd Grade
8 questions
Keyword Internet searches
Quiz
•
2nd - 5th Grade
10 questions
Reading a map
Quiz
•
2nd - 5th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
