ComPro Global variable
Quiz
•
Computers
•
1st Grade
•
Medium
noi pc
Used 2+ times
FREE Resource
Enhance your content
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
กำหนด function f1 ดังนี้
int f1(int x, float y) { ...... }
ฟังก์ชัน f1 เป็นฟังก์ชันชนิดใด
ไม่มี return value
ไม่มี parameter
มี return value
ไม่มี parameter
ไม่มี return value
มี parameter
มี return value
มี parameter
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใด**ผิด** เมื่อกล่าวถึง ตัวแปร global
เป็นตัวแปรที่ประกาศนอกฟังก์ชัน
เมื่อประกาศตัวแปร global แล้วฟังก์ชันอื่นที่อยู่ด้านล่างของการประกาศตัวแปร global สามารถใช้งานตัวแปรนี้ได้
เป็นตัวแปรส่วนตัว ใช้เฉพาะในฟังก์ชันที่ประกาศตัวแปรนี้เท่านั้น
หากประกาศตัวแปรนี้บนสุดของโปรแกรม ทุกฟังก์ชันสามารถใช้งานตัวแปรนี้ได้
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ถ้าเมนโปรแกรมเรียกใช้ฟังก์ชัน f1 ดังนี้
f1(int x, int y)
ส่วนหัวของฟังก์ชัน f1 ควรเขียนอย่างไร
void f1(x, y){ ... }
void f1(int x,y ){ ... }
void f1(int x, int y){ ... }
void f1( ){ ... }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
คำสั่ง ceil(1.2) จะให้ผลลัพธ์เท่าใด
1
1.20
2
1.5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ตัวแปรใดเป็นตัวแปร global
x
y
x, y
a, b, y
Similar Resources on Wayground
10 questions
แบบทดสอบหน่วยการเรียนรู้ที่ 5 ค้างคาวกินกล้วย
Quiz
•
1st - 5th Grade
10 questions
การใช้อินเตอร์เน็ตอย่างปลอดภัย
Quiz
•
1st - 5th Grade
10 questions
แฟคทอเรียล
Quiz
•
KG - 10th Grade
10 questions
ม.1 การเลือกใช้วัสดุ อุปกรณ์ และเครื่องมือ
Quiz
•
1st Grade
10 questions
เทคโนโลยีรอบตัว
Quiz
•
1st Grade
10 questions
การจัดการไฟล์อย่างมีระบบ
Quiz
•
1st - 5th Grade
10 questions
การสร้างประโยชน์กับผลงาน
Quiz
•
1st - 3rd Grade
10 questions
แนวคิดเชิงนามธรรม ม.1
Quiz
•
KG - 2nd Grade
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 Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
6 questions
Gravity
Quiz
•
1st Grade
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences
Quiz
•
1st - 3rd Grade
26 questions
SLIME!!!!!
Quiz
•
KG - 12th Grade
21 questions
D189 1st Grade OG 2a Concept 39-40
Quiz
•
1st Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade
