PHP/Current affairs mcq php set 3 Sample Test,Sample questions

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

1.increases

2.decreases

3.stays constant

4.remains unaffected


Question:
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?

1.Ksort()

2.assort()

3.krsort()

4.sort()


Question:
Basic syntax for calling a function is

1.function_name(expression1,expersion2)

2.(expression 1: Function_name, expersion 2 : Function_name)

3.(expression 1, expersion 2)

4.None of them


Question:
do-while loop is called as________

1.Entry controlled loop

2.exit controlled loop

3.entry exit controlled loop

4.None of the above


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

1.2

2.4

3.3

4.1


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

1.7

2.8

3.9

4.10


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

1._self

2._blank

3._post

4.None


Question:
In a switch-case statement, default can be written__________

1.any where

2.should be the last statement

3.First statement

4.None of the above


Question:
In PHP cookies are set by using

1.setcookie() function

2.set() function

3.COOKIE_SET() function

4.None of Above


Question:
PHP is the correct way of declaring PHP variables?

1.1

2.-1

3.0

4.+1


Question:
PHP is __________ scripting language.

1.client side

2.server side

3.browser side

4.none of these


Question:
PHP sessions are created using the _______ function.

1.session_starts()

2.sessions_start()

3.session_start()

4.none of above


Question:
PHP stands for_________

1.htpertext processor

2.pretext hyper processor

3.preprocessor home page

4.none of above


Question:
Session allow you to

1.store persistent user preference on a site

2.save user authentication information from page to page

3.create multipage forms

4.all of above


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

1.basic SQL injection

2.Advanced SQL Injection

3.Cross-site Scripting

4.Scripting


Question:
The brain ____ as people gets older.

1.shrinks

2.expands

3.stays constant

4.remains unaffected


Question:
There are three different kind of arrays:

1.Numeric array, String Array, Multidimensional array

2.Numeric array, Associative array, Dimensional array

3.Numeric array, associative array, Multidimensional array

4.Const array, Associative array, Multidimensional array


Question:
There is __________ in working memory as people gets older.

1.upgradation

2.degradation

3.no change

4.a slight change


Question:
To destroy the session, we use

1.$destroy()

2.session_destroy()

3.destroy_session

4.session_destroy()


Question:
To remove all global session variables, use

1.session_unset()

2.Unset()

3.Unsetsession

4.$unset()


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

1.FILTER_VALIDATE_EMAIL

2.FILET_VALIDATE_EMAIL

3.VALIDATE_EMAIL

4.VALIDATE_EMAIL


Question:
Two main structures of branching are____________

1.if and switch

2.if and do while

3.if and for

4.none of the above


Question:
vWhat is the correct way of declaring PHP variables?

1.$name

2.$7hello

3.$this

4.name


Question:
What is the concatenation operator in PHP?

1.=

2.+

3.,

4..


Question:
What is the syntax of PHP code ?

1.<PHP>

2.<?PHP?>

3.<?PHP??

4.//PHP//


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

1.none

2.only you

3.everyone

4.selected few


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

1.none

2.only you

3.everyone

4.selected few


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

1.$_SESSION

2.$YS_SESSION

3.$SESSION

4.$_SESSIONS


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

1.array_shift()

2.array_unshift()

3.array_push()

4.into_array()


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

1.exist()

2.exist_class()

3.class_exist()

4._exits()


Question:
Which function is used to sort array in ascending order?

1.sort()

2.rsort()

3.dsort()

4.none of above


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

1.this_array()

2.is_array()

3.unset()

4.in_array()


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

1.private

2.public

3.protected

4.$this


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

1.GET

2.POST

3.PUT

4.SET


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

1._collect()

2._garbage()

3._destruct()

4._destructor()


Question:
which notation is used to access variables of an object?

1.::

2.=

3.->

4..


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

1.->

2._

3.$

4.::


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

1.if statements

2.if-else statements

3.All of the above

4.switch statements


Question:
Which of the following database is supported by php from beginning

1.SQL

2.ORACLE

3.PostgreSQL

4.MySQL


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

1.The preg_match() function is used to search specified string by string, returns true if the pattern found otherwise false.

2.The preg_match() function searches throughout string specified by pattern for a string specified by string. The search is not case sensitive.

3.The preg_match() function searches sting for pattern, returning true if pattern exist otherwise false.

4.None of above


Question:
Which of the following is not a feature of Tableau?

1.Speed of Analysis

2.None of the options

3.Visual Discovery

4.Data Recovery


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

1.Date Calculation

2.Number Calculations

3.String Calculation

4.Text Calculation


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

1.func_get_argv()

2.func_get_args()

3.get_argv()

4.get_argc()


Question:
which of the following statement initialized mysqli class?

1.$mysqli=new mysqli();

2.$mysqli->new.mysqli();

3.mysqli->new.mysqli();

4.None of Above


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

1.create table table_name(columnname columntype);

2.create table_name(column_name column_type);

3.create table_name(column_name, column_type);

4.create table table_name(column_type, column_name);


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

1.GET

2.POST

3.REQUEST

4.NEXT


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

1.friendly()

2.final

3.public

4.static


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

1.GET

2.POST

3.REQUEST

4.NEXT


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

1.Automatic Sorting

2.Normal Sorting

3.Manual Sorting

4.Computed Sorting


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

1.Drill down view

2.Custom data view

3.Swapping dimensions


More MCQS

  1. PHP Mcq Set 1
  2. PHP Mcq Set 2
  3. PHP Mcq Set 3
  4. PHP Mcq Set 4
  5. Current affairs mcq php
  6. Current affairs mcq php set 2
  7. Current affairs mcq php set 3
  8. PHP MCQ
  9. PHP MCQ Basics
  10. PHP Mcq Functions
  11. PHP Mcq Arrays
  12. PHP Mcq Basics of Object-Oriented PHP
  13. PHP Mcq Error Handling
  14. PHP Basics Mcq Questions
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!