Spēle 1

Quiz
•
Computers
•
8th Grade
•
Hard
Rita A
Used 2+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kurā mājas lapas daļā pievieno norādīto elementu?
<canvas id="spele" width=500 height=500 style="border:1px solid"></canvas>
HTML
JavaScript
CSS
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kurā mājas lapas daļā pievieno norādītos elementus?
var pamatne = document.getElementById("spele");
var zimejums = pamatne.getContext("2d");
HTML
JavaScript
CSS
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Kādu elementu izveido ar norādītajām komandām?
<canvas id="spele" width=500 height=500 style="border:1px solid"></canvas>
<script>var pamatne = document.getElementById("spele");
var zimejums = pamatne.getContext("2d");</script>
Objektu kustību
Zīmējumu
Spēles laukumu
Objektu parādīšanās
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Ar kuru priekšrakstu nodrošina objekta ievietošanu pamatnē?
function Satiekas(x1, y1, img1, x2, y2, img2) {
if (x1 >= x2 + img2.width || x1 + img1.width <= x2) return false;
if (y1 >= y2 + img2.height || y1 + img1.height <= y2) return false;
return true;
}
function biidiit(e) {
if (e.keyCode == 37 && kakis_x > 0) {
kakis_x = kakis_x - 10;
}
if (e.keyCode == 39 && kakis_x + kakis.width < spele.width) {
kakis_x = kakis_x + 10;
}
}
var kakis_x = 0;
var kakis_y = 0;
var kakis = new Image();
kakis.src = "http://icons.iconarchive.com/icons/icojam/animals/64/01-cat-icon.png";
if (lase_y > spele.height) {
lase_y = 0;
lase_x = Math.random() * spele.width;
}
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Kura no funkcijām izveido taimeri?
function kadrs() {
zimejums.clearRect(0, 0, spele.width, spele.height);
zimejums.drawImage(kakis, kakis_x, kakis_y);
setInterval(kadrs, 25);
if (lase_y > spele.height) {
lase_y = 0;
lase_x = Math.random() * spele.width;
}
function biidiit(e) {
if (e.keyCode == 37 && kakis_x > 0) {
kakis_x = kakis_x - 10;
}
if (e.keyCode == 39 && kakis_x + kakis.width < spele.width) {
kakis_x = kakis_x + 10;
}
function Satiekas(x1, y1, img1, x2, y2, img2) {
if (x1 >= x2 + img2.width || x1 + img1.width <= x2) return false;
if (y1 >= y2 + img2.height || y1 + img1.height <= y2) return false;
return true;
}
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Ko dara komanda
kakis_y = spele.height - kakis.height;
Novieto objektu zīmējuma labajā pusē
Novieto objektu zīmējuma kreisajā pusē
Novieto objektu zīmējuma apakšā
Novieto objektu zīmējuma augšā
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Ko dara funkcija
function kadrs() {
zimejums.clearRect(0, 0, spele.width, spele.height);
zimejums.drawImage(kakis, kakis_x, kakis_y);
setInterval(kadrs, 25);
Skaita punktus
Pārvieto objektu pa kreisi
Pārvieto objektu pa labi
Izveido taimeri
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Команди графічного модуля

Quiz
•
1st - 12th Grade
15 questions
CSS Properties

Quiz
•
7th - 9th Grade
12 questions
Papildinātā realitāte

Quiz
•
7th - 12th Grade
15 questions
Code.org CS Discoveries Lessons 3-7 Review

Quiz
•
6th - 8th Grade
14 questions
p5.js Week1 PREtest

Quiz
•
7th - 12th Grade
15 questions
Representing Images

Quiz
•
8th - 10th Grade
17 questions
Web Development - CSS (Styling)

Quiz
•
6th - 8th Grade
15 questions
[RB3-Ch2] Working on Word

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
16 questions
Clovis Unified Student Use of Technology

Quiz
•
4th - 8th Grade
11 questions
Technology Acceptable Use

Quiz
•
6th - 8th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
15 questions
Student Technology Agreement

Quiz
•
6th - 8th Grade
10 questions
Acceptable Use of Technology

Quiz
•
7th - 8th Grade