
Common Programming Errors Quiz

Quiz
•
Computers
•
3rd Grade
•
Hard
FARHAN MOHAMAD
Used 1+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Meine Schätze

Quiz
•
3rd Grade
11 questions
EXAMEN DE 5 GRADO PRIMARIA

Quiz
•
1st - 5th Grade
15 questions
Peripheral Komputer

Quiz
•
1st - 3rd Grade
10 questions
Arduino Tinkercad

Quiz
•
3rd Grade
13 questions
SESIÓN 15 BRAZO ROBÓTICA

Quiz
•
1st - 5th Grade
15 questions
Cable Types

Quiz
•
2nd - 6th Grade
11 questions
Robótica 3 Básico b 1P

Quiz
•
1st - 3rd Grade
10 questions
Email Quiz - PWHS

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
13 questions
Subject Verb Agreement

Quiz
•
3rd Grade
15 questions
Plural Nouns

Quiz
•
3rd Grade
10 questions
Place Value

Quiz
•
3rd Grade
17 questions
Multiplication facts

Quiz
•
3rd Grade
20 questions
Irregular Plural Nouns

Quiz
•
3rd Grade
20 questions
Subject and Predicate Review

Quiz
•
3rd Grade
20 questions
Division Facts

Quiz
•
3rd Grade
12 questions
Map Skills

Quiz
•
3rd Grade