NEW
Font size
WorksheetsProgram66-3
Total questions: 30
Worksheet time: 3hrs 31mins
นามสกุล ของไฟล์ source code คือ
The extension of the source code file is
.c / .cpp
.obj
.exe
.h
ข้อใดไม่ใช่ โครงสร้างโปรแกรมภาษาซี
Which is not a C program structure?
ส่วนหัวของโปรแกรม
Program header
ส่วนฟังก์ชั่นหลัก
The main function
ส่วนรายละเอียดของโปรแกรม
Program details section
ส่วนคอมไพเลอร์
Compiler section
ส่วนใดของโปรแกรม เริ่มทำงานก่อน
What part of the program? Start working first.
ส่วนหัวของโปรแกรม
Program header
ส่วนฟังก์ชั่นหลัก
The main function
ส่วนรายละเอียดของโปรแกรม
Program details section
ส่วนคอมไพเลอร์
Compiler section
ส่วนใดของโปรแกรม คือส่วนทีนักเรียนต้องเขียนโค๊ดลงไป
What part of the program? This is the part where students have to write code.
ส่วนหัวของโปรแกรม
Program header
ส่วนฟังก์ชั่นหลัก
The main function
ส่วนรายละเอียดของโปรแกรม
Program details section
ส่วนคอมไพเลอร์
Compiler section
ส่วนหัวของโปรแกรม มีนามสกุลใด
What extension does the program header have?
ชื่อใดไม่ผิดกฏการตั้งชื่อ
Which name doesn't violate naming rules?
ในภาษาซี หากตั้งชื่อตัวแปรดังนี้
(In C language, if you name a variable like this:)
1. ant
2. Ant
3. aNt
4. anT
ข้อใดถูกต้อง (With one is correct )
ทั้ง 4 ตัว เป็นตัวแปรตัวเดียวกัน
All 4 are the same variable.
ทั้ง 4 ตัว เป็นตัวแปรคนละตัว
All 4 are different variables.
ข้อ 1, 2 เป็นตัวแปรตัวเดียวกัน
Items 1 and 2 are the same variable.
ไม่มีข้อถูก
There is no correct answer.
ภาษาเครื่องมีลักษณะใด
What are the characteristics of machine language?
เลขฐานสอง
binary number
สัญลักษณ์
symbol
ภาษามนุษย์
human language
ภาษาธรรมชาติ
natural language
main() เป็น อะไร (what is main())
process
library
function
data
นามสกุล ของไฟล์ ที่ได้หลังจากการ complie & run คือ
(The extension of the file obtained after complie & run is)
.cpp / .exe
.obj / .cpp
.obj / .exe
.h / .cpp
ตัวเชื่อมเงื่อนไข "หรือ" คือข้อใด
What is the conditional connector "or"?
||
&&
""
#
a+=2 มีค่าเท่ากับข้อใด
Which item is equal to a+=2
a=a+2
a=a+a
a=a*a
a=2
ถ้ากำหนด (given)
int A = 5,B = 3;
B = A/2;
B มีค่าเท่าไหร่ ( B How much is it worth?)
0
2
2.5
3
100 % 2 = ?
50
2
1
0
จากรายละเอียดต่อไปนี้ “โปรแกรมตรวจสอบการลดราคาสินค้าของห้างสรรพสินค้าแห่งหนึ่ง โดยหากสินค้าดังกล่าวมีอายุการผลิตน้อยกว่า 1 ปี จะไม่ลดราคา แต่ถ้าผลิตตั้งแต่ 1 ปี แต่ไม่ถึง 3 ปี ลดราคา 30% แต่ถ้าผลิตมาแล้วตั้งแต่ 3 ปี ขึ้นไป ลดราคา 50%”
From the following details “A program to check product price reductions at a department store. If the product has been produced for less than 1 year, there will be no price reduction. But if it has been produced for more than 1 year but less than 3 years, the price will be reduced by 30%. But if it has been produced for 3 years or more, the price will be reduced by 50%.”
สิ่งใด ควรขอให้ผู้ใช้ป้อนเข้ามาสู่โปรแกรม มากที่สุด
What should the user be asked to enter into the program as much as possible?
ราคาเต็มของสินค้าดังกล่าวก่อนลดราคา
The full price of the said product before discounts.
อายุการผลิตของสินค้าดังกล่าว
Production life of the said product
เปอร์เซ็นต์การลดราคาของสินค้าดังกล่าว
Percentage reduction of the price of said products
ราคาของสินค้าดังกล่าวหลังลดราคาแล้ว
The price of the said product after discount.
ภาษาระดับใดที่ทำความเข้าใจได้ง่าย มีลักษณะของการใช้คำสั่งเป็นภาษาอังกฤษซึ่งใกล้เคียงกับภาษามนุษย์มาก
What level of language is easy to understand? There are characteristics of using commands in English which are very close to human language.
ภาษาระดับต่ำ
low level language
ภาษาระดับกลาง
Intermediate language
ภาษาระดับสูง
high level language
ภาษาระดับสูงมาก
very high level language
สัญลักษณ์ในภาพมีความหมายว่าอะไร ?
What do the symbols in the picture mean?
กำหนดค่า หรือ ประมวลผล
Configure or process
รับข้อมูลทางแป้นพิมพ์
Receive information via keyboard
แสดงผลทางจอภาพ
Displayed on the screen
เริ่มต้น
start
สัญลักษณ์ในภาพมีความหมายว่าอะไร ?
What do the symbols in the picture mean?
ตัดสินใจ
decision
แสดงผลทางจอภาพ
Displayed on the screen
แสดงผลทางเอกสาร
display on the document
รับข้อมูลและแสดงผลข้อมูล
input and display data
สัญลักษณ์ในภาพมีความหมายว่าอะไร ?
What do the symbols in the picture mean?
รับข้อมูล
input data
แสดงผลข้อมูล
display data
การตัดสินใจ
decision
รับข้อมูลหรือแสดงผลข้อมูล
input and display data
คำสั่งใดใช้ในการแปลงข้อมูลจากตัวอักษรเป็นตัวเลข
Which command is used to convert data from letters to numbers?
int()
float()
number()
list()
หากต้องการให้โปรแกรมทำงานแบบมีเงื่อนไขต้องใช้คำสั่งใด
If you want the program to run conditionally, what command should you use?
if
for
while
while True
จากตัวอย่างรหัสลำลองต่อไปนี้ หาก z มีค่าเป็น 52 และ y มีค่าเป็น 18 ข้อใดคือผลลัพธ์ที่ถูกต้อง
In the following casual code example, if z is 52 and y is 18, which is the correct result?
z<y AND y>10
false
true
false and true
true and false
ข้อใดบอกความหมายของ ซอร์สโค้ด (Source code) ได้ถูกต้องที่สุด
Which statement most accurately describes the meaning of the source code?
รหัสของสัญลักษณ์การเขียนโปรแกรม
Code of programming symbols
ชุดของคำสั่งที่ผ่านการแปลภาษาแล้ว
A set of translated commands
ชุดคำสั่งต่างๆของโปรแกรม
Various command sets of the program
รูปแบบของคำสั่ง
Format of command
ชนิดของตัวแปรกับรหัสควบคุมรูปแบบการแสดงผลของตัวแปรในข้อใดที่ไม่สอดคล้องกัน
The type of variable and the code controlling the display format of the variable are inconsistent.
%c กับ octal
%d กับ decimal
%f กับ float
%f กับ double
ชนิดของตัวแปรชนิดใด เหมาะสมกับตัวแปร H= เกรดเฉลี่ย มากที่สุด
What type of variable? It is most appropriate for the variable H= GPA.
float
int
char
unsinged char
ข้อผิดพลาดที่เกิดจากการทดสอบความถูกต้องของโปรแกรม จะพบการข้อผิดพลาด(error)ในข้อใด
Errors resulting from testing the correctness of the program. Where will the error (error) be found?
Logic Errors
Coding Errors
Maintenance Error
Integration Error
ข้อใดไม่ใช่ภาษาโปรแกรม
Which is NOT a programming language?
javaScript
Python
Microsoft
Fortran
The following figure is an example of simple flow chart.
Flow chart is used in _____________ phase.
รูปต่อไปนี้เป็นตัวอย่างของผังงานอย่างง่าย
ผังงานอยู่ในระยะใดของระบบงาน _____________
analysis
design
coding
testing
Which statement is NOT correct?
ข้อความใดไม่ถูกต้อง?
Algorithm is a computer language that a computer understands.
อัลกอริทึมเป็นภาษาคอมพิวเตอร์ที่คอมพิวเตอร์เข้าใจ
Algorithm has a set of instructions to follow.
อัลกอริทึมมีชุดคำสั่งให้ปฏิบัติตาม
One of examples of algorithms is a cooking recipe.
ตัวอย่างหนึ่งของอัลกอริธึมคือสูตรการทำอาหาร
To tell a computer to do something, a program must be written in a computer language.
หากต้องการบอกให้คอมพิวเตอร์ทำอะไรสักอย่าง โปรแกรมจะต้องเขียนด้วยภาษาคอมพิวเตอร์
In this algorithm, on what line is iteration first used?
ในอัลกอริธึมนี้ การวนซ้ำใช้บรรทัดใดเป็นครั้งแรก
3
4
5
6
