
ตัวแปร ค่าคงที่ ตัวดำเนินการ
Authored by รุ่งนภา ทองเอียง
Computers
12th Grade
Used 704+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
ข้อใดเป็นชื่อตัวแปรที่ ถูกต้อง ตามหลักการตั้งชื่อภาษา C/C++?
2nd_student
my-score
_total
float
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
หากต้องการเก็บตัวอักษรเกรดวิชาคอมพิวเตอร์ ('A', 'B', 'C', 'D', 'F') ควรเลือกชนิดข้อมูลใด?
int
float
char
bool
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
คำสั่งใดในภาษา C++ ใช้สำหรับประกาศตัวแปรให้เป็น "ค่าคงที่" ที่ไม่สามารถแก้ไขค่าได้?
static
const
final
void
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
ผลลัพธ์ของนิพจน์ 29 % 6 ในทางคอมพิวเตอร์คือเท่าใด?
4
5
4.83
0
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
กำหนดให้ int a = 15, b = 4; float c = a / b; ค่าของตัวแปร c คือเท่าใด?
3.75
3.0
3
4.0
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
กำหนดให้ int x = 5; int y = ++x; หลังทำงานจบ ตัวแปร x และ y มีค่าเท่าใด?
x = 5, y = 6
x = 6, y = 5
x = 6, y = 6
x = 5, y = 5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ผลลัพธ์ของคำนวณนิพจน์ 2 + 3 * 4 - 8 / 2 มีค่าเท่าใด?
6
10
16
14
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?