Trắc nghiệm php

Quiz
•
Computers
•
University
•
Medium
PHÒNG HOÀNG VĂN
Used 9+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mục đích của hàm array_search() trong PHP là gì?
Thêm một phần tử mới vào mảng
Xóa một phần tử khỏi mảng
Tìm kiếm một giá trị trong mảng và trả về chỉ số của nó nếu tìm thấy
Sắp xếp một mảng theo thứ tự tăng hoặc giảm dần
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phép toán <, >, <=, >= thuộc loại phép toán nào?
Phép toán số học
Phép toán gán
Phép toán so sánh
Phép toán logic
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giá trị trả về của hàm array_search() là gì nếu giá trị tìm kiếm không được tìm thấy trong mảng?
false
null
0
-1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong ví dụ về biểu thức sau đây, giá trị nào được trả về và được gán vào biến $z?
$x = 8;
$y = 3;
$z = $x % $y;
2
3
5
8
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong ví dụ mệnh lệnh sau đây, thông điệp nào sẽ được hiển thị khi biến $x bằng 5 và biến $y bằng 7?
if ($x > $y) {
echo "x is greater than y"; }
else {
echo "x is not greater than y";}
x is greater than y
x is not greater than y
Không có thông điệp nào được hiển thị vì $x không lớn hơn $y.
Hiển thị cả 2 thông điệp
Answer explanation
Trong trường hợp này, $x không lớn hơn $y, nên mệnh lệnh else được thực thi và thông điệp "x is not greater than y" được hiển thị.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phép toán số học nào được sử dụng để lấy phần dư của hai số?
+
-
*
%
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phép toán so sánh nào được sử dụng để kiểm tra xem hai giá trị có bằng nhau hay không?
==
!=
>
<=
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Java - SET -1

Quiz
•
University
15 questions
C programming

Quiz
•
University
15 questions
Preliminary Round

Quiz
•
University
15 questions
ARRAYLIST - JAVA

Quiz
•
University
15 questions
Java Programming

Quiz
•
University
15 questions
Javascript Array dan Object

Quiz
•
University
20 questions
Pointers

Quiz
•
University
20 questions
UAS Struktur Data 2022

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University