Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Give this quiz to my class
Q 1/40
Score 0
Choose the correct answer for the PORTD=15; in the code list below
void setup()
{
DDRD = B11111111;
}
void loop()
{
PORTD=15;
delay(1000);
}
120
PORTD will be 4 HIGH and 4 LOW.
PORTD will be 5 HIGH and 1 LOW.
PORTD will be 1 HIGH and 5 LOW.
PORTD will be 4 outputs and 4 inputs.
Q 2/40
Score 0
What is the right instruction that will make pins in PORT D 1, 2, 3, 6 and 7 high and other pins low?
120
PORTD = B11001110;
PORTD = B00110001;
PORTD = B01110010;
PORTD = B01100111;
40 questions
Q.
Choose the correct answer for the PORTD=15; in the code list below
void setup()
{
DDRD = B11111111;
}
void loop()
{
PORTD=15;
delay(1000);
}
1
120 sec
Q.
What is the right instruction that will make pins in PORT D 1, 2, 3, 6 and 7 high and other pins low?
2
120 sec
Q.
What is the correct word that matches correctly with the comment:
pinMode(13,________); //declare LED as outputs ?
3
120 sec
Q.
What is the correct word that matches correctly with the comment:
pinMode(2,________); //declare Switch as inputs ?
4
120 sec
Q.
What is the correct instruction that matches correctly with the comment:
_________________ ; // sets pin 3 as input pin ?
5
120 sec
Q.
What is the correct instruction that matches correctly with the comment:
_________________ ; // sets pin 3 as output pin ?
6
120 sec
Q.
What is the correct word that matches correctly with the comment:
digitalWrite(13,_____); //turn LED ON ?
7
120 sec
Q.
What is the correct word that matches correctly with the comment:
digitalWrite(13,_____); //turn LED OFF ?
8
120 sec
Q.
What is the correct instruction that matches correctly with the comment:
____________________; // Makes the output voltage ( 3, 5V) ?
9
120 sec
Q.
What is the correct instruction that matches correctly with the comment:
__________________; //Makes the output voltage (3, 127) ?
10
120 sec
Q.
What is the correct instruction that matches correctly with the comment:
_________________; //reads the value of pin 2 in PORTD ?
11
120 sec
Q.
What is the correct instruction that matches correctly with the comment:
_________________; //reads the value of A0 in PORTC ?
12
120 sec
Q.
What is the correct comments that matches correctly with the instruction:
if(digitalRead(2)==High); //??
13
120 sec
Q.
The component labeled #7 is the
14
120 sec
Q.
The component labeled #6 is the
15
120 sec
Q.
The component labeled #5 is the
16
120 sec
Q.
The component labeled #4 is the
17
120 sec
Q.
The component labeled #3 is the
18
120 sec
Q.
The component labeled #2 is the
19
120 sec
Q.
The component labeled #1 is the
20
120 sec
Q.
identify the location of the analog pins on this Arduino board?
21
120 sec
Q.
The if-statement is used to
22
120 sec
Q.
Which statement of the following has the meaning of "if Variable X is equal to 0
23
120 sec
Q.
The for-loop is used to
24
120 sec
Q.
Which one of these for loops is properly written?
25
120 sec
Q.
Which bit of code is required before you can use your serial monitor?
26
120 sec
Q.
What is the default speed of the serial connection from the computer to the Arduino?
27
120 sec
Q.
What is Pulse Width Modulation (PWM)?
28
120 sec
Q.
In Microcontroller programming, after code execution, the hunt for errors in the code is called
29
120 sec
Q.
What is the range of possible values in an ANALOG signal?
30
120 sec
Q.
What is the range of possible values in an PWM?
31
120 sec
Q.
To make a delay of (1.5 Sec) use:
32
120 sec
Q.
What is the result of the following operation:
int X = 5;
int Y = 10;
int Z = 0;
Z = Y + X;
Z++;
33
120 sec
Q.
What is the value will be in PORTD after run the program?
PORTD=0x1;
if(PORTD==1)
{ PORTD=0xF0;
delay (1000);
}
else
PORTD = 0x0F;
}
34
120 sec
Q.
How many times the following loop will be repeated:
int x = 2;
while(x<=6)
{ PORTB = 255;
delay(1000);
PORTB = 0;
delay(1000);
x++; }
35
120 sec
Q.
What will happen when you run the following codes:
int i=0;
while(i<10)
{
PORTD = 0xFF;
delay(1000);
PORTD = 0x00;
delay(1000);
i++;
}
36
120 sec
Q.
What will happen when you run the following codes:
int i=0;
while(i<10)
{
PORTD = 0xFF;
delay(1000);
PORTD = 0x00;
delay(1000);
}
37
120 sec
Q.
Referring to the codes listed below, how many times the loop will be repeated?
for(int i = 0 ; i <=5 ; i++)
{
PORTD = 0xFF;
delay(1000);
PORTD = 0x00;
delay(1000);
}
38
120 sec
Q.
What is the final value of the variable num after running the following codes?
int num = 0;
for(int i = 0 ; i <=10 ; i++)
{
if(i<4) {num = num + 2;}
}
39
120 sec
Q.
What is the correct instruction that can satisfy with the comments:
_______________(3,HIGH); //turn LED ON ?