R4RIN
Articles
Java 8
MCQS
PHP MCQ Quiz Hub
Current affairs mcq php set 2
Choose a topic to test your knowledge and improve your PHP skills
1. Which of the following statement produce different output
<?echo "This is php example"; ?>
<P="This is php example"; ?>
<?PHP echo "This is php example"; php?>
<script language="php"> print "This is php example";</script>
2. Which of the following delimiter is ASP style?
.............
<% %>
<? ?>
<script language=
3. Php supports all four different ways of delimiting. In this context identify the false statement
You can use any of the delimiting style
You can use different delimiting styles in same page
You can use any delimiting style but must use a single style consistently for a page
Variables declared in previous blocks are remenbered on later blocks too!
4. Which of following commenting is supported by Php
Single line c++ syntax - //
Shell syntax - #
Both of above
None of above
5. To produce the output6 I love the summer time, Which of the ofllowing statement should be used?
<? Php print (
<? Php $ season=
<?Php $ message=
All of above
6. Which of following function return 1 when output is successful?
echo ( )
print ( )
both
None
7. Which of followng statement is more suitable if you want to output a blend of static text and dynamic information stored within one or several variables?
echo ( )
print ( )
Print f ( )
of above
8. Which of the following type specifier is invalid in print f ( ) functions
% a
% b
% c
% d
9. Which of the following function can assign the output to a string variable
echo ( )
print ( )
print f ( )
print f ( )
10. Which of the following data type is not seal or datetype supported by PHP
Array
String
Float
Boolean
11. Which of the following data type is compound datatype supported by PHP
Array
String
Float
Boolean
12. If a boolean variable $ alive= 5;
$ alive is false
$ alive is true
$ alive is overflow
the statement is snot valid
13. For integer data type PHP 6 introduced
8 bit integer value
16 bit integer value
32 bit integer value
64 bit integer value
14. For integer data type PHP 5 and earlier supported
8 bit integer value
16 bit integer value
32 bit integer value
64 bit integer value
15. Trace the odd data type
floats
integer
doubles
Real number
16. Which of the folowing are valid float values?
4.5678
4
7e4
All of above
17. In php string data are
delimited by single quote
delimited by double quote
delimited by <<< identifier
All of above
18. Which of the following delimiting method is known as string Interpolation
delimited by single quote
delimited by double quote
delimited by <<< identifier
All of above
19. Which datatypes are treaded as arrays
Integer
Float
String
Booleans
20. Which of following are compound data type?
Array
Objects
Both
None
21. Casting operator introduced in PHP 6 is
(array)
(int64)
(real) or (double) or (float)
(object)
22. When defining identifier in PHP you should remember that
Identifier are case sensitive. So $result is different than $ result
Identifiers can be any length
Both of above
None of above
23. Identify the invalid identifier
my-function
size
some word
This&that
24. Identify the variable scope that is not supported by PHP
Local variables
Function parameters
Hidden variables
Global variables
25. Variable scope on which a variable does not loose its value when the function exists and use that value if the function is called again is:
Local
function parameter
static
None of above
26. The left association operator % is used in PHP for
percentage
bitwise or
division
modulus
27. The left associative dot operator (.) is used in PHP for
multiplication
concatenation
separate object and its member
delimeter
28. Which of the following functions require the allow-url-fopen must be enabled?
include()
require()
both of above
None of above
29. Which function includes the specified file even the statement evaluates to false in which block the function is placed.
include ()
require ()
both of above
None of above
30. On failure of which statement the script execution stops displaying error/warning message?
rinclude ()
require ()
both of above
None of above
31. Trace the function that does continue the script execution even if the file inclusion fails
include ()
require ()
both of above
None of above
32. Which of the following is not a function in Tableau?
Number Functions
String Functions
Aggregate Functions
None of the options
33. Which sort is not as per the exact values of number or text?
Automatic Sorting
Manual Sorting
None of the options
Computed Sorting
34. Dynamic sets can only be based on ________.
Multiple dimensions
A single measure
A single dimension
Multiple measures
35. _______ is a saved subset of a data source that you can use to improve performance and analyze offline.
Extract
Filter
Workbook
Worksheet
36. By default, how many blank worksheets are provided by Tableau when you have established a connection to data source?
4
2
3
1
37. What is the criteria to blend the data from multiple data sources?
here should be a common dimension to blend the data source into a single worksheet.
There should be a common measure to blend the data source into a single worksheet.
There are no criteria.
None of the options
38. Which join is used in data blending?
Inner Join
Right Join
Full Outer Join
No join as such
39. Which of the following is not a basic filter in Tableau?
Filter Dates
Filter Dimensions
Filter Fields
Filter Text
40. ______ sets the language to be used in the report.
Tableau Lang
Default Locale
Workbook Locale
Locale options
41. Which of the following filter selects values containing the specified characters?
Multiple Values (List)
Single Value (List)
Multiple Values (Dropdown)
Wildcard Match
42. Which is not an operator in Tableau?
Conditional Operators
Arithmetic operators
Logical Operators
General Operators
43. A _______ is a sheet that contains a sequence of worksheets or dashboards that work together to convey information.
Dashboard
Story
Workbook
Worksheet
44. A ______ is a new field that you create by using a formula to modify the existing fields in your data source.
Worksheet
Workbook
Filter Shelf
Calculated Field
45. The conditions can be applied to create a ______ filter.
context
quick
top
range
46. _____ are used to run complex queries involving many dimensions.
Calculations
LOD Expressions
Functions
Operators
Submit