
1D COMP
Quiz
•
Education
•
University
•
Medium
Thitiyarath Nontawong
Used 5+ times
FREE Resource
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
ถ้าให้ x = 5; y = 7; z = 12;
และ k = (x + y) * z + y;
จงหาค่าของ k
74
128
151
96
47
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
สมการ z เท่ากับ x กำลังสอง บวก y กำลังสอง เขียนเป็นนิพจน์ในภาษาคอมพิวเตอร์ได้อย่างไร
z = x2 + y2;
z = x * x + y * y;
z = x * 2 + y * 2;
z = x ** 2 + y ** 2;
z = xx + yy;
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
ถ้ากำหนดให้ Relative Precedence ของ Operators เป็นไปตามลำดับดังนี้ 1) ++ -- 2) * / % 3) + - จากลำดับ Operator Precedence ด้านบน จงjหาค่าตัวแปรดังต่อไปนี้ x = 4 + 5 * 3;
x= 27
x = 19
x= 17
ไม่สามารถระบุค่าได้
ถูกทุกข้อ
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
กำหนดให้โปรแกรมมีชุดคำสั่งคือ
i = 0
i = i + 1
j = 1
j = i + j
เมื่อคอมพิวเตอร์ทำโปรแกรมนี้จนจบ ผลลัพธ์จากการทำงานคือข้อใด
i มีค่า 0
j มีค่า 0
j มีค่า 1
j มีค่า 2
j มีค่า 3
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
กำหนดให้โปรแกรมมีขั้นตอนการทำงานดังนี้
เริ่มต้น
รับค่า x และ y
นำค่า x + y ใส่ลงใน a
นำค่า x – y ใส่ลงใน b
แสดงค่าผลคูณของ a กับ b
จบ
ถ้าเครื่องคอมพิวเตอร์ทำโปรแกรมนี้ โดยผู้ใช้ใส่ค่า 8 และ 2 ผลลัพธ์ที่ได้คือข้อใด
8
16
28
60
88
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
กำหนดให้โปรแกรมมีขั้นตอนการทำงานดังนี้
เริ่มต้น
รับค่า x, y และ z
นำค่าที่มากที่สุดของ x, y, z ไปใส่ไว้ใน a
นำค่าที่น้อยที่สุดของ x, y, z ไปใส่ไว้ใน c
นำค่าเฉลี่ยของ x, y, z ไปใส่ไว้ใน b
จบ
ถ้าเครื่องคอมพิวเตอร์ทำโปรแกรมนี้จนจบแล้วข้อใดเป็นจริง
a < b < c
a > b > c
a <= b <= c
a >= b >= c
a >= b <= c
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
ข้อใดได้ผลลัพธ์บนหน้าจอเหมือนกับคำสั่งต่อไปนี้ int a = 50; PRINTtoSCREEN(a+200);
int a = 350; PRINTtoSCREEN(a); a = a - 100;
PRINTtoSCREEN(a); int a = 50; a = a * 5;
PRINTtoSCREEN(a); a = a - 100; int a = 350;
a = a * 5; int a = 50; PRINTtoSCREEN(a);
int a = 50; a = a * 5; PRINTtoSCREEN(a);
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
30 questions
ศาสตร์การสอน
Quiz
•
University
30 questions
Test 161312_C7
Quiz
•
University
25 questions
SOM II QUIZ 1 25.03.2023
Quiz
•
University
25 questions
การประกันคุณภาพของประเทศนิวซีแลนด์
Quiz
•
University
26 questions
Stats for PA (Midterm)
Quiz
•
University
30 questions
161434_Midterm C.3
Quiz
•
University
30 questions
เทคโนโลยีวัสดุอุตสาหกรรม
Quiz
•
University
26 questions
แนวข้อสอบปลายภาค
Quiz
•
12th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Education
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University