Font size
WorksheetsPretest Pemrograman
Total questions: 50
Worksheet time: 1hrs 15mins
tag html untuk membuat garis horizontal
(a)
tag html untuk membuat posisi teks
bgcolor="red"
align="center"
<center>
<merge>
tag html yang benar untuk tabel adalah?
</table><table>
<tabel></tabel>
<table></table>
</tabel><tabel>
table header
<tb>
<td>
<tr>
<th>
membuat baris
<tb>
<td>
<tr>
<th>
tag html untuk menulis data dalam tabel
(a)
membuat jarak antara dinding sel dan sel
cellpading
cellspacing
membuat jarak antara sel dan sel
cellpading
cellspacing
cara menulis atribut cellpadding yang benar adalah
<cellpading=10>
<cellpading="10">
<=cellpadding"10">
<"10" cellpading>
apa fungsi tag <border="1">
(a)
sets the color of words in a paragraph
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
This is a picture of a ____.
CSS Rule
HTML Rule
Tags
Coding
The blue is called an _____________
Declaration
Selector
Property
Value
The blue is called an _____________
Declaration
Selector
Property
Value
The blue is called an _____________
Declaration
Selector
Property
Value
The blue is called an _____________
Declaration
Selector
Property
Value
What color will this element be?
Green
Blue
Red
No color
Looking at the picture below, based on those 3 important rules to remember, what will the color of the text be?
Red
Blue
No color
White
The color this element will be________
Blue
Red
green
No color
CSS is the...
language for designing web pages
longitudinal compass for directions
way we send information to each computer
way we set up each tag
What symbol should you use to target an id in css?
.
+
id
#
What symbol should you use to target a class name in css?
#
()
.
class
What is the correct syntax to change the background color with css?
background-color: purple;
background-color = "purple";
backgroundcolor=orange
change-background-color: purple
TRUE OR FALSE: HTML is used to style web pages.
True
False
TRUE OR FALSE: CSS is used to style web pages
True
False
How do you change the font color with CSS?
font-color: green;
color: green;
change-font-color: green;
fontcolor=green;
Which of the following is the correct CSS link tag?
<link rel="styles" href="stylesheet.css">
<link href="stylesheet">
<link rel="stylesheet" src="styles.css">
<link rel="stylesheet" href="styles.css">
p {color: red;}
Choose which one is true!
num1 = 30
num2 = 9
division = num1 / num2
print("The result of " + str(num1) + " / " + str(num2) + " = " + str(Division))
num1 = 30
num2 = 9
division = num1 / num2
print("The result of " + str(num1) + " / " + str(num2) + " = " + int(division))
num1 = 30
num2 = 9
division = num1 / num2
print("The result of " + str(num1) + " / " + str(num2) + " = " + str(division))
num1 = 30
num2 = 9
division = num1 / num2
print("The result of " + int(num1) + " / " + int(num2) + " = " + str(division))
Check which statements are true!
1.Assignment operator 🡆 += (added by) can be use to make an increment of a variable.
2.Comparison operator 🡆 == (equal) can be used to set a variable value, not only to compare between variable and the value.
3.Logical operator 🡆 or is to set between two conditions that returns true if one of them is true.
4.""" Comments are also good to show other developer what you are doing with your code. For example: """
1, 2, 3
1, 3, 4
1, 2, 4
1, 2, 3, 4
How to write an input and output command in Phyton text editor that will result like below? The variable input is name.
Please enter your name:
Hi, Aan
name = input(Please enter your name:)
print("Hi, "+name)
name = (int(input("Please enter your name:"))
print("Hi, "+name)
name = input("Please enter your name:")
print("Hi, "+str(name))
name = input(Please enter your name:)
print("Hi, "+name)
What is missing from this function?
def odd_even_checker(num):
if num < 1
print("The number is less than 1 :(")
elif num > 100
print("The number is more than 100 :(")
else:
if num%2 == 0
print("The number is even!")
else
print("The number is odd!")
:
and
;
{}
What is the result of this code?
colors = ["Red" ,"Blue" ,"Yellow" ,"Red"]
print("Name of colors are as follow:")
for color in colors:
print(color)
Name of colors are as follow:
Red
Blue
Yellow
Red
Name of colors are as follow:Red, Blue, Yellow, Red
Name of colors are as follow:"Red""Blue""Yellow""Red"
Name of colors are as follow:RedBlueYellowRed
Serial.print(namasensor) digunakan untuk ?
(a)
void loop() {
digitalWrite(pin, HIGH);
delay(1000);
digitalWrite(pin, LOW);
delay(1000);
}
Pada pernyataan di ata program akan berjalan secara...
(a)
int (integer) dapat menyimpan data sebesar .... bytes
2 bytes
4 bytes
6 bytes
3 bytes
5 bytes
Perhatikan potongan program berikut ini !!
// check a sensor every 10 times through a loop
void loop()
{
i++;
if ((i % 10) == 0) { // read sensor every ten times through loop
x = analogRead(sensPin);
}
/ ...
}
// setup a buffer that averages the last five samples of a sensor
int senVal[5]; // create an array for sensor data
int i, j; // counter variables
long average; // variable to store average
...
void loop() {
// input sensor data into oldest memory slot
sensVal[(i++) % 5] = analogRead(sensPin);
average = 0;
for (j=0; j<5; j++) {
average += sensVal[j]; // add up the samples
}
average = average / 5; // divide by total
// send the analog input information (0 - 1023) Serial.print(value % 128, BYTE); // send lowest 7 bits Serial.print(value >> 7, BYTE); // send highest three bits
UNTUK OPERASI MATEMATIKA APAKAH POTONGAN PROGRAM DI ATAS ?
perkalian
pembagian
sisa hasil bagi
pengurangan
perpangkatan
Bilangan konstan pada arduino digunakan untuk (a)
Apakah perbedaan dari syntax delay dan milis pada arduino?
satuan waktu yang digunakan
perhitungan nilai second
penggunaan variabel
lamanya waktu jeda program
penulisan struktur program
Dari simbol boolean dibawah ini, manakah yang digunakan untuk operasi logika OR ?
&&
||
!
//
~
Perhatikan potongan program dibawah ini !!
do {
delay(50); // wait for sensors to stabilize
x = readSensors(); // check the sensors
.......
Program diatas belum sempurna, potongan program manakah yang tepat untuk menyempurnakan program tersebut ?
var++;
}
case 2:
//do something when var == 2
break;
default:
// if nothing else matches, do the default
// default is optional
}
} while (x < 100);
analogWrite(PWMpin, i);
delay(10);
}
else if (pinFiveInput >= 1000)
{
// do Thing B
}
Struktur pengendali for pada pemrograman arduino berfungsi untuk ?
(a)
Menunjukkan board apakah angka 10 pada gambar di atas ?
RESET
PIN VCC/GND
PIN I/O DIGITAL
TX/RX
PIN I/O ANALOG
Pertama kali menulis program di Arduino adalah setting, dengan ...
Void Loop
Void setup
Void Input
Void Output
A micro-controller is...
small CPU made of transistors and conductors of heat and sound sensor
portable circuits capable of making other circuits
small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals
small chip made of silver
What does IDE stand for?
Integrated Development Environment
In Deep Environment
Internal Deep Escape
IDE
Before your program “code” can be sent to the board, it needs to be converted into instructions that the board understands. This process is called...
Stop
Compile
Create Sketch
Serial Monitor
Which command is called repetitively over and over again as long as the Arduino has power.
loop ( )
(output)
setup ( )
(input)
