8-18 GACHA TO’GRI JAVOBLAR
8.
Arduino Uno platasi 13 pinga LED ulangan bo’lsa, ,ushbu dastur bir marotaba
bajarilganda LED nechchi marotaba 1 soniya yonadi?
void loop() {
for (int i=0, j=10; i==j; i++ ) { digitalWrite(13, HIGH);delay(1000);
digitalWrite(13, LOW); j--; }}
o
10
o
20
•
0
o
Cheksiz
9.
Arduino Uno platasi 13 pinga LED ulangan bolsa, ushbu dastur bir marotaba
bajarilganda LED nechchi marotaba 1 soniya yonadi?
void loop() {
for (int i=0, j=10; i<20; i++ ) { digitalWrite(13, HIGH);delay(1000);
digitalWrite(13, LOW); i+=j;} }
o
1
•
2
o
0
o
Cheksiz
10.
Arduino Uno platasi 13 pinga LED ulangan bolsa, ushbu dastur bir marotaba
bajarilganda LED nechchi marotaba 1 soniya yonadi?
void loop() {
for (int i=0; i<20; i++ ) { digitalWrite(13, HIGH);delay(1000); digitalWrite(13,
LOW); i*=i; }}
o
0
o
2
•
4
o
Cheksiz
11.
Tugma 2 pinga ulangan bo’lsa, uning holatini o'qiboladigan operatorni belgilang.
o
pinMode(2, INPUT_PULLUP);
o
intsensorVal = analogRead(2);
•
intsensorVal = digitalRead(2);
o
intsensorVal= digitalRead(2);
12.
Dasturda tugma(2-pin) bosilganda LED chirog’i(13-pin) yonishi uchun nuqtalar
o’rnida qaysi operator to’g’ri ko’rsatilgan?
void loop() {intsensorVal = digitalRead(2);
if (…………..) { digitalWrite(13, LOW); } else { digitalWrite(13, HIGH); }}
o
sensorVal ==digitalRead(2);
o
sensorVal == HIGH
•
sensorVal == LOW
o
sensorVal == HIGH || sensorVal == LOW
13.
Dasturda tugma(2-pin) bosilganda LED chirog’i(13-pin)o’chishi uchun nuqtalar
o’rnida qaysi operator to’g’ri ko’rsatilgan?
void loop() {intsensorVal = digitalRead(2);
if (…………..) { digitalWrite(13, LOW); } else { digitalWrite(13,
HIGH); } }
o
sensorVal ==digitalRead(2);
•
sensorVal == HIGH
o
sensorVal == LOW
o
sensorVal == HIGH || sensorVal == LOW
14.
Arduino Uno platasi 13 pinga LED ulangan bolsa, bir yonishda LED qancha vaqt
davomida yonadi?
void loop() {
for (int i=100; i<=500; i=i+100 ) { digitalWrite(13, HIGH);delay(i); }
digitalWrite(13, LOW); }
•
1,5 soniya
o
2 soniya
o
0,5 soniya
o
1 soniya
15.
Arduino Uno platasi 13 pinga LED ulangan bolsa, bir yonishda LED qancha vaqt
davomida yonadi?
void loop() {
for (int i=0; i<6; i++ ) { digitalWrite(13, HIGH);delay(i*100); }
digitalWrite(13, LOW); }
•
1,5 soniya
o
2 soniya
o
0,5 soniya
o
1 soniya
16.
Arduino Uno platasi 13 pinga LED ulangan bolsa, bir yonishda LED qancha vaqt
davomida yonadi?
void loop() {
for (int i=100; i<500; i=i+100 ) { digitalWrite(13, HIGH);delay(i); }
digitalWrite(13, LOW); }
o
1,5 soniya
o
2 soniya
o
0,5 soniya
•
1 soniya
17.
Arduino Uno platasi 13 pinga LED ulangan bolsa, bir yonishda LED qancha vaqt
davomida yonadi?
void loop() {
for (int i=100; i<=500; i=i+100 ) { if(i==500)i+=500; digitalWrite(13,
HIGH);delay(i); }
digitalWrite(13, LOW); }
o
1,5 soniya
•
2 soniya
o
0,5 soniya
o
1 soniya
18.
Arduino Uno platasi 13 pinga LED ulangan bolsa, bir yonishda LED qancha vaqt
davomida yonadi?
void loop() {
for (int i=1; i<5; i++ ) { digitalWrite(13, HIGH);delay(i*100); }
digitalWrite(13, LOW); }
o
1,5 soniya
o
2 soniya
o
0,5 soniya
•
1 soniya
Do'stlaringiz bilan baham: |