These LAMP multiple-choice questions and their answers will help you strengthen your grip on the subject of LAMP. You can prepare for an upcoming exam or job interview with these LAMP MCQs.
So scroll down and start answering.
A. all servers work under Linux
B. it's flexible, productive, widespread and low cost (all components can be downloaded for free from Internet)
C. there are no alternative
D. only professionals can work with other alternatives
A. /etc/conf/my.cnf
B. /etc/mysql.cnf
C. /etc/conf/mysql.cnf
D. /etc/my.cnf
A. wrong password
B. wrong database name
C. wrong password and username
D. wrong username
A. 4322
B. 2314
C. 3128
D. 7334
A. free
B. fdisk
C. df
D. du
A. 'This is the "quoted" message'
B. 'This is the quoted" message"'
C. This is the "quoted" message
A. htdocs
B. conf
C. logs
D. cgi-bin
A. This will list all files in the current directory ending with list
B. This will list all files in the root directory starting with list
C. This will list all files in the current directory starting with list
D. This will list all files in the root directory ending with list
A. start
B. kill
C. stop
D. status
A. phpinfo()
B. phpconfig()
C. php_info()
D. php_config()
A. Parent Directory
B. Root Directory
C. It is not supported
D. Current directory
A. /etc/apache.conf
B. /etc/srm.conf
C. /etc/httpd/conf/httpd.conf
D. /etc/httpd/config.ini
A. httpd_enable_cgi
B. httpd_enable_homedirs
C. httpd_ssi_exec
D. All of the options are valid
A. chgowner
B. chown
C. chggrp
D. chwn
A. "\*"
B. "/"
C. "\"
D. "*/"
A. /usr/etc/hosts
B. /etc/hosts
C. /root/hosts
D. /var/www/hosts
A. sessionstart()
B. session_begin()
C. start_ session()
D. session_start()
A. Invalid Command
B. It will drop TEST database
C. It will drop TEST table
D. It will drop TEST user
A. chgrp
B. changegrp
C. chggrp
D. chggroup
A. admin
B. user
C. mysql
D. root
A. Will make a copy of file1 in the root directory and call it file2
B. Will make a copy of file1 in the current working directory and call it file2 and will delete file1
C. Will make a copy of file1 in the root directory and call it file2 and will delete file1
D. Will make a copy of file1 in the current working directory and call it file2
A. TINYTEXT
B. MEDIUMBLOB
C. TINYBLOB
D. All of the options are valid
A. it's a variation of a structured query language
B. it's a PHP interpreter
C. it's a database server
D. it's a programming language
A. using a php.ini file
B. using a .htaccess file
C. .htpasswd
D. this is impossible
A. <VirtHost>...</VirtHost>
B. <VHost>...</VHost>
C. <VirtualHost>...</VirtualHost>
D. <NewSite>...</NewSite>
A. programming language
B. the nickname of Linus Torvalds
C. operating system
D. the name of penguin
A. Java
B. PHP
C. Python
D. SQL
A. yes [WAMP, WIMP (for Windows), MAMP (Mac OS), BAMP (BSD)]
B. no
A. php_msql
B. php_my_sql
C. php_db
D. php_mysql
A. config.ini
B. httpd.conf
C. https.conf
D. config.conf
A. SecondServer
B. AnotherServer
C. AlternatePath
D. ServerAlias
A. linus
B. administrator
C. admin
D. root
A. myadmin
B. webDBadmin
C. phpmyadmin
D. mysqladmin
A. HyperThreading Transfer Protocol
B. nothing
C. Home Television Transfer Protocol
D. Hypertext Transfer Protocol
A. Linux + Apache+MySQL +Python
B. Linux + ASP+MySQL +Python
C. Linux + Apache+MySQL +PHP
D. Linux + Apache+MySQL +Perl
A. there is no name for this address
B. localhost
C. test
D. home
A. conf
B. logs
C. htdocs
D. apps
A. a record from the hosts file
B. nothing
C. a record from the DNS-server
D. both
A. config
B. biscuit
C. php.ini
D. cookie
A. ServerName
B. Hostel
C. NameOfTheHost
D. Host
A. RELOAD PRIVILEGES
B. UPDATE PRIVILEGES
C. REFRESH PRIVILEGES
D. FLUSH PRIVILEGES
E. RESET PRIVILEGES
A. apache restart
B. apache reboot
C. httpd reboot
D. httpd restart
A. It will write the first 5 lines of test.txt to the screen
B. It will create a new file with first 5 lines from test.txt
C. It will create a new file with last 5 lines from test.txt
D. It will write the last 5 lines of test.txt to the screen
A. SSLEngine
B. SSLCertificateFile
C. SSLCertificateKeyFile
D. All of these
A. chronos
B. crontab
C. shell
D. cron
A. after a span of user inactivity
B. every 15 minutes
C. when the browser is closed
D. when the browser is closed or after a span of user inactivity
A. 100Mbytes
B. 256Kbytes
C. There is no limit (hardware limit)
D. 1024bytes
A. 100
B. 10
C. 1
D. 0
A. a file in the cloud
B. a record in config file
C. a text file
A. edit the 'extension' directive in php.ini
B. None of the above
C. edit the extensions in php.ini
D. use AddType directive in httpd.conf