Toggle navigation
Login / Register
Ask Questions
Study
Current Affairs
Previous Papers
Kerala PSC
IBPS
UPSC
RBI
TNPSC
MPSC
SSC
CBSE
United States
Model Tests
News
More
Answers
Coaching Centres
Careers
Downloads
Colleges
Kuwait News & Classifieds
Classic Jhumka Earrings Silver
INR 113.00
Free Shipping
Buy Now
Black Jhumka Earrings & Studs
INR 94.00
Free Shipping
Buy Now
Classic Jhumka Earrings Silver
INR 207.00
Free Shipping
Buy Now
Beautiful stud earing
INR 93.00
Free Shipping
Buy Now
Different Size Hoop and Stud Earrings Set
INR 243.00
Free Shipping
Buy Now
Golden Hoop Earing
INR 70.00
Free Shipping
Buy Now
×
Create account with Openguide
Sign Up
By clicking Sign Up, you agree that you have read and accepted the
Open Guide Online User Agreement.
Already have an account?
Log in
×
Login to OpenGuide
Login
Forgot password?
Reset it
New user?
Register
×
Reset your password
Reset Password
Registered user?
Log in
New user?
Register
Home
Practice Tests
General Knowledge Practice Tests
General Knowledge Quiz - Question & Answers Set - 15
15 Questions
Time Left -
General Knowledge Quiz - Question & Answers Set - 15
Question 1 :
What is the default file upload size in php.ini
A
2MB
Question 2 :
What is the PHP function for page control redirection
A
header(). Syntax : header("location:urladdress");
Question 3 :
What is PEAR
A
PEAR is short for "PHP Extension and Application Repository" The purpose of PEAR is to provide: 1. A structured library of open-sourced code for PHP users 2. A system for code distribution and package maintenance 3. A standard style for code w
Question 4 :
How can we know the number of days between two given dates using PHP
Question 5 :
How To Get the Uploaded File Information in the Receiving Script
Question 6 :
What is the difference between mysql_fetch_object and mysql_fetch_array
A
Antonio Sneider
B
F.J.Wine
C
D.H.Mathews
D
Alfred Wegner
E
MySQL fetch object will collect first single matching record where mysql_fetch_array will collect all matching records from the table in an array
Question 7 :
How can I execute a PHP script using command line
A
Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, "php myScript.php", assuming "php" is the command to invoke the CLI program. Be aware that if your PHP script was writt
Question 8 :
How do you pass a variable by value
A
Just like in C++, put an ampersand in front of it, like $a = &$b
Question 9 :
What is the functionality of the functions STRSTR() and STRISTR()
A
string strstr ( string haystack, string needle ) returns part of haystack string from the first occurrence of needle to the end of haystack. This function is case-sensitive. stristr() is idential to strstr() except that it is case insensitive.
Question 10 :
When are you supposed to use endif to end the conditional statement
A
When the original if was followed by : and then the code block without braces.
Question 11 :
What is the functionality of the function strstr and stristr
A
strstr() returns part of a given string from the first occurrence of a given substring to the end of the string. For example: strstr("user@example.com","@") will return "@example.com". stristr() is idential to strstr() except that it is case insensitive.
Question 12 :
What is the difference between ereg_replace() and eregi_replace()
A
eregi_replace() function is identical to ereg_replace() except that it ignores case distinction when matching alphabetic characters.
Question 13 :
How do I find out the number of parameters passed into function
A
func_num_args() function returns the number of parameters passed in.
Question 14 :
How To Protect Special Characters in Query String
A
If you want to include special characters like spaces in the query string, you need to protect them by applying the urlencode() translation function
Question 15 :
How do you call a constructor for a parent class
A
parent::constructor($value)
Model Question Papers
Union Bank of India PO 2008 English Language
Binder Grade II Logical Reasoning & Mathematics
KSIE Junior Assistant Logical Reasoning & Mathematics
Kerala PSC LDC Thrissur 2003 Logical Reasoning & Mathematics
Kerala PSC LDC Palakkad 2003 Logical Reasoning & Mathematics
×
Invite your friends to attend test
Invite Now
Help & Support
About Us
Contact Us
Terms of Service