Exam Details
Subject | programming with php | |
Paper | ||
Exam / Course | m.c.a.science | |
Department | ||
Organization | solapur university | |
Position | ||
Exam Date | October, 2018 | |
City, State | maharashtra, solapur |
Question Paper
M.C.A. (Semester III) (CBCS) Examination Nov/Dec-2018
Science
PROGRAMMING WITH PHP
Time 2½ Hours Max. Marks: 70
Instructions: All questions are compulsory.
Figures to the right indicate full marks.
Q.1 Choose the correct answer. 14
Which of the function is used to sort an array is descending order?
sort() asort()
rsort() dsort()
Which character do the error_reporting directive use to represent the logical
operator NOT?
Which one of the following function will convert a string to all uppercase?
strtoupper() uppercase()
str_uppercase() struppercase()
Which one of the following method is used to retrieve the number of rows
affected by an INSERT, UPDATE, or DELETE query?
num_rows() affected_rows()
changed_rows() new_rows()
When you use the variable to collect data, the data is visible to.
None Only you
Everyone Selected few
$op2 "blabla";
function foo($op1)
echo
echo
foo("hello");
helloblabla Error
hello helloblablablabla
$fruits array ("apple", "orange", "banana");
echo(next($fruits));
echo(next($fruits));
orangebanana appleorange
orangeorange appleapple
Which of following variable assignment is „by assignment in PHP?
$value1 $value? $value1 $value?
$value1 &$value? none of above
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
10) Which of the following will not combine strings $s1 and $s2 into a single
string?
$s1 $s2 8
$s1.$s2 Implode(„
11) What will be the output of the following PHP code?
function calc($price,
$total $price ($price
echo"$total";
calc(42);
Error 0
42 84
12) How many ways can a session data be stored?
3 4
5 6
13) Which one of the following statement is used to create a table?
CREATE TABLE table_name (column_name column_type);
CREATE table_name (column_type column_name):
CREATE table_name (column_name column_type);
CREATE TABLE table_name (column_type column_name);
14) The data() function returns representation of the current data
and/or time.
Integer String
Boolean Float
Q.2 Answer the following. (Any four) 08
How to write HTML code in PHP?
What is the purpose of _PHP_SELF?
Describe the GET method.
What is mean by Server Side Scripting?
Describe the term scope of variable.
Write short notes on. (Any two) 06
Web browser
For loop
Writing Comments
Q.3 Answer the following. (Any two) 08
How will you generate random number using PHP?
Explain how index array is created in PHP.
Explain the term connecting to MySQL.
Answer the following. (Any one) 06
How to check whether the variable is set with session.
Write a program to print sum of first 10 numbers.
Q.4 Answer the following. (Any two) 10
Write a program to sort an associative array in ascending order by keys.
Explain the PHP debugging Techniques.
Write a program to check the user credentials, whether they are correct
or not. If the credentials are correct then the user will be redirected to
another page.
Answer the following. (Any one) 04
What is difference between strcmp and strcasecmp?
Write a program to print factorial of given number using sticky forms.
d
Q.5 Answer the following. (Any two) 14
Explain various date and time function in PHP
What is the difference between Session and Cookie?
Write a program to create a session, to set a value in session, and to remove
data from a session.
What is RDBMS? How to create a connection between PHP and My SQL?
Science
PROGRAMMING WITH PHP
Time 2½ Hours Max. Marks: 70
Instructions: All questions are compulsory.
Figures to the right indicate full marks.
Q.1 Choose the correct answer. 14
Which of the function is used to sort an array is descending order?
sort() asort()
rsort() dsort()
Which character do the error_reporting directive use to represent the logical
operator NOT?
Which one of the following function will convert a string to all uppercase?
strtoupper() uppercase()
str_uppercase() struppercase()
Which one of the following method is used to retrieve the number of rows
affected by an INSERT, UPDATE, or DELETE query?
num_rows() affected_rows()
changed_rows() new_rows()
When you use the variable to collect data, the data is visible to.
None Only you
Everyone Selected few
$op2 "blabla";
function foo($op1)
echo
echo
foo("hello");
helloblabla Error
hello helloblablablabla
$fruits array ("apple", "orange", "banana");
echo(next($fruits));
echo(next($fruits));
orangebanana appleorange
orangeorange appleapple
Which of following variable assignment is „by assignment in PHP?
$value1 $value? $value1 $value?
$value1 &$value? none of above
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
10) Which of the following will not combine strings $s1 and $s2 into a single
string?
$s1 $s2 8
$s1.$s2 Implode(„
11) What will be the output of the following PHP code?
function calc($price,
$total $price ($price
echo"$total";
calc(42);
Error 0
42 84
12) How many ways can a session data be stored?
3 4
5 6
13) Which one of the following statement is used to create a table?
CREATE TABLE table_name (column_name column_type);
CREATE table_name (column_type column_name):
CREATE table_name (column_name column_type);
CREATE TABLE table_name (column_type column_name);
14) The data() function returns representation of the current data
and/or time.
Integer String
Boolean Float
Q.2 Answer the following. (Any four) 08
How to write HTML code in PHP?
What is the purpose of _PHP_SELF?
Describe the GET method.
What is mean by Server Side Scripting?
Describe the term scope of variable.
Write short notes on. (Any two) 06
Web browser
For loop
Writing Comments
Q.3 Answer the following. (Any two) 08
How will you generate random number using PHP?
Explain how index array is created in PHP.
Explain the term connecting to MySQL.
Answer the following. (Any one) 06
How to check whether the variable is set with session.
Write a program to print sum of first 10 numbers.
Q.4 Answer the following. (Any two) 10
Write a program to sort an associative array in ascending order by keys.
Explain the PHP debugging Techniques.
Write a program to check the user credentials, whether they are correct
or not. If the credentials are correct then the user will be redirected to
another page.
Answer the following. (Any one) 04
What is difference between strcmp and strcasecmp?
Write a program to print factorial of given number using sticky forms.
d
Q.5 Answer the following. (Any two) 14
Explain various date and time function in PHP
What is the difference between Session and Cookie?
Write a program to create a session, to set a value in session, and to remove
data from a session.
What is RDBMS? How to create a connection between PHP and My SQL?
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