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

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
การใช้ Photoshop

Quiz
•
4th Grade
15 questions
แบบทดสอบหลังเรียน บทที่ 2 ม.3

Quiz
•
3rd - 9th Grade
10 questions
วิทยาการคำนวณ ป.5

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

Quiz
•
1st - 5th Grade
15 questions
หลักการเขียนโปรแกรม

Quiz
•
1st - 5th Grade
15 questions
การออกแบบและการเขียนโปรแกรมเบื้องต้น

Quiz
•
4th Grade
10 questions
วิทยาการคำนวณ ป.4 (scratch)

Quiz
•
4th Grade
10 questions
Coding2 รหัสจำลอง - กลางภาค

Quiz
•
4th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
12 questions
Passport Quiz 1

Quiz
•
1st - 5th Grade
10 questions
Making Predictions

Quiz
•
4th - 5th Grade
6 questions
Spiral Review 8/5

Quiz
•
4th Grade
18 questions
Rotation/Revolution Quiz

Quiz
•
4th Grade
22 questions
Geography Knowledge

Quiz
•
4th Grade
10 questions
Capitalization

Quiz
•
4th Grade
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Basic multiplication facts

Quiz
•
4th Grade