Web Development College Quiz 4
Question 1
What command compiles the source code?
Select one:
- a. compile
- b. make
- c. go
- d. ls
The correct answer is: make
Question 2
What command can be used to edit a text file on a Linux server?
Select one:
- a. ls
- b. cat
- c. nano
- d. edit
The correct answer is: nano
Question 3
Web 2.0 applications promote:
Select one:
- a. Data manipulation
- b. Collaboration
- c. FTP transfer
- d. Read-only access
The correct answer is: Collaboration
Question 4
Static content on the Internet can be updated by:
Select one:
- a. Logging in and updating a page
- b. Posting a comment online
- c. Sending files via File Transfer Protocol
- d. Pressing the save button
The correct answer is: Logging in and updating a page
Question 5
What command installs compiled code?
Select one:
- a. make complete
- b. make
- c. make install
- d. install
The correct answer is: make install
Question 6
What is the most common protocol on the Internet?
Select one:
- a. UDP
- b. FTP
- c. HTTP
- d. Internet Protocol
The correct answer is: HTTP
Question 7
What is the correct way to add 1 to the $count variable?
Select one:
- a. $count =+1
- b. ++count
- c. count+;
- d. None of the above
The correct answer is: None of the above
Question 8
What configuration parameter determines the location of the new software?
Select one:
- a. --with-port=8080
- b. --enable-so
- c. --with-so
- d. --prefix=$HOME/apache
The correct answer is: --prefix=$HOME/apache
Question 9
Dynamic content on the Internet means:
Select one:
- a. Playing a video online
- b. Changing a background on a page
- c. Blinking text
- d. Changing information per visit
The correct answer is: Changing information per visit
Question 10
What PHP function allows a connection to MySQL database:
Select one:
- a. mysql_connect();
- b. get_connection();
- c. connect()
- d. mysql_db_connection()
The correct answer is: mysqlconnect();
Question 11
What PHP function sets the database name to be used out of all the databases installed on the given server?
Select one:
- a. mysql_get_db()
- b. mysqlselectdb()
- c. mysql_set_db()
- d. mysql_select( )
The correct answer is: mysqlselectdb()
Question 12
What parameters are needed to connect to a database? Select all that apply.
Select one or more:
- a. db version
- b. host name
- c. user
- d. database name
The correct answers are: host name, user
Question 13
Which PHP function issues a command or query to the database?
Select one:
- a. my_query()
- b. mysql_query()
- c. mysql_query_db()
- d. sqli_query()
The correct answer is: mysqlquery()
Question 14
What parameters are required in the PHP function, which issues a command or query to the database?
Select one:
- a. number
- b. boolean
- c. integer
- d. string
The correct answer is: string
Question 15
True or False: PHP can not generate images, which are diferent each time a user visits the page.
Select one:
- True
- False
The correct answer is 'False'.