pinMode()
digitalWrite()
analogWrite()
setPin()
Encoding
Decoding
Calculation
Processing
To change the digital signal reference value
To change the analog signal reference value
To print the analog signal reference voltage.
To print the digital signal reference voltage.
Infinite
1
0
2
Easy to learn
Huge community
many third-party libraries
All of the above
less
high
same
Depends on the temperature
What will be the output of the following code?
int main(){ int a=5; while(a=123) { printf("RABBIT\n"); } printf("GREEN"); return 0;}
RABBIT is printed unlimited number of times
RABBIT GREEN
Compiler error
GREEN
avrgcc
g++
cpython for windows
avrdude
Massimo Banzi
Kevin Ashton
Tim berner Lee
None of the Above
Arduino nano
Lilypad
Arduino uno
Arduino mega
Students, tutors
Other sources, tutors
Tutors, fellow learners
None of the above
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
16 MHz
12 MHZ
18 MHz
14 MHz
3.5V
5V
10V
3.3V
Compile
Verify
Terminate
Serial monitor
4
8
16
10
11
12
13
loop()
setup()
selay()
Write
Read
Peruse
Study
Java
HTML
C/C++
Python
dataType const PROGMEM variableName [] = {};
data type PROFMEM const variableName [] = {};
const data Type variableName [] PROGMEM = {};
const data Type PROGMEM variableName []= {};
Tell compiler where to find symbols that are not present in program
Give compiler instructions to compile the program
Define variables
Define functions
#
//
!-
/*
5-10 Sec
5-10 MS
10-15 MS
10-20 MS
void main(){ int x = 5*6/2 +8; printf("%d",x); return 0;}
20
21
23
19
Integrated Development Environment
Interfaced Developed Module
Interleaving Deficit Expander
Interleaving The Developed Environment
9
5
6
VHDL programming
IDE
ICSP
इनमें से कोई नहीं
Call & Jump
Getchar & putchar
Call & Return
Return & Jump
Error
Value
Size
Address
Only loop()
only setup()
setup() and loop()
can be either loop() or setup()
Environment
PC
SOME
input
output
input & output
none of the mentioned
Ohm
Farad
Henry
Coulomb
3
Application Programming Interface
Address Programming Interface
Accessing peripheral through the interface
Microprocessor
Timer
Oscillator
Microcontroller
What is the out come of the following Arduino code?
void setup(){
Serial.begin(9600);
}
void setup0{
Serial.write(20);
Send a signal to pin 20 on the Arduino board
Send a octal number of 20 through the Serial pins
Send a byte with value 20 through the Serial pins
Send a hexadecimal number of 20 through the Serial pins
Capacitance
Resistance
Inductance
None of these
Code
Source code
Sketch
Paint
analog pin
digital pin
any one
Accounting
Non-repudiation
Sniffing
Authorization
Pulse Width Modulation.
Pulse Wide Modulation
Plain width modulation
JAVA
Android
C++
General-Purpose Input/Output
General-Purpose Inner/Outer
Both (A) & (B)
if a voltage of 5V is applied to the pin equivalent to the A0 pin on an Arduino UNO, what is the output of the programmed below?
void setup() { Serial.begin(9600); pinMode(A0, INPUT);}void loop() { int s = analogRead(A0); Serial.println(s);}
1024
100
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
What will be the output of the following code
#include <stdio.h> void solve(){ int b=4; int res = b++ + ++b + ++b; printf("%d", res); } int main(){ solve(); return 0; }
15
17
Analog
Digital
Both A & B