แบบทดสอบเรื่อง ตัวแปร

Quiz
•
Computers
•
4th Grade
•
Hard
kanokwan panya
Used 17+ times
FREE Resource
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
Similar Resources on Wayground
15 questions
แบบทดสอบ Scratch

Quiz
•
1st - 5th Grade
10 questions
แบบทดสอบ เรื่องตัวดำเนินการ

Quiz
•
4th Grade
10 questions
แบบทดสอบหน่วยที่ 1

Quiz
•
1st - 5th Grade
15 questions
เกรียจไฟฟ้า และ อิเล็กทรอนิกส์ บทที่ 5

Quiz
•
4th Grade
10 questions
พลเมืองดิจิทัล

Quiz
•
4th Grade
10 questions
แบบทดสอบ หน่วยการเรียนรู้ที่ 1

Quiz
•
1st - 5th Grade
10 questions
แบบทดสอบท้ายบทเรียน หน่วยที่ 2 การออกแบบเเละการเขียนโปรแกรม ป.6

Quiz
•
1st - 5th Grade
10 questions
การใช้เหตุผลแก้ปัญหา

Quiz
•
1st - 5th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Place Value

Quiz
•
4th Grade
20 questions
Run-On Sentences and Sentence Fragments

Quiz
•
3rd - 6th Grade
20 questions
4 Types of Sentences

Quiz
•
3rd - 5th Grade
20 questions
place value

Quiz
•
4th Grade
20 questions
Place Value and Rounding

Quiz
•
4th Grade
12 questions
Text Structures

Quiz
•
4th Grade
15 questions
Place Value

Quiz
•
4th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade