Reviewer for Computer PDF
Document Details
Uploaded by Deleted User
Sir Jhoeman Pogi
Tags
Summary
This document contains practice questions related to Arduino programming. The questions cover various concepts and functionalities of Arduino IDE. These questions are suitable for those learning or reviewing Arduino coding practice.
Full Transcript
REVIEWER FOR COMPUTER SIR JHOEMAN POGI A breadboard is a tool for ________ electronic circuits. a. Testing c. Playing b. Cooking d. Prototyping Breadboard is Solderless, so you can just plug and pull out electronic components. a. True...
REVIEWER FOR COMPUTER SIR JHOEMAN POGI A breadboard is a tool for ________ electronic circuits. a. Testing c. Playing b. Cooking d. Prototyping Breadboard is Solderless, so you can just plug and pull out electronic components. a. True b. False c. No, need to solder everything together d. Maybe sometimes A ________ is an electrical component that converts electrical energy into light. a. Buzzer c. Fuse b. LED d. Both a and c A type of conductive path a. Dog c. Wires b. Rubber d. Plastic __________ is used to configure a pin as either an input or an output. To use it, you must declare the number of the pin to configure or the name of the variable and the constant INPUT or OUTPUT. a. pinMode() c. digitalWrite() b. delay() d. for() ___________ is used to turn digital pins HIGH or LOW (ON or OFF). To set a pin, you simply state which pin you would like to change the output and what state it will be (HIGH or LOW). a. pinMode() c. digitalWrite() b. delay() d. for() _________ are how you explain or inform people reading your sketch on what it does. It is a good practice to put _______ on your sketches, in case you forgot how the sketch functions. a. Commute c. Comments b. Computer d. Comma _______ are used to label and store a piece of data. a. Letters c. Numbers b. Variables d. Name A 16-bit integer. Storing an integer means storing whole numbers. It can hold positive and negative whole numbers ranging from -32768 to 32767. a. int c. char b. byte d. setup An 8-bit variable. Storing char means storing letters. Interprets as a character like ‘a’ or ‘!’. a. int c. char b. byte d. setup What are the main two main program structures of an Arduino IDE sketch? a. variable and int c. setup and loop b. main and loop d. void and loop This button in Arduino IDE software is used for multiple sketch programming. a. Upload c. Text console b. Sketch editor d. Tab menu his button in Arduino IDE software is use to check if there are errors in your sketch a. check c. upload b. verify d. save How would you pause a program for 10 sec? a. delay(10); c. delay(1000); b. delay(100); d. delay(10000); This is the command is used to indicate that LED1 variable is an output a. pinMode (LED1,OUTPUT); b. Pinmode(LED1,OUTPUT); c. digitalWrite(LED1,HIGH); d. Digitalwrite(LED1,HIGH); What command would you use to tell Arduino that a variable “LED1” is located in a digital pin port 7? a. int LED1 = 9; c. Var LED1 = 9; b. Int LED1 = 9; d. var LED1 = 9; BUNUS How many ground pins does Arduino UNO have? a. 1 c. 3 b. 2 d. 4 How many digital ports does Arduino UNO have? a. five, labeled A1-A5 b. Six, labeled A0-A5 c. Thirteen, labeled 1-13 d. Fourteen, labeled 0-13 What is the recommended input voltage range of DC power supply that Arduino UNO can handle? a. 5 - 20 V c. 9 - 12V b. 7- 12 V d. 6 - 20V Synt Description ax x++ Increment x by one and returns the old value of x ++x Increment x by one and returns the new value of x x-- Decrement x by one and returns the old value of x --x Decrement x by one and returns the new value of x