Practical Slip 2 - 2019 Pattern

C++:

A) Write a C++ program to find volume of cylinder, cone and sphere. (Use function overloading).   [15 M]


i. Accept details for ‘n’ Movies from userandstoreit in a file “Movie.txt”.

ii. Display Movie details froma file.

iii. Count the numberof objects stored ina file.  [25 M]


PHP:

A) Write a PHP script to demonstrate the introspection for examining classes and objects. (use function get_declared_classes() ,get_class_methods() and get_class_vars()). [15 M]


B) Write a script to solve following questions (Use “Student.xml”file)

i) Create a DOM Documentobject and load this XMLfile.

ii) Get the output of this Documentto the browser.

iii) Save this [. XML] documentin another formati.e. in [.doc]

Write a XMLScript to print the namesof the student present in “Student.xm!” file. [25 M]


Post a Comment

0 Comments