Internet Technology II - 2025 Fall

Pokhara University

Candidates are required to give their answers in their own words as far as practicable. The figures in the margin indicate full marks.

Level: Bachelor

Program: BCSIT

Course: Internet Technology II

Full Marks: 100

Pass Marks: 45

Time: 3 hrs.

Section B (Any 5 Questions) 10 Marks

  1. Define Operators. Discuss different types of operators in PHP with suitable examples.
  2. Describe different conditional statements and loops in PHP.

    Write a program using if-else, for, and do-while loops to display odd numbers between 1 and 20.

  3. Explain PHP built-in functions.

    Describe string, math, date-time, and array functions with examples.

  4. Write the importance of data validation and sanitization in PHP with example.
  5. What is error handling in PHP?

     Write a login system using try-catch blocks and sessions to authenticate a user.

  6. Explain the MVC model. Describe the roles of Model, View, and Controller with a suitable diagram.

Section C (Any 2 Questions) 15 Marks

  1. Explain object-oriented programming in PHP.

    Explain object-oriented programming in PHP. Describe classes, objects, properties, and methods. Demonstrate inheritance, encapsulation, and polymorphism with suitable PHP examples.

  2. Perform CRUD operation

    Perform CRUD operation to create student information system with attributes (id, name, age, class) with database name as student_info and table name as student.

  3. Explain array in PHP. Describe different types of arrays.

    Explain array in PHP. Describe different types of arrays. Demonstrate array creation and array iteration using suitable PHP programs with examples.

Do you want the solution?

Login to access detailed answers and explanations.

View Solution