[S3_S4-SUMMATIVE] APP DEVELOPMENT

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/221

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:30 PM on 7/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

222 Terms

1
New cards

are mechanism for storing data in the remote browser and thus tracking or identifying return users.

Group of answer choices

Session

Cookies

Remote

Variable

Cookies

2
New cards

get the number of affected rows by the last SELECT, INSERT, UPDATE, REPLACE or DELETE query.

Correct

Your Answer:

affected_mysql_rows()

mysql_affected_rows()

rows_affected()

affected_row()

3
New cards

an associative array of variables passed to the current script via HTTP Cookies

Group of answer choices

$_ENV

$_SESSION

$_REQUEST

$_COOKIE

$_COOKIE

4
New cards

what is P in PCRE

Group of answer choices

Popular

Present

Percl

Program

Percl

5
New cards

Regular Expression Meta characters symbol for exactly two of 'a'

Group of answer choices

a+2

a(2)

a*2

a{2}

a{2}

6
New cards

What is R in PCRE

Group of answer choices

Regular

Rest

Robust

Relay

Regular

7
New cards

Is the process of breaking tables into multiple related tables to reduce redundant information.

Group of answer choices

Normalization

Primary key

Foreign key

Primary table

Normalization

8
New cards

Command to show database

Group of answer choices

VIEW

SHOW

SHOWDB

VIEWDB

SHOW

9
New cards

mysql_rows() get the number of affected rows by the last SELECT, INSERT, UPDATE, REPLACE or DELETE query.

Group of answer choices

True

False

False

10
New cards

SQL command that will get the sum of a specified field

Group of answer choices

SUM

ADD

SUMMATION

PLUS

SUM

11
New cards

Use to read a specified set of characters in a file

Group of answer choices

cread()

fread()

sread()

readf()

fread()

12
New cards

Syntax to Retrieves the contents of one cell from a MYSQL result set

Group of answer choices

mysql_fetch(($result_query, row, field)

mysql_result($result_query, row, field)

mysql_query(($result_query, row, field)

mysql_fetch_array(($result_query, row, field)

mysql_result($result_query, row, field)

13
New cards

In creating a file, If the file already exists, its contents won't be disturbed

Group of answer choices

False

True

True

14
New cards

Syntax for opening a file

Group of answer choices

openf("file","mode")

fileopen("file","mode")

openfile("file","mode")

fopen("file","mode")

fopen("file","mode")

15
New cards

Complete the syntax: mysql_result(_____,row,field)

Group of answer choices

$result_query

$result

$query_result

$query

$result_query

16
New cards

attempts to create an empty file.

Group of answer choices

empty()

touch()

attempt()

create()

touch()

17
New cards

To save permanently the uploaded file, use the move_uploaded_file() function. This function returns TRUE on success, or FALSE on failure.

Group of answer choices

True

False

True

18
New cards

use to read a file per character

Group of answer choices

fgetc()

getfc()

charget()

fcahrget()

fgetc()

19
New cards

Syntax to open a file for writing

Group of answer choices

fopen("test.txt","w")

fileopen("test.txt","w")

openfile("test.txt","w")

openf("test.txt","w")

fopen("test.txt","w")

20
New cards

$query = mysql_query("SELECT MAX(tuition) FROM tblinfo");

$fetch = mysql_fetch_array($query);

Echo $fetch[0];

Check the code if valid or invalid

Group of answer choices

Valid

Invalid

Valid

21
New cards

Use to tell the last line of a file

Group of answer choices

endoffile()

feof()

lastfile()

lastline()

feof()

22
New cards

mysql_num_rows() is only valid for statements like SELECT or SHOW that return an actual result set.

Group of answer choices

True

False

True

23
New cards

Syntax to open a file for appending

Group of answer choices

fopen("test.txt","a")

openf("test.txt","a")

openfile("test.txt","a")

fileopen("test.txt","a")

fopen("test.txt","a")

24
New cards

Checking the file status if executable

Group of answer choices

check_executable()

is_execute()

check_execute()

is_executable()

is_executable()

25
New cards

Complete the syntax:$_FILES["file"][______]

Group of answer choices

type

size

name

index

index

26
New cards

Complete the syntax: mysql_result($result_query,_____,field)

Group of answer choices

Column

Row

Type

Name

Row

27
New cards

$query = mysql_query("SELECT MIN(tuition) FROM tblinfo");

$fetch = mysql_result($query,0);

Echo $fetch

Check the code if valid or invalid

Group of answer choices

Invalid

Valid

Valid

28
New cards

complete the syntax: move_upload_file(file, ________);

Group of answer choices

name

new location

size

type

new location

29
New cards

Complete the syntax:$_FILES[____]["index"]

Group of answer choices

size

file

name

type

file

30
New cards

Syntax to read a line from a file

Group of answer choices

lgets("$file",1024)

getsf("$file",1024)

fgets("$file",1024)

getsl("$file",1024)

fgets("$file",1024)

31
New cards

Syntax for removing an existing file

Group of answer choices

unlink("myfile.txt")

drop("myfile.txt")

delete("myfile.txt")

remove("myfile.txt")

unlink("myfile.txt")

32
New cards

$query = mysql_query("SELECT MIN(tuition) FROM tblinfo");

$fetch = mysql_fetch_array($query);

Echo $fetch[0];

Check the code if valid or invalid

Group of answer choices

Valid

Invalid

Valid

33
New cards

Checking for file existence

Group of answer choices

file_check()

exists_file()

file_exists()

check_file()

file_exists()

34
New cards

Syntax to tell the last line of a file

Group of answer choices

lastfile("$file")

feof("$file")

endoffile("$file")

lastline("$file")

feof("$file")

35
New cards

Function to save permanently the uploaded file

Group of answer choices

save_uploaded_file()

move_uploaded_file()

save_file()

upload_file()

move_uploaded_file()

36
New cards

Checking the file status if writable

Group of answer choices

is_writable()

check_writable()

is_write()

check_write()

is_writable()

37
New cards

Before removing or deleting files you need to indicate the extension file name of the file

Group of answer choices

True

False

True

38
New cards

Retrieves the contents of one cell from a MYSQL result set

Group of answer choices

mysql_result()

mysql_query()

mysql_fetch_array()

mysql_fetch()

mysql_result()

39
New cards

retrieves the number of rows from a result set.

Group of answer choices

mysql_rows()

mysql_number_rows()

mysql_rows_num()

mysql_num_rows()

mysql_num_rows()

40
New cards

Use to read a line from a file

Group of answer choices

getsl()

getsf()

fgets()

lgets()

fgets()

41
New cards

A function used to remove an existing file

Group of answer choices

remove()

drop()

delete()

unlink()

unlink

42
New cards

other command for fwrite()

Group of answer choices

fputs()

fileput()

putfile()

putsf()

fputs()

43
New cards

$query = mysql_query("SELECT MAX(tuition) FROM tblinfo");

$fetch = mysql_fetch_array($query);

Echo $fetch ["MAX(tuition)"];

Check the code if valid or invalid

Group of answer choices

Invalid

Valid

Valid

44
New cards

The name of the temporary copy of the file stored on the server

Group of answer choices

name_temp

tempo_name

tmp_name

name_temporary

tmp_name

45
New cards

Complete the syntax: move_upload_file(____, new location) ;

Group of answer choices

Type

Size

File

location

File

46
New cards

function accepts a file resource and a string, and then writes the string to the file

Group of answer choices

writef()

fwrite()

writefile()

filewrite()

fwrite()

47
New cards

$query = mysql_query("SELECT MIN(tuition) FROM tblinfo");

$fetch = mysql_fetch_array($query);

Echo $fetch ["MIN(tuition)"];

Check the code if valid or invalid

Group of answer choices

Invalid

Valid

Valid

48
New cards

Complete the syntax: mysql_result($result_query,row,______)

Group of answer choices

Location

Field

Query

Type

Field

49
New cards

checking if it is a directory

Group of answer choices

is_dir()

is_directory()

check_directory()

check_dir()

is_dir()

50
New cards

syntax for accepting a file resource and a string, and then writes the string to the file

Group of answer choices

filewrite("$file","text")

writefile("$file","text")

fwrite("$file","text")

writef("$file","text")

fwrite("$file","text")

51
New cards

array you can upload files from a client computer to the remote server.

Group of answer choices

$_UFILE

$_FILEUP

$_FILES

$_UPFILE

$_FILES

52
New cards

Syntax to read a file per character

Group of answer choices

charget("$file")

fgetc("$file")

fcahrget("$file")

getfc("$file")

fgetc("$file")

53
New cards

used to close a file

Group of answer choices

closef()

closefile()

fclose()

fileclose()

fclose()

54
New cards

$query = mysql_query("SELECT name FROM tblinfo");

$fetch = mysql_result($query, 2);

In this code it will get the name of what row?

Group of answer choices

1st

4th

3rd

2nd

3rd

55
New cards

Checking if it is a file

Group of answer choices

check_file()

file_valid()

is_file()

file_check()

is_file()

56
New cards

is used to open a file for reading, writing or appending content

Group of answer choices

openf()

openfile()

fileopen()

fopen()

fopen()

57
New cards

Determining the file size

Group of answer choices

is_filesize()

filesize()

check_filesize()

filesize_check()

filesize()

58
New cards

The result resource that is being evaluated. This result comes from a call to mysql_query().

Group of answer choices

Table

$result_query

Field

Row

$result_query

59
New cards

mysql_result() retrieves the contents of one cell from a MySQL result set

Group of answer choices

False

True

True

60
New cards

The name or offset of the field being retrieved.

Group of answer choices

Field

Row

Table

$result_query

Field

61
New cards

Syntax for attempts to create an empty file

Group of answer choices

empty("$file")

attempt("$file")

touch("$file")

create("$file")

touch("$file")

62
New cards

The row number from the result that's being retrieved. Row numbers start at 0.

Group of answer choices

Row

$result_query

Field

Table

Row

63
New cards

get the number of affected rows by the last SELECT, INSERT, UPDATE, REPLACE or DELETE query.

Group of answer choices

mysql_affected()

mysql_rows_affected()

mysql_rows()

mysql_affected_rows()

mysql_affected_rows()

64
New cards

$query = mysql_query("SELECT MAX(tuition) FROM tblinfo");

$fetch = mysql_result($query,0);

Echo $fetch

Check the code if valid or invalid

Group of answer choices

Invalid

Valid

Valid

65
New cards

Syntax to read a specified set of character in a file

Group of answer choices

readf("$file",1)

cread("$file",1)

sread("$file",1)

fread("$file",1)

fread("$file",1)

66
New cards

Syntax to open a file for reading

Group of answer choices

fopen("test.txt","r")

fileopen("test.txt","r")

openfile("test.txt","r")

openf("test.txt","r")

fopen("test.txt","r")

67
New cards

SQL command to view all records in the table

Group of answer choices

SELECT * FROM

SET * FROM

CHECK * FROM

VIEW * FROM

SELECT * FROM

68
New cards

Command to create a table for the database

Group of answer choices

CREATE DATABASE TABLE

DATABASE CREATE TABLE

CREATE TABLE

TABLE CREATE

CREATE TABLE

69
New cards

Syntax for dropping a column

Group of answer choices

PLUS TABLE tblname DROP

ADD TABLE tblname DROP

ALTER TABLE tblname DROP field

MODIFY TABLE tblname DROP

ALTER TABLE tblname DROP field

70
New cards

Regular Expression Meta characters Symbol for group elements

Group of answer choices

[]

{}

""

()

()

71
New cards

the session_destroy() statement does not affect the variables set on the current page

Group of answer choices

True

False

True

72
New cards

Regular Expression pattern modifier for ignore case

Group of answer choices

C

c

i

ic

i

73
New cards

Regular Expression Meta characters Symbol for mark the end of a string

Group of answer choices

&

$

^

*

$

74
New cards

PCRE function starts with

Group of answer choices

pcre_

prc_

prec_

preg_

preg_

75
New cards

Regular Expression Meta characters symbol for any non alpha numeric characters

Group of answer choices

\E

\W

\R

\X

\W

76
New cards

Regular Expression Meta characters symbol for any white-space character

Group of answer choices

\s

\S

\W

\w

\s

77
New cards

Check the code if it is valid or invalid

Group of answer choices

Invalid

Valid

Valid

78
New cards

Regular Expression Meta characters Symbol for matches any single character

Group of answer choices

"

.

'

:

.(dot)

79
New cards

Regular Expression Meta characters Symbol for Boolean OR

Group of answer choices

\

/

?

|

|

80
New cards

$_POST is an associative array of variables passed to the current script via this method

Group of answer choices

HTML POST

XHTML POST

HTTP POST

XML POST

HTTP POST

81
New cards

Regular Expression Meta characters symbol for any alpha numeric character plus underscore. Equals to [A-Za-z0-9_]

Group of answer choices

\r

\w

\e

\x

\w

82
New cards

Regular Expression Meta characters Symbol for zero or more of 'a'

Group of answer choices

a-

a/

a*

a+

a*

83
New cards

an associative array variables passed to the current script via the URL parameters.

Group of answer choices

$_SET

$_POST

$_GET

$_SERVER

$_GET

84
New cards

Regular Expression Meta characters symbol for any non white-space character

Group of answer choices

\w

\s

\S

\W

\S

85
New cards

were used to efficiently search for patterns in a given text.

Group of answer choices

Double Operation

Regular Expression

Double Expression

Regular Operation

Regular Expression

86
New cards

Regular Expression Meta characters Symbol for item range (a,b or c)

Group of answer choices

'abc'

(abc)

[abc]

{abc}

[abc]

87
New cards

What is E in PCRE

Group of answer choices

Expression

Environment

Entity

Enter

Expression

88
New cards

Function used to close the session

Group of answer choices

destroy_session()

session_close()

session_destroy()

close_session()

session_destroy()

89
New cards

Syntax for inserting a value to your table

Group of answer choices

INSERT VALUES (value1, value2, value3, ....);

INSERT INTO

VALUES (value1, value2, value3, ....);

INSERT HERE

VALUES (value1, value2, value3, ....);

INSERT THIS

VALUES (value1, value2, value3, ....);

INSERT INTO VALUES (value1, value2, value3, ....);

90
New cards

MySQL prompts means waiting for the next line of multiple line command

Group of answer choices

->

\>

/>

=>

->

91
New cards

MySQL prompts means waiting for next line, waiting for completion of a comment that began with /*.

Group of answer choices

/*-

/*=

/*:

/*>

/*>

92
New cards

Field data types Storage value of TIME

Group of answer choices

4 Bytes

Varies

1 Byte

Number of bytes specified

4 Bytes

93
New cards

Syntax to display the structure of the table

Group of answer choices

DISPLAY tblname

STRUCTURE tblname

SUMMARY tblname

DESCRIBE tblname

DESCRIBE tblname

94
New cards

He wrote a very lightweight database engine called mSQL

Group of answer choices

David Hughes

David Huges

David Heus

David Hugs

David Hughes

95
New cards

Entries were created by the web server

Group of answer choices

$_SERVER

$_SET

$_GET

$_POST

$_SERVER

96
New cards

Regular Expression Meta characters Symbol for mark the start of a string

Group of answer choices

$

^

&

*

^

97
New cards

PCRE means Perl Compatible Regular Expression

Group of answer choices

False

True

False

98
New cards

Regular Expression Meta characters symbol for any digits equal to [0-9]

Group of answer choices

\d

\D

\N

\n

\d

99
New cards

Go to the MySQL path

Group of answer choices

C:\xampp\mysql\bin\mysql -s root

C:\xampp\mysql\bin\mysql -v root

C:\xampp\mysql\bin\mysql -x root

C:\xampp\mysql\bin\mysql -u root

C:\xampp\mysql\bin\mysql -u root

100
New cards

What is Q in SQL?

Group of answer choices

Queue

Quite

Query

Quantum

Query