Exam Details
Subject | programming with php | |
Paper | ||
Exam / Course | m.c.a.science | |
Department | ||
Organization | solapur university | |
Position | ||
Exam Date | November, 2017 | |
City, State | maharashtra, solapur |
Question Paper
M.C.A. (Semester III) (CBCS) Examination Oct/Nov-2017
Science
PROGRAMMING WITH PHP
Day Date: Thursday, 23-11-2017 Max. Marks: 70
Time: 2.30 PM to 05.00 PM
Instructions: Question No. 1 and 2 are compulsory.
Attempt any 3 questions from Q.No.3 to Q.No.7.
Figures to the right indicate full marks.
Q.1 Choose correct alternatives: 10
What is the correct way to add 1 to the $count variable?
$count Count
count $count=+1
What is the correct way to create a function in PHP?
new_ function myFunction()
create myFunction()
function myFunction()
myfunction()
What is the correct way to end a PHP statement?
. New line
How do you get information from a form that is submitted using the
"get" method?
Request.Quert String; Request.Form;
PHP server scripts are surrounded by delimiters, which?
<script>…</script>
How do you write "Hello World" in PHP?
Echo "Hello World";
"Hello World";
Document.Write ("Hello World");
Show "Hello word";
Which of the following is/are a PHP code editior?
Notepad
ii) Notepad++
iii) Adobe Dreamweaver
iv) PDT
Only iv) All of the mentioned
ii) and iii) Only iii)
Page 2 of 3
SLR-SM-22
Which of the following PHP statement/statements will store 111 in
variable num?
Int $num=111;
ii) Int mum=111;
iii) $num=111;
iv) 111=$num;
Both and ii) All of the mentioned
Only iii) Only
What will be the output of the following PHP code?
$num 1
Print $num+$num
3 1+2
Error 12
10) Which one of the following is the right way to define a constant?
constant PI= "3.1415"; const $PI=3.1415";
constant PI= const PI=
Truth False: 04
PHP is a client- side scripting language.
In PHP you can use both single quotes and double quotes for
strings.
PHP can be run on Microsoft Windows IIS (Internet Information
Server).
In PHP, the only way to output text is with echo.
Q.2 Write short notes on the following 08
Scope of variable in PHP
Var_dump() and print_r function
Answer the following 06
Explain echo and print function with example.
Explain various attributes and elements of<form>tag with example.
Q.3 Answer the following 14
Explain different types of arrays with example.
Explain exception handling in PHP. Explain exception class functions with
example.
Q.4 Answer the following
Explain following string functions with example.
Strrev()
Explode()
Substr()
Substr_count()
08
Write a PHP script to accept a number from user and check whether its
palindrome or not.
06
Q.5 Answer the following 14
Explain session in PHP. Discuss how to create, modify and delete session
in PHP.
State difference between GET and POST method.
Page 3 of 3
SLR-SM-22
Q.6 Answer the following 14
Discuss different iterative statements available in PHP.
Assume a suitable structure of login table and Write a PHP script to accept
username and password. If username and password matched with
database value show welcome message box else show error message box.
Q.7 Answer the following 14
What is a data validation? Explain server-side data validations.
Write a script in PHP to read numbers from a file. And store all prime
numbers into prime.text file.
Science
PROGRAMMING WITH PHP
Day Date: Thursday, 23-11-2017 Max. Marks: 70
Time: 2.30 PM to 05.00 PM
Instructions: Question No. 1 and 2 are compulsory.
Attempt any 3 questions from Q.No.3 to Q.No.7.
Figures to the right indicate full marks.
Q.1 Choose correct alternatives: 10
What is the correct way to add 1 to the $count variable?
$count Count
count $count=+1
What is the correct way to create a function in PHP?
new_ function myFunction()
create myFunction()
function myFunction()
myfunction()
What is the correct way to end a PHP statement?
. New line
How do you get information from a form that is submitted using the
"get" method?
Request.Quert String; Request.Form;
PHP server scripts are surrounded by delimiters, which?
<script>…</script>
How do you write "Hello World" in PHP?
Echo "Hello World";
"Hello World";
Document.Write ("Hello World");
Show "Hello word";
Which of the following is/are a PHP code editior?
Notepad
ii) Notepad++
iii) Adobe Dreamweaver
iv) PDT
Only iv) All of the mentioned
ii) and iii) Only iii)
Page 2 of 3
SLR-SM-22
Which of the following PHP statement/statements will store 111 in
variable num?
Int $num=111;
ii) Int mum=111;
iii) $num=111;
iv) 111=$num;
Both and ii) All of the mentioned
Only iii) Only
What will be the output of the following PHP code?
$num 1
Print $num+$num
3 1+2
Error 12
10) Which one of the following is the right way to define a constant?
constant PI= "3.1415"; const $PI=3.1415";
constant PI= const PI=
Truth False: 04
PHP is a client- side scripting language.
In PHP you can use both single quotes and double quotes for
strings.
PHP can be run on Microsoft Windows IIS (Internet Information
Server).
In PHP, the only way to output text is with echo.
Q.2 Write short notes on the following 08
Scope of variable in PHP
Var_dump() and print_r function
Answer the following 06
Explain echo and print function with example.
Explain various attributes and elements of<form>tag with example.
Q.3 Answer the following 14
Explain different types of arrays with example.
Explain exception handling in PHP. Explain exception class functions with
example.
Q.4 Answer the following
Explain following string functions with example.
Strrev()
Explode()
Substr()
Substr_count()
08
Write a PHP script to accept a number from user and check whether its
palindrome or not.
06
Q.5 Answer the following 14
Explain session in PHP. Discuss how to create, modify and delete session
in PHP.
State difference between GET and POST method.
Page 3 of 3
SLR-SM-22
Q.6 Answer the following 14
Discuss different iterative statements available in PHP.
Assume a suitable structure of login table and Write a PHP script to accept
username and password. If username and password matched with
database value show welcome message box else show error message box.
Q.7 Answer the following 14
What is a data validation? Explain server-side data validations.
Write a script in PHP to read numbers from a file. And store all prime
numbers into prime.text file.
Other Question Papers
Subjects
- .net
- artificial intelligence
- computer communication network
- computer graphics
- computer oriented statistics
- data mining and warehouse
- data structures
- database management system
- digital circuits and microprocessors
- digital image processing
- discrete mathematical structures
- distributed operating system
- finite automata
- introduction to computers
- java programming
- management
- mobile computing
- network security
- numerical analysis
- object oriented programming using c++
- opeartions research
- operating system
- pattern recognition mobile computing
- programming using - c
- programming with php
- software engineering
- system software
- uml
- web design techniques
- web technology