Вы находитесь на странице: 1из 3

Page 1 of 3

CAMBRIDGE INSTITUTE OF TECHNOLOGY


K.R. PURAM, BENGALURU-560036

Department of MCA

Sub. Name: Advance Web Programming


Sub. Code:17MCA42 Semester: IV

MODULE 2:PHP(REMAINING)

Sl. QUESTIONS COs RBT Marks


No Levels
1 a) Explain with an example any two built-in regular CO2 L2 06M
expression functions in PHP.
b) Write a PHP script to determine whether a particular CO2 L2 07M
cookie exists.
c) Illustrate file operations in PHP with example. CO2 L3 07M
2 a) Demonstrate the use of session variable in login and CO2 L2 06M
logout pages.
b) Write a PHP program to store current details of date-time CO2 L2 07M
in a COOKIE and display the ‘Last visited’ date-time on
the web page upon reopening of the same page.
c) Illustrate PHP document processing done with different CO2 L3 07M
modes of operation.
3 a) Explain with an example any two built-in regular CO2 L2 06M
expression functions in PHP.
b) Write a PHP script to determine whether a particular CO2 L2 07M
cookie exists.
c) Illustrate file operations in PHP with example. CO2 L3 07M

4 a) Demonstrate the use of session variable in login and CO2 L2 06M


logout pages.
b) Write a PHP program to store current details of date-time CO2 L2 07M
in a COOKIE and display the ‘Last visited’ date-time on
the web page upon reopening of the same page.
c) Illustrate the process of register, unregister & delete CO2 L3 07M
Session Variables in PHP.
5 a) Explain mysql_fetch_row and mysql_fetch_array with an CO2 L2 06M
example.
Page 2 of 3

b) Write a PHP program to insert name and age information CO2 L2 07M
into a table created using MySQL and display the current
contents of the table.
c) Illustrate pattern matching techniques used in PHP. CO2 L3 07M
6 a) Differentiate between $_GET and $_POST methods in CO2 L2 06M
PHP.
b) Write a PHP program to store “page views” count in SESSION, CO2 L2 07M
on the page. Implement the count increment on each
refresh.
c) Demonstrate session tracking mechanism in PHP. CO2 L3 07M
Page 3 of 3

MODULE 3:RUBY

Sl. QUESTIONS COs RBT Marks


No Levels
1 a) Illustrate while and for statement in ruby with an CO3 L3 10M
example.
b) Demonstrate remembering and substitution pattern CO3 L3 10M
matching techniques in Ruby.
2 a) Illustrate the construction of list using any five built-in CO3 L3 10M
methods in Ruby.
b) Demonstrate the concepts of access control in Ruby. CO3 L3 10M

3 a) Demonstrate string methods in Ruby with suitable CO3 L3 10M


examples.
b) Interpret Ruby case statement with appropriate example. CO3 L3 10M
4 a) Illustrate with examples any five built in methods of CO3 L3 10M
arrays in Ruby.
b) Demonstrate hashes and method in Ruby with examples. CO3 L3 10M

5 a) Demonstrate input and output operations in Ruby with an CO3 L3 10M


example.
b) Illustrate with examples if and unless statements in Ruby. CO3 L3 10M
6 a) Demonstrate inheritance in ruby with an example. CO3 L3 10M

b) Simulate stack operations in Ruby. CO3 L3 10M