Common Programming Errors Quiz

Common Programming Errors Quiz

3rd Grade

10 Qs

quiz-placeholder

Similar activities

WORD TICS 1ASO 1AVT

WORD TICS 1ASO 1AVT

1st - 10th Grade

10 Qs

Spreadsheets 1

Spreadsheets 1

1st - 3rd Grade

10 Qs

Class III Computer Chapter 1

Class III Computer Chapter 1

3rd Grade

10 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Entering Text

Entering Text

3rd Grade

10 Qs

3° Repasando lo aprendido

3° Repasando lo aprendido

1st - 5th Grade

10 Qs

Wireshark Quiz

Wireshark Quiz

3rd Grade

15 Qs

Computers- Then and Now Grade 5

Computers- Then and Now Grade 5

2nd - 6th Grade

10 Qs

Common Programming Errors Quiz

Common Programming Errors Quiz

Assessment

Quiz

Computers

3rd Grade

Practice Problem

Hard

Created by

FARHAN MOHAMAD

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?