80s Gold.com (Memories) Pop Music and Tech Quiz

Total Questions in Database = 23 : Please wait while randomising 10 New Questions

#0 - How do you get information from a form that is submitted using the "get" method?


1. Request.Form;
2. $_GET[];
3. Request.QueryString;


#1 - What is the correct way to open the file "time.txt" as readable?


1. fopen("time.txt","r");
2. fopen("time.txt","r+");
3. open("time.txt");
4. open("time.txt","read");


#2 - In PHP 5, MySQL support is enabled by default:


1. True
2. False


#3 - Which one of these is NOT a current PHP Date/Time Command?


1. date_sunrise()
2. gettimeofday()
3. month()
4. date()
5. time()


#4 - Which one of these variables has an illegal name?


1. $my-Var
2. $myVar
3. $my_Var


#5 - In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:


1. False
2. True


#6 - What is a correct way to add a comment in PHP?


1. *\..\*
2. <comment>…</comment>
3. <!--…-->
4. /*…*/


#7 - How do you write "Hello World" in PHP?


1. "Hello World";
2. echo "Hello World";
3. Document.Write("Hello World");


#8 - How do you replace a part of a string in PHP?


1. strpos()
2. str_replace()
3. substr()
4. substr_count
5. replacewith()


#9 - PHP server scripts are surrounded by delimiters, which?


1. <&>...</&>
2. <?php>...</?>
3. <script>...</script>
4. <?php…?>

        
The next time you visit this page, there will another 10 random questions

Submit your own question and up to 5 answers for inclusion on this website HERE