
ComPro Global variable
Authored by noi pc
Computers
1st Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
แบบทดสอบหน่วยที่ 7
Quiz
•
1st - 5th Grade
10 questions
แบบทดสอบหลังเรียน 2/63
Quiz
•
1st - 10th Grade
10 questions
หน่วยที่ 4 การจัดเก็บ ค้นคืน ส่งผ่าน ข้อมูลสารสนเทศ
Quiz
•
1st Grade
10 questions
ประวัติคอมพิวเตอร์
Quiz
•
1st - 4th Grade
10 questions
กลไกไฟฟ้า
Quiz
•
1st - 7th Grade
10 questions
Quiz-IoT & Arduino
Quiz
•
1st - 5th Grade
10 questions
ส่วนประกอบของคอมพิวเตอร์
Quiz
•
1st Grade
10 questions
แบบทดสอบหน่วยที่ 1
Quiz
•
1st Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
15 questions
Place Value tens and ones
Quiz
•
1st Grade
16 questions
Money - Coins
Lesson
•
1st - 2nd Grade
20 questions
Halves and Fourths
Quiz
•
1st Grade