PHP MCQ Quiz Hub

Current affairs mcq php set 3

Choose a topic to test your knowledge and improve your PHP skills

As people gets older, the ability of applying or maintain attention





✅ Correct Answer: 2

The brain ____ as people gets older.





✅ Correct Answer: 1

There is __________ in working memory as people gets older.





✅ Correct Answer: 2

_______ is the sort directly applied on an axis using the sort dialog button.





✅ Correct Answer: 4

Which of the following is not a feature of Tableau?





✅ Correct Answer: 4

How many basic steps involved in creating any Tableau data analysis report?





✅ Correct Answer: 3

Which of the following is not a type of calculation in Tableau?





✅ Correct Answer: 4

_______ is used to extend the normal data views with some additional features.





✅ Correct Answer: 2

PHP stands for_________





✅ Correct Answer: 1

What is the syntax of PHP code ?





✅ Correct Answer: 2

What is the concatenation operator in PHP?





✅ Correct Answer: 4

vWhat is the correct way of declaring PHP variables?





✅ Correct Answer: 1

PHP is the correct way of declaring PHP variables?





✅ Correct Answer: 3

PHP is __________ scripting language.





✅ Correct Answer: 2

Which function is used to sort array in ascending order?





✅ Correct Answer: 1

There are three different kind of arrays:





✅ Correct Answer: 3

Assume you would like to sort an array in ascending order by value while preserving key associations. Which of the following PHP sorting functions would you use?





✅ Correct Answer: 2

Two main structures of branching are____________





✅ Correct Answer: 1

Which of the conditional statements is/are supported by PHP?





✅ Correct Answer: 3

do-while loop is called as________





✅ Correct Answer: 2

In a switch-case statement, default can be written__________





✅ Correct Answer: 2

Basic syntax for calling a function is





✅ Correct Answer: 1

Which function will return true if a variable is an array or false otherwise?





✅ Correct Answer: 2

Which of the following PHP function is used to build a function that accepts any number of arguments?





✅ Correct Answer: 2

Which build-in function will add a value to the end of the array





✅ Correct Answer: 3

which notation is used to access variables of an object?





✅ Correct Answer: 3

Which notation should be used to refer to a method in the context of a class rather than an object you use?





✅ Correct Answer: 4

Which method is invoked just before an object is garbage collected?





✅ Correct Answer: 3

which one of the following property scopes is not supported by PHP?





✅ Correct Answer: 1

which function is used to check if class is exists or not?





✅ Correct Answer: 3

Which keyword is used to refer to properties or methods within the class itself?





✅ Correct Answer: 4

When you use the $_GET variable to collect data, the data is visible to ___________





✅ Correct Answer: 3

When you use the $_POST variable to collect data, the data is visible to ____________





✅ Correct Answer: 2

Which one of the following should not be used while sending passwords or other sensitive information?





✅ Correct Answer: 1

Which method has larger limit on the amount of data that can be passed to web server?





✅ Correct Answer: 2

If we use_______ as value for target attribute in form tag, then the response will display in current page only.





✅ Correct Answer: 1

Which one of following should not be used while sending sensitive information?





✅ Correct Answer: 1

To validate email address, which flag is passes to filter_val() function?





✅ Correct Answer: 1

How many function PHP offers for searching and modifying string using PCRE?





✅ Correct Answer: 2

which of the following is correct about preg_match() function?





✅ Correct Answer: 1

PHP sessions are created using the _______ function.





✅ Correct Answer: 3

When you want to store user data in a session use the ________array.





✅ Correct Answer: 1

Session allow you to





✅ Correct Answer: 4

In PHP cookies are set by using





✅ Correct Answer: 1

The attack which involves the insertion of malicious code into a page frequented byy other users is knows as.





✅ Correct Answer: 3

To remove all global session variables, use





✅ Correct Answer: 1

To destroy the session, we use





✅ Correct Answer: 4

Which of the following database is supported by php from beginning





✅ Correct Answer: 4

Which of the following statement is used to create a table.





✅ Correct Answer: 1

which of the following statement initialized mysqli class?





✅ Correct Answer: 1