wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Internship Day 3

Total questions: 12

Worksheet time: 9mins

Name
Class
Date
1.

loop is use to

a)

Repeat same kind of code

b)

use to Assignee a value to a label

c)

Make a variable

2.

Chose the correct one Related to Data type

a)

int - integer [-1,2,30]

char - character ['A','1','C']

b)

int - integer [-1.0,2.5,30]

char - character ['A','1','C']

c)

float- Real Number [-1.0,2.3,3.8]

d)

float- Positive Numbers [ 2,3.8.4]

3.

Rules in make a variable name

a)

Start with number or Underscore

b)

Start with a character or number

c)

Start with a Character or an underscore

d)

must Start with an underscore

4.

Syntax of Declare a variable

a)

<variable name> <data type>

b)

<variable name> <data type>;

c)

<data type> <variable name>

d)

<data type> <variable name>;

5.

create a integer type variable Which name is number and its assignee a value 11

(a)  

6.

create a Character type variable Which name is ch

(a)  

7.

part of an array

a)

Initialization

b)

Condition

c)

updating

d)

body

8.

Predict The output

for(int i=0;i<10;i=i+1){

//Statement

}

how meny time execute the statement

a)

11

b)

10

c)

9

d)

5

9.

Which one is correct for an array

a)

int ar[5]={1,2,3,4,5};

b)

int ar={1,2,3,4,5};

c)

int ar[5]={1,2,3,4,5,6};

d)

int ar[]={1,2,3,4,5};

10.

int arr[5]={5,10,25,35,15};

Replace Value 35 to 26 Select the correct one

a)

arr[3]=35;

b)

arr[35]=26;

c)

arr[4]=26;

d)

arr[3]=26;

11.

Make a array of integer its name as Number and its size is 5;

(a)  

12.

int LED[]={10,11,12,8};

void setup(){

for(int i=0;i<4;i++)

(a)  

}

void loop(){}

fill the blank the line is simply set the all pins are set as OUTPUT