Unit 1 - Expression & Control Statements in PHP (22619 WPD MSBTE) Cwipedia
Unit 1 - Expression & Control Statements in PHP (22619 WPD MSBTE) Cwipedia
Stay Tuned for Daily Quizzes on All 6th Semester Computer Group Subjects like
PHP, Python, MAD, and other
Online Quiz to help you in preparing for Online Exams, It covers 15 Multiple
Choice Questions (MCQs) for 20 Marks
imp Links:
All Theory tutorials: https://bit.ly/3ihW2zX
contact us on [email protected]
C++
Java
Python
Hypertext Preprocessor
https://docs.google.com/forms/d/e/1FAIpQLScXHvjT7u7TFAeLnrSEo3criHv_xRgGAkOKIQKC4XsKgWy0zg/viewscore?viewscore=A… 1/7
3. PHP has an extensions * 1/1
.php
.php3
.phtml
True
False
A and B
echo()
print()
https://docs.google.com/forms/d/e/1FAIpQLScXHvjT7u7TFAeLnrSEo3criHv_xRgGAkOKIQKC4XsKgWy0zg/viewscore?viewscore=A… 2/7
7. Which statement is faster * 1/1
echo
print_r()
Case insensitive
Case sensitive
Local Variable
Global Variable
Static Variable
Public Variable
https://docs.google.com/forms/d/e/1FAIpQLScXHvjT7u7TFAeLnrSEo3criHv_xRgGAkOKIQKC4XsKgWy0zg/viewscore?viewscore=A… 3/7
10. PHP supports ___ primitive data types. * 1/1
10
Object
Resource
Null
Float
12. What is the Output <? $no="1"; echo gettype($no); ?> * 1/1
integer
string
char
float
https://docs.google.com/forms/d/e/1FAIpQLScXHvjT7u7TFAeLnrSEo3criHv_xRgGAkOKIQKC4XsKgWy0zg/viewscore?viewscore=A… 4/7
13. Which logical operator has higher precedence from 1/1
following? *
&&
||
xor
Logical operator
Assignment operator
Ternary operator
None of them
While
Do While
For
None of them
https://docs.google.com/forms/d/e/1FAIpQLScXHvjT7u7TFAeLnrSEo3criHv_xRgGAkOKIQKC4XsKgWy0zg/viewscore?viewscore=A… 5/7
16. By default scope of variable which is defined inside a 1/1
function is? *
Global
Local
Restricted
None of them
18. How many main parameters are used in for loop * 1/1
https://docs.google.com/forms/d/e/1FAIpQLScXHvjT7u7TFAeLnrSEo3criHv_xRgGAkOKIQKC4XsKgWy0zg/viewscore?viewscore=A… 6/7
19. do-while loop is an _____ control loop ? * 1/1
exit
exist
easy
entry
20. What will be the output of the following PHP code? * 1/1
13579
12345
97531
Error
Feedback
Happy Learning!
cwipedia.in
This content is neither created nor endorsed by Google. - Terms of Service - Privacy Policy
Forms
https://docs.google.com/forms/d/e/1FAIpQLScXHvjT7u7TFAeLnrSEo3criHv_xRgGAkOKIQKC4XsKgWy0zg/viewscore?viewscore=A… 7/7