IOT and applications (3160716) MCQs

MCQs of Arduino and Raspberry Pi

Showing 1 to 8 out of 8 Questions
1.

To store a variable 8 bit data, it should be declared as

(a)

int

(b)

char

(c)

float

(d)

double

Answer:

Option (b)

2.

How many minimum functions must be written in any arduino code?

(a)

0

(b)

1

(c)

2

(d)

3

Answer:

Option (c)

3.

For writing infinite loop in Arduino, which function it uses?

(a)

void setup( )

(b)

void loop( )

(c)

void main( )

(d)

None of these

Answer:

Option (b)

4.

If a code is to be written single time it is written in which function?

(a)

void setup( )

(b)

void loop( )

(c)

void main( )

(d)

None of these

Answer:

Option (a)

5.

Normally, an LED is connected to ______ pin of Arduino.

(a)

Analog

(b)

Digital

(c)

Analog and Digital

(d)

None of these

Answer:

Option (b)

6.

The output of following code will be:
void setup()

   pinMode(2,OUTPUT);
   digitalwrite(2,HIGH);
}
Void loop()
{
}

(a)

Logic ‘1’ at pin 2

(b)

Digit 1 at pin 2 

(c)

Decimal value ‘1’ at pin  2

(d)

error

Answer:

Option (d)

7.

delay(200);

Above line in arduino IDE generates the delay of _________

(a)

0.2s

(b)

20s

(c)

0.02s

(d)

200s

Answer:

Option (a)

8.

A function to generate micro second delay in Arduino is

(a)

delayms( )

(b)

delayus( )

(c)

delay( )

(d)

delayMicroseconds( )

Answer:

Option (d)

Showing 1 to 8 out of 8 Questions