Ellie thinks she has found a bug in her program. The program is to make a toy robot stop when it gets to a wall. This is the bug: Forward Wall? Yes - Forward No - Stop Ellie corrects the code. What does she write?
0%
Forward Wall? Yes - Back No - Stop
0%
Forward Wall? Yes - Forward No - Back
100%
Forward Wall? Yes - Stop No - Forward
0%
Forward Wall? Yes - Back No - Forward
Q.2.
Freddy is designing toy traffic lights. He programs a toy car to stop when the lights are red and go when the lights are green. He writes this program: Go If Red, Go If Green, Go Freddy tests his program. But the car does not stop at a red light. Can you help Freddy debug his program? What should Freddy code?
0%
Stop - If Red, Go - If Green, Go
0%
Stop - If Red, Stop - If Green, Stop
100%
Go - If Red, Stop - If Green, Go
0%
Go - If Red, Stop - If Green, Stop
Q.3.
What is a mistake in a program called?
0%
A code
0%
A bit
100%
A byte
0%
A bug
Q.4.
Alice has a program to make a computer do sums. There are three codes she can use: ADD SUBTRACT SHOW Alice wants the computer to add two numbers and show the result. Alice writes: ADD SUBTRACT SHOW There is a bug in Alice’s code. What should she write?
100%
SUBTRACT SHOW
0%
SHOW ADD
0%
SHOW SUBTRACT
0%
ADD SHOW
Q.5.
Programs are written. Then they are tested. Any bugs are put right. Then they are tested again until they are working properly. This is called the _________ cycle.
100%
Cycling
0%
Debugging
0%
Yearly
0%
Round
Q.6.
Ellie’s program does not work. So Ellie looks for the bug and puts it right. Ellie is _________ the program.
0%
Debugging
0%
Executing
0%
Running
0%
Testing
Q.7.
Ellie debugs her program. It works really well all the time now. Ellie’s program is a _______.
0%
Failure
0%
Success
0%
Mess
0%
Disaster
Q.8.
Sunil has written a program for a washing machine. The washing machine must wash, rinse and spin in that order. He writes a code: Rinse Wash Spin His program does not work properly. What should Sunil write?
0%
Spin Rinse Wash
0%
Wash Spin Rinse
0%
Rinse Wash Spin
0%
Wash Rinse Spin
Q.9.
Ellie is trying out a program. She is _______ it.
0%
Writing
0%
Spelling
0%
Testing
0%
Adding
Q.10.
What will happen if there is a bug in Ellie’s program?
0%
The program will work properly
0%
The program will not work properly
0%
The program will work all the time
0%
The program will be great
Support mcqgeeks.com by disabling your adblocker.
Please disable the adBlock and continue. Thank you.