Search Header Logo

PHP TEST

Authored by BSCS-2024-067 Haris Yousaf

Other

University

Used 1+ times

PHP TEST
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

100 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A relational database  ___________ is a data structure used to store and organize information.

View
Table
Report
Stored Procedure

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

MySQL is

A Programming language
A technique for writing reliable programs
 A Relational Database Management System
None of the Above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What SQL clause is used to restrict the rows returned by a query?

AND
WHERE
HAVING
FROM

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which will input data into a table?

INSERT INTO table(name, height, weight) VALUES('strand', '6ft 2in', '165')

INPUT INTO table(name, height, weight) VALUES('strand', '6ft 2in', '165')

INSERT INTO table CATEGORIES(name, height, weight) VALUES('strand', '6ft 2in', '165')

INSERT INTO table CATEGORIES(name, height, weight) ('strand', '6ft 2in', '165')

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If I want to show all data in a MySQL table, I would use

SHOW * FROM table;

SELECT * FROM table;

SHOW * IN table;

SELECT * IN table;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is PHP written into a webpage?

Just like other html tags: <php> </php>

Only in a separate file which is linked to the html page

Using curled brackets {php} {/php}

A PHP script starts with <?php and ends with ?>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The if statement is used to execute some code only if a specified condition is true

True

False

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?