Font size
WorksheetsInternship Day 3
Total questions: 12
Worksheet time: 9mins
loop is use to
Repeat same kind of code
use to Assignee a value to a label
Make a variable
Chose the correct one Related to Data type
int - integer [-1,2,30]
char - character ['A','1','C']
int - integer [-1.0,2.5,30]
char - character ['A','1','C']
float- Real Number [-1.0,2.3,3.8]
float- Positive Numbers [ 2,3.8.4]
Rules in make a variable name
Start with number or Underscore
Start with a character or number
Start with a Character or an underscore
must Start with an underscore
Syntax of Declare a variable
<variable name> <data type>
<variable name> <data type>;
<data type> <variable name>
<data type> <variable name>;
create a integer type variable Which name is number and its assignee a value 11
(a)
create a Character type variable Which name is ch
(a)
part of an array
Initialization
Condition
updating
body
Predict The output
for(int i=0;i<10;i=i+1){
//Statement
}
how meny time execute the statement
11
10
9
5
Which one is correct for an array
int ar[5]={1,2,3,4,5};
int ar={1,2,3,4,5};
int ar[5]={1,2,3,4,5,6};
int ar[]={1,2,3,4,5};
int arr[5]={5,10,25,35,15};
Replace Value 35 to 26 Select the correct one
arr[3]=35;
arr[35]=26;
arr[4]=26;
arr[3]=26;
Make a array of integer its name as Number and its size is 5;
(a)
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
