
1D COMP
Quiz
•
Education
•
University
•
Practice Problem
•
Medium
T N
Used 5+ times
FREE Resource
Enhance your content in a minute
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
MZKK
Quiz
•
University
30 questions
GAME PISA2025
Quiz
•
8th Grade - University
30 questions
แบบทดสอบสารานุกรมไทยสำหรับเยาวชนฯ เล่มที่ 43
Quiz
•
12th Grade - University
25 questions
ความรู้ความเข้าใจเกี่ยวกับหลักสูตร
Quiz
•
University
25 questions
แบบทดสอบมหาเวสสันดรชาดก
Quiz
•
11th Grade - University
30 questions
Fundamental of Electronics
Quiz
•
12th Grade - University
30 questions
Wordpress
Quiz
•
University
30 questions
สอบปลายภาค ระบบโทรศัพท์เคลื่อนที่
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Education
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
