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

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
10 questions
แบบประเมินผลก่อนเรียนหน่วยที่ 1 ประมวลผลคำ

Quiz
•
4th - 6th Grade
10 questions
องค์ประกอบของ Google Chrome

Quiz
•
4th Grade
10 questions
20204-2107 บทที่5

Quiz
•
1st Grade - University
10 questions
Microsoft Excel final 5

Quiz
•
4th Grade
11 questions
Microsoft Excel

Quiz
•
4th Grade
9 questions
โปรแกรม PoweerPoint

Quiz
•
1st - 5th Grade
10 questions
คอมพิวเตอร์

Quiz
•
2nd - 6th Grade
10 questions
แบบฝึกหัด บทที่ 2 สธ111 - 2/2564 -กลุ่มที่ 1

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
place value

Quiz
•
4th Grade
10 questions
Order of Operations No Exponents

Quiz
•
4th - 5th Grade
20 questions
Place Value and Rounding

Quiz
•
4th Grade
12 questions
Text Structures

Quiz
•
4th Grade
15 questions
Subject-Verb Agreement

Quiz
•
4th Grade
15 questions
Place Value

Quiz
•
4th Grade
10 questions
Input Output Tables

Quiz
•
4th Grade
15 questions
Singular and Plural Nouns

Quiz
•
4th Grade