Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C programming and Arduino Basics

Total questions: 15

Worksheet time: 6mins

Name
Class
Date
1.

What is written in the Definition Section of a C code

4 lines
2.

Which is the format specifier for unsigned long int

a)

%ld

b)

%ul

c)

%lu

d)

%d

3.

What is the precision of Double (after decimal point)

a)

19

b)

6

c)

15

d)

12

4.

Standard c library files are added during which step of the compilation process

a)

Linker

b)

Compiler

c)

Assembler

5.

What is the extension of an executable file

(a)  

6.

Which is the microcontroller present in Arduino

a)

ATMEGA328

b)

ATMEGA238

c)

ATMEGA326

d)

ATMEGA236

7.

How many PWM pins does Arduino have

a)

5

b)

8

c)

6

d)

7

8.

What is the data memory in Arduino

a)

FLASH

b)

DRAM

c)

EEPROM

d)

SRAM

9.

How many bits are required to transmit 8 bit data to a slave of 8 bit address using I2C protocol

a)

18

b)

19

c)

20

d)

21

10.

Which protocol does USB use

a)

IC2

b)

SPI

c)

URAT

11.

Which is the software or a programming language used for controlling of Arduino?

a)

C sharp

b)

C

c)

Assembly language

d)

Any Language

12.

Arduino IDE consists of 2 functions. What are they?

a)

Build() and loop()

b)

Setup() and build()

c)

Setup() and loop()

d)

Loop() and build() and setup()

13.

A program written with the IDE for Arduino is called ___

a)

IDE source

b)

Sketch

c)

Cryptography

d)

Source code

14.

Which function runs a set of codes only once?

a)

void main()

b)

void setup()

c)

void loop()

d)

void set()

15.

How many arguments does the digitalRead() function have?

a)

1

b)

2

c)

3

d)

4