แบบทดสอบเรื่อง ตัวแปร
Quiz
•
Computers
•
4th Grade
•
Hard
kanokwan panya
Used 17+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดไม่ใช่กฏของการตั้งชื่อตัวแปร
ชื่อของตัวแปรต้องขึ้นต้นด้วยตัวอักษรหรือเครื่องหมาย _ และ - เท่านั้น
ไม่ตั้งชื่อซ้ำคำสงวน เช่น $_POST; $_SESSION; $_GET;
ชื่อของตัวแปรสามารถมีตัวอักษร ตัวเลข หรือขีดกลางเท่านั้น
ชื่อของตัวแปรต้องขึ้นต้นด้วยตัวอักษรหรือเครื่องหมาย _ เท่านั้น
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดไม่เกี่ยวกับตัวแปรใน PHPคือข้อใด
ค่าของตัวแปรคือค่าที่ได้ จากการประกาศล่าสุด
ตัวแปรจะเป็นชื่อที่ใช้ในการบอกจำนวนหรือปริมาณ
ห้ามตั้งชื่อซ้ำกับคำสงวน (Reserved Word)
ค่าของตัวแปรจะถูกกำหนดด้วยเครื่องหมาย = ซึ่งต้องอยู่ทางซ้าย และค่าที่ได้คือค่าที่ได้จากทางขวา
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดผิดหลักการการประกาศตัวแปรในภาษา php
$int_var = 12345;
$str_var = "this is string var";
$2var=40
$class = " M4/6";
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดถูกต้อง
var=10
$a+b=20
$x y=30
$var7=80
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ข้อใดไม่ถูกต้อง
Comment แบบบรรทัดเดียวใช้สัญลักษณ์ //
URL Address http://localhost/ ชื่อไฟล์
เลือกตำแหน่งที่จัดเก็บไฟล์ไปที่ C:\AppServ\www
Comment แบบหลายบรรทัดใช้สัญลักษณ์ /* …. */
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
<html>
<head>
<title>PHP</title>
</head>
<body>
<?php
$a=3;
$b=4;
$c=$a+$b;
echo 'ค่าของ $a คือ '.$a."<br>";
echo 'ค่าของ $b คือ '.$b."<br>";
echo 'ผลรวมของ $a และ $b คือ '.$c;
?>
</body>
</html>
ผลลัพธ์คือข้อใด
ผลรวมของ $a และ $b คือ 7
ค่าของ $a คือ 3
ค่าของ $b คือ 4
ผลรวมของ $a และ $b คือ 7
ค่าของ คือ 3
ค่าของ คือ 4
ค่าของ คือ 3
ค่าของ คือ 4
ผลรวมของ คือ 7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
<html>
<head>
<title>PHP</title>
</head>
<body>
<?php
$a=3;
$b=4;
$c=$a+$b;
echo $c;
?>
</body>
</html>
ผลลัพธ์ของตัวแปรคือข้อใด
3
4
a=3
b=4
7
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
11 questions
html
Quiz
•
1st - 5th Grade
10 questions
บทที่ 9 บั้งไฟบุปผชาติ ป.4
Quiz
•
4th Grade
12 questions
Flowchart
Quiz
•
4th - 6th Grade
10 questions
Quiz
Quiz
•
4th - 6th Grade
10 questions
Wifi
Quiz
•
1st - 4th Grade
10 questions
อัลกอลิทึ่ม
Quiz
•
4th Grade
10 questions
แบบทดสอบหลังเรียน เรื่อง การแก้ปัญหาโดยใช้เหตุผลเชิงตรรกะ
Quiz
•
1st - 5th Grade
10 questions
CLASS 4 COMPUTER ACTIVITY-2
Quiz
•
4th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Computers
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
10 questions
Setting Quiz
Quiz
•
2nd - 5th Grade
15 questions
Subject-Verb Agreement
Quiz
•
4th Grade
21 questions
Factors and Multiples
Quiz
•
4th Grade
13 questions
Point of View
Quiz
•
4th Grade
5 questions
4.2G Relate Fractions to Decimals
Interactive video
•
4th Grade
20 questions
Theme
Quiz
•
4th Grade
