#
//
!-
/*
A2
D2
PWM
5V
0
Error
4
6
To boot up the Arduino
To exit any code that is running
To automate functions
To make more memory
Predict the output of the following code if the object is moving away from the sensor
int op = 7; int isBarrier = HIGH; void setup() { pinMode(op, INPUT); Serial.begin(9600); } void loop() { isBarrier = digitalRead(op); if (isBarrier == LOW) { Serial.println("1+"); } else { Serial.print("clear+"); } delay(100); }
clear+clear+1+1
1+1+clear+clear
clear+clear+clear+clear
1+1+clear+1
loop()
setup()
selay()
digitalWrite()
What is the output of the following program?
for(;;) {Statements}
Statemernts will run forever
This an infinite loop
Both (B) and (C)
digitalRead()
for()
pinMode()
delay()
AT91SAM3x8E
AT90S2313
ATmega328p
AT90S/LS8535
What is the output of C Program?
int main(){ int k=10; while(k <= 12) { printf("%d", k); k++; } return 0;}
10 10 10
12 12 12
10 11 12
12 11 10
Damage is caused
Sensor will work fine
Sensor will not respond for the time voltage applied
Sensor will function normally
Mobile phone
Television
Smart Speaker
Smart Meters
Laser emitting diode
Light Emitting diode
Lighting error diode
None of the above
void setup(), void loop()
void setup(), void main()
void main(), void loop ()
void setup(), void event ()
MQ-135
BMP280
DS18B20
PIR sensor
Prototyping
Casting
Protocasting
Protocal Typing
16 MHz
12 MHZ
18 MHz
14 MHz
e-textiles and wearables projects
sewn to fabric
AT mega 168V/ATmega328V
All of these
Analog sensor
Digital sensor
Light sensor
Dust sensor
Timing circuit
Break the circuit
Programmable circuit
Feedback circuit
Java
C/C++
Python
Assembly
3.5V
10V
3.3V
Programming language
Image editing software
Open-source electronics platform
Text editor
Tell compiler where to find symbols that are not present in program
Give compiler instructions to compile the program
Define variables
Define functions
Closed loop system
Semiclosed loop system
Open system
0 to 90 degrees
0 to 180 degrees
0 to 360 degrees
-90 to 90 degrees
Light crystal display
Liquid crystal display
Light cube display
All of the above
Arduino Due
Arduino Diecimila
Arduino BT
None of these
Icd.getcursor(0,0);
Icd.setcursor(0,0);
Icd.getcursor(0,1);
Icd.setcursor(0,1);
Transmits
Receives
Ground
Restarts
Arduino nano
Lilypad
Arduino uno
Arduino mega
Predict the output of the following code if the object is moving towards the sensor.
int op = 6;int isBarrier = HIGH;void setup() {pinMode(op, INPUT);Serial.begin(9600);}void loop(){isBarrier = digitalRead(op);if (isBarrier == LOW) {Serial.print("1+");}else{Serial.print("clear+"); delay(100);}
Ohm
Farad
Henry
Coulomb
What is the output of “pin 1” if “pin2” is sent “1011” where 1 is 5V and 0 is 0V?
int pin1 = 12;int pin2 = 11;void setup() { pinMode(pin1, OUTPUT); pinMode(pin2, INPUT); Serial.begin(9600);}void loop() { if(digitalRead(pin2)==1) { digitalWrite(pin1,LOW); }else if(digitalRead(pin2)==0) {digitalWrite(pin1,HIGH);}}
1110
0100
1111
1011
##
/**/
%%
Only loop()
only setup()
setup() and loop()
can be either loop() or setup()
int k={3,4}
int k=new int[2]
int k [2] = {3,4};
int k(2)={3,4};
Turbine
Windmill
Solar cell
Analog Revalue
Analog reference
Annuity reference
Amplified reference
Microprocessor
Coprocessor
microcontroller
controller
Receivers
Easy to learn
Huge community
many third-party libraries
True
False
Sometimes
Pauses the program for a specific amount of time
Stops the program permanently
Restarts the program
Initializes the board
May be
List
Structure
Array
Union
It is a name that Arduino uses for a program
Its the unit of code that is uploaded to run on an Arduino board
Both (A) and (B)
2
8
16
What is the objective of the code given below if it is executed on the Arduino Uno?
#include<EEPROM.h>int pin=13;void setup() {pinMode(pin,OUTPUT);Serial.begin(9600);{void loop()for(int i-0; i<EEPROM.length(); it+) {EEPROM.write(i, 1)digitalWrite(pin,HIGH;exit(0);}
Clear EEPROM
Fill EEPROM with 1's
Export EEPROM data
Fill EEPROM with 0's
delay(1);
delay(100);
delay(1000);
delay(60);