0% found this document useful (0 votes)
9 views9 pages

MCQ Iot

Uploaded by

priyankach03200
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views9 pages

MCQ Iot

Uploaded by

priyankach03200
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

MCQ Questions on Arduino Topics(UNIT-4)

1. Introduction to Arduino

What is Arduino?

a) A microcontroller board

b) A programming language

c) A type of computer

d) A network protocol

Answer: a

Arduino is mainly used for:

a) Video editing

b) Control system creation

c) PCB design

d) Cloud computing

Answer: b

Which feature simplifies Arduino's usability?

a) Standard board design

b) Cloud integration

c) High-power consumption

d) Sophisticated hardware setup

Answer: a

2. Architecture of Arduino

What does the Arduino architecture include?

a) USB port and microcontroller chip

b) GPU and USB-C ports

c) Hard drive and RAM


d) Keyboard and screen

Answer: a

The microcontroller in Arduino serves as:

a) The central processing unit

b) A display unit

c) A storage device

d) An external communication hub

Answer: a

3. Types of Arduino

Which of the following is an Arduino board?

a) Arduino Uno

b) Arduino Mega

c) Arduino Nano

d) All of the above

Answer: d

The Arduino LilyPad is specifically designed for:

a) Industrial automation

b) Wearable projects

c) Robotics applications

d) Cloud computing

Answer: b

How many versions of Arduino boards were commercially produced by 2016?

a) 7

b) 10

c) 17

d) 20

Answer: c
4. Arduino Programming Structure

The Arduino programming structure consists of:

a) Loop and setup functions

b) Header and footer files

c) External and internal libraries

d) Debugging and testing tools

Answer: a

What is the first function executed in an Arduino sketch?

a) loop()

b) main()

c) setup()

d) start()

Answer: c

5. Bare Minimum Code

The bare minimum code for an Arduino program includes:

a) setup() and loop()

b) loop() and main()

c) setup() and init()

d) main() and init()

Answer: a

In the setup() function, code is executed:

a) Only once

b) Continuously

c) Based on input

d) After the loop() function

Answer: a
6. Variables

Variables in Arduino are used to:

a) Store data

b) Define functions

c) Create classes

d) Debug errors

Answer: a

Which keyword is used to declare a constant variable in Arduino?

a) var

b) define

c) const

d) static

Answer: c

7. Serial Monitor

The Serial Monitor in Arduino is primarily used for:

a) Debugging and data visualization

b) Storing programs

c) Editing sketches

d) Uploading firmware

Answer: a

The Serial.begin() function initializes:

a) A variable

b) Serial communication

c) Looping structures

d) Conditional statements

Answer: b
MCQs

1.Which communication interface is built into Arduino boards?

a) Ethernet port

b) USB port

c) HDMI port

d) Serial port

Answer: b

2.Arduino is classified as:

a) A general-purpose computer

b) A development platform for embedded systems

c) A network switch

d) A high-performance graphics card

Answer: b

3.Arduino is ideal for beginners because it:

a) Requires no programming skills

b) Simplifies hardware and software integration

c) Is exclusively plug-and-play

d) Has no hardware requirements

Answer: b

4.The power supply for Arduino can be provided through:

a) USB cable or external battery

b) HDMI port

c) Wireless charging only

d) Solar panels only

Answer: a

5.The main processor on an Arduino Uno board is based on which architecture?


a) ARM Cortex

b) AVR

c) x86

d) PowerPC

Answer: b

6.The Arduino board includes a reset button that:

a) Erases the program

b) Stops the execution temporarily

c) Restarts the program from the beginning

d) Deletes all variables

Answer: c

7.Which Arduino board is best suited for larger projects requiring many pins?

a) Arduino Mega

b) Arduino Nano

c) Arduino Mini

d) Arduino LilyPad

Answer: a

8.What is a key feature of the Arduino Nano?

a) Small size for compact projects

b) Waterproof design

c) Built-in display

d) Wireless communication by default

Answer: a

9.The Arduino Leonardo is unique because:

a) It supports USB communication natively

b) It is solar-powered

c) It has an inbuilt GPS module


d) It does not require programming

Answer: a

10.The loop() function in Arduino is executed:

a) Only once

b) Continuously after setup()

c) On user input

d) Only when errors occur

Answer: b

11.Comments in Arduino programming start with:

a) // for single-line comments

b) /* for multi-line comments */

c) Both a and b

d) # for all comments

Answer: c

12.Arduino programs are written in:

a) Python

b) C/C++

c) Java

d) Assembly

Answer: b

13.What happens if the loop() function is left empty?

a) The program crashes

b) The Arduino performs no action

c) The Arduino runs default programs

d) An error message is displayed

Answer: b
14.The setup() function is typically used to:

a) Define variables

b) Initialize components like pins or libraries

c) Display data on the monitor

d) Handle loops

Answer: b

15.What is the default value of an uninitialized integer variable in Arduino?

a) 0

b) -1

c) Undefined

d) Null

Answer: c

16.Global variables in Arduino:

a) Can be accessed anywhere in the program

b) Can only be accessed in loop()

c) Can only be accessed in setup()

d) Are declared inside functions

Answer: a

17.Which data type in Arduino is used to store true or false values?

a) int

b) float

c) boolean

d) char

Answer: c

18.The Serial.print() function sends data:

a) To a connected monitor for debugging

b) To the cloud
c) To another Arduino board

d) To a storage device

Answer: a

19.What does Serial.available() return?

a) The number of bytes available to read

b) The size of the sketch

c) The amount of memory used

d) The connection status

Answer: a

20.To end serial communication, the correct function is:

a) Serial.close()

b) Serial.end()

c) Serial.disconnect()

d) Serial.stop()

Answer: b

You might also like