Request edit access
JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
บทที่3 ตัวดำเนินการเเละนิพจน์ทางคณิตศาสตร์
Sign in to Google
to save your progress.
Learn more
1.
ข้อใดไม่ถูกต้องตามหลักในการตั้งชื่อตัวแปร ?ไม่ระบุชื่อ
1 point
ก. day_of_week
ข. num1
ค. 2Subjects
ง. FLOAT
ตัวเลือก 5
Clear selection
2.
ข้อใดต่อไปนี้ ตั้งชื่อตัวแปรถูกต้องตามหลักในการตั้งชื่อตัวแปร ?
1 point
ก. 1Sum
ข. Num 2
ค. do
ง. _name
Clear selection
3.
ข้อใดต่อไปนี้ ไม่ใช่ ชนิดข้อมูลแบบ integer ?
1 point
ก. 4.54
ข. 8
ค. +21
ง. -2556
Clear selection
4.
ถ้าต้องการเก็บข้อมูลเกี่ยวกับผลการเรียน เช่น 3.45 ควรกำหนดชนิดข้อมูลของตัวแปรดังข้อใด ?
1 point
ก. char
ข. float
ค. int
ง. short
Clear selection
5.
ข้อใดต่อไปนี้คือชนิดข้อมูลที่ใช้หน่วยความจำสิ้นเปลืองที่สุด ?
1 point
ก. int
ข. float
ค. double
ง. long int
Clear selection
6.
ข้อใดเรียงลำดับขนาดข้อมูลของตัวแปรจากน้อยไปมากได้ถูกต้อง ?
1 point
ก. double, float, long, unsigned int
ข. char, unsigned int, float, double
ค. long, unsigned long, float, double
ง. unsigned int, char, float, double
Clear selection
7.
ข้อใดคือคำสั่งที่ใช้ในการกำหนดค่าคงที่ให้กับโปรแกรม ?
1 point
ก. double
ข. float
ค. #include
ง. #define
Clear selection
8.
ข้อใดต่อไปนี้ เป็นรูปแบบของนิพจน์ที่กำหนดให้ตัวแปร num เพิ่มค่าทีละหนึ่ง ?
1 point
ก. num++
ข. num = num+1
ค. ++num
ง. ถูกทุกข้อ
Clear selection
9.
ข้อใดต่อไปนี้ ที่จัดลำดับความสำคัญก่อนหลังของตัวดำเนินการได้อย่างถูกต้อง ?
1 point
ก. ++, * หรือ / , + หรือ -
ข. *, /, +, -, ++ หรือ --
ค. ++, /, +, % หรือ -
ง. /, -, % หรือ +
Clear selection
10.
ข้อใดต่อไปนี้ คือคำตอบของค่า y จากนิพจน์ที่กำหนดให้ ? int x, y; x = 8; y = ++x; printf(“%d”,y);
1 point
ก. 7
ข. 8
ค. 9
ง. 10
Clear selection
ตัวเลือก 1
Clear selection
ตัวเลือก 1
Clear selection
Submit
Clear form
This content is neither created nor endorsed by Google. -
Terms of Service
-
Privacy Policy
Does this form look suspicious?
Report
Forms
Help and feedback
Contact form owner
Help Forms improve
Report