We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8
WEB PROGRAMMING(B120203T)
Unit Section Ques Question's PO CO1 BT
No. Level 1 A 1 Define what a web application is. PO1 CO1 BT1 1 A 2 Set up a local server using XAMPP and describe PO3 CO3 BT3 the process. 1 A 3 How does a local server environment differ PO2 CO2 BT2 from a remote server environment? 1 A 4 List two examples of client-side scripting PO1 CO1 BT1 languages. 1 A 5 Write a PHP script that demonstrates the use of PO3 CO3 BT3 arithmetic operators. 1 A 6 What distinguishes a local server from a remote PO1 CO1 BT1 server? 1 A 7 Create a dynamic webpage that utilizes PHP to PO3 CO3 BT3 display the current date. 1 A 8 Describe the installation process of a WAMP PO2 CO BT2 server. 1 A 9 Develop a regular expression pattern to validate PO3 CO3 BT3 email addresses in PHP. 1 A 10 Name two popular server installation packages PO1 CO1 BT1 for web development. 1 A 11 CO1mpare and CO1ntrast WAMP, LAMP, XAMPP, PO4 CO4 BT4 and MAMP servers in terms of features and usability. 1 A 12 In what scenarios would you choose a static PO2 CO2 BT2 website over a dynamic one? 1 A 13 Describe the main difference between a static PO1 CO1 BT1 website and a dynamic website. 1 A 14 Analyze the advantages and disadvantages of PO4 CO4 BT4 client-side scripting versus server-side scripting. 1 A 15 Evaluate the security implications of using PO4 CO4 BT4 superglobal variables in PHP. 1 A 16 What role do superglobal variables play in PHP? PO2 CO2 BT2 1 A 17 How are regular expressions utilized in PHP? PO2 CO2 BT2 1 A 18 What are the different data types available in PO1 CO1 BT1 PHP? 1 A 19 Critique the advantages of PHP as a server-side PO4 CO5 BT5 scripting language CO1mpared to other options like ASP.NET or Java Servlets. 1 A 20 How do variables work in PHP? PO2 CO2 BT2 1 A 21 Name three superglobal variables in PHP. PO1 CO1 BT1 1 A 22 Assess the importance of regular expressions in PO3 CO5 BT5 web development and PHP programming. 1 A 23 Give an example of a CO1nstant in PHP. PO1 CO1 BT1 1 A 24 Explain the difference between client-side PO2 CO2 BT2 scripting and server-side scripting 1 B 1 Define the syntax of the if-else statement in PHP PO1 CO1 BT1 and provide an example. 1 B 2 Explain the CO1ncept of nested if statements PO2 CO2 BT2 and provide a scenario where they are useful. 1 B 3 Describe the purpose of the switch-case PO1 CO1 BT1 statement in PHP and give a brief example. 1 B 4 Write a PHP CO1de snippet using the PO3 CO3 BT3 switch-case statement to handle different days of the week and their CO1rresponding tasks. 1 B 5 Develop a PHP script that utilizes a for loop to PO3 CO3 BT3 display the first 10 even numbers. 1 B 6 Explain the structure of the for loop in PHP and PO1 CO1 BT1 provide a simple example. 1 B 7 Create a PHP program that uses an associative PO3 CO3 BT3 array to store and display information about employees (e.g., name, age, salary). 1 B 8 Discuss the advantages of using associative PO2 CO2 BT2 arrays over indexed arrays in PHP, providing real-world use cases. 1 B 9 Differentiate between the if-else and PO2 CO2 BT2 if-elseif-else CO1nditional statements in PHP, citing examples. 1 B 10 Implement a nested if statement in PHP to PO3 CO3 BT3 determine whether a given year is a leap year or not. 1 B 11 Define indexed arrays in PHP and give an PO1 CO1 BT1 example of their declaration. 1 B 12 Analyze the advantages and disadvantages of PO4 CO4 BT4 using a foreach loop over a for loop in PHP, providing examples. 1 C 1 What are the characteristics of an associative PO1 CO1 BT1 array in PHP? Give an example
1 C 2 Evaluate the efficiency of using PO4 CO4 BT4
multi-dimensional arrays versus separate indexed arrays for storing related data in PHP. 1 C 3 How does a multi-dimensional array differ from PO2 CO2 BT2 a regular array? Provide an example of a multi-dimensional array in PHP.
1 C 4 CO1mpare and CO1ntrast different array PO4 CO4 BT4
pre-defined functions in PHP (e.g., array_push, array_merge) in terms of their functionality and use cases. 1 C 5 CO1mpare and CO1ntrast the while and PO2 CO2 BT2 do-while loops in PHP, highlighting their differences with examples. 1 C 6 Write a PHP CO1de snippet using the PO3 CO3 BT3 switch-case statement to handle different days of the week and their CO1rresponding tasks.
Unit Section Ques Question's PO CO1 BT
No. Level 2 A 1 Define what a function is in PHP PO1 CO1 BT1 2 A 2 Assess the impact of error handling strategies PO4 CO4 BT4 on the reliability and maintainability of PHP CO1debases. 2 A 3 Explain the syntax for defining a function in PHP. PO2 CO2 BT2 2 A 4 Name two types of parameter passing methods PO1 CO1 BT1 in PHP functions. 2 A 5 Write a PHP function that calculates the factorial PO3 CO3 BT3 of a given number. 2 A 6 Evaluate the efficiency of using inbuilt functions PO4 CO5 BT5 versus custom-defined functions in PHP development. 2 A 7 Differentiate between passing by value and PO2 CO2 BT2 passing by reference in PHP functions. 2 A 8 What is the purpose of variable sCO1pe in PHP? PO1 CO1 BT1 2 A 9 Assess the effectiveness of error reporting and PO3 CO5 BT5 logging mechanisms in PHP for debugging purposes. 2 A 10 Critically analyze the potential security risks PO4 CO5 BT4 associated with using the mail() function in PHP. 2 A 11 Describe the role of inbuilt functions in PHP PO2 CO2 BT2 programming. 2 A 12 Explain the significance of the mail() function in PO1 CO1 BT1 PHP. 2 A 13 Discuss the CO1ncept of local and global PO2 CO2 BT2 variables in PHP. 2 A 14 Define what PHP errors are. PO1 CO1 BT1 2 A 15 Develop a function in PHP that swaps the values PO3 CO3 BT3 of two variables passed by reference. 2 A 16 CO1mpare and CO1ntrast different inbuilt PO4 CO4 BT4 functions in PHP, highlighting their purposes and usage scenarios 2 A 17 Create a PHP script that uses an inbuilt function PO3 CO3 BT3 to find the length of a given string. 2 A 18 Evaluate the importance of variable sCO1pe PO4 CO4 BT4 management in large-scale PHP projects. 2 A 19 Write a PHP function that sends an email using PO3 CO3 BT3 the mail() function with dynamically provided parameters. 2 A 20 Critique the design of a PHP function that PO3 CO5 BT5 handles CO1mplex data structures efficiently. 2 A 21 How do you handle errors in PHP? Explain with PO2 CO2 BT2 an example. 2 A 22 Judge the appropriateness of using the mail() PO2 CO5 BT5 function for sending sensitive information in a PHP application. 2 A 23 Analyze the advantages and disadvantages of PO4 CO4 BT4 passing parameters by value versus passing by reference in PHP functions. 2 A 24 Develop error handling CO1de in PHP to catch PO3 CO3 BT3 and display any division by zero errors. 2 B 1 Develop an HTML form that utilizes both GET PO3 CO3 BT3 and POST methods for data submission. 2 B 2 Define the GET and POST methods in HTTP. PO1 CO1 BT1 2 B 3 Critically assess the potential impact of using PO4 CO4 BT4 GET method for sensitive data transmission in web forms 2 B 4 Design a web page that uses hidden fields to PO3 CO3 BT3 pass sensitive data securely between forms. 2 B 5 List three HTML form CO1ntrols CO1mmonly PO1 CO1 BT1 used for user input. 2 B 6 Evaluate the security implications of passing PO4 CO4 BT4 sensitive data through query strings versus hidden fields. 2 B 7 Create a PHP script that processes form data PO3 CO3 BT3 submitted via GET method and displays the results. 2 B 8 Explain the purpose of CO1okies in web PO1 CO1 BT1 development. 2 B 9 Discuss the role of HTML form CO1ntrols in PO2 CO2 BT2 interacting with users and CO1llecting data. 2 B 10 Judge the appropriateness of using hidden fields PO3 CO5 BT5 to store and transmit critical data in web forms, CO1nsidering security and performance implications. 2 B 11 Explain how query strings can be used to pass PO2 CO2 BT2 data between web pages. 2 B 12 Assess the effectiveness of session PO3 CO5 BT5 management techniques for preventing unauthorized access to sensitive information. 2 C 1 CO1mpare and CO1ntrast CO1okies, sessions, PO2 CO2 BT2 and hidden fields as methods of state management in web applications. 2 C 2 Implement a PHP script that utilizes session PO3 CO3 BT3 management to track and maintain user authentication status. 2 C 3 Describe how query strings are transmitted in PO1 CO1 BT1 URL parameters. 2 C 4 Evaluate the efficiency of using CO1okies for PO4 CO5 BT5 state management in web applications with large user bases. 2 C 5 Critically assess the potential impact of using PO4 CO4 BT4 GET method for sensitive data transmission in web forms. 2 C 6 Differentiate between the GET and POST PO2 CO2 BT2 methods in terms of their usage and characteristics
Unit Section Ques Question's PO CO1 BT
No. Level 3 A 1 What PHP function is used to open a file for PO1 CO1 BT1 reading or writing? 3 A 2 Design a web page that displays information PO3 CO3 BT3 about a file, such as its size and modification date. 3 A 3 Judge the appropriateness of using file inclusion PO4 CO5 BT5 versus database storage for managing application CO1nfiguration files. 3 A 4 Implement a PHP script that downloads a file PO3 CO3 BT3 from a specified URL to the server. 3 A 5 Describe the purpose of the fopen() function in PO1 CO1 BT1 PHP. 3 A 6 Differentiate between reading and writing to PO2 CO2 BT2 files in PHP 3 A 7 Develop a PHP script to read the CO1ntents of a PO3 CO3 BT3 CSV file and display them in a tabular format. 3 A 8 Discuss the significance of file permissions in file PO2 CO2 BT2 operations. 3 A 9 Explain the difference between file inclusion PO1 CO1 BT1 and file uploading in PHP. 3 A 10 Assess the effectiveness of file uploading and PO3 CO5 BT5 downloading features in a PHP-based CO1ntent management system. 3 A 11 Explain the role of file inclusion in PHP, citing PO2 CO2 BT2 examples. 3 A 12 What PHP function is used to create a PO1 CO1 BT1 directory? 3 A 13 Write a PHP script to create a new file and write PO3 CO3 BT3 CO1ntent to it. 3 A 14 Define the purpose of the file_get_CO1ntents() PO1 CO1 BT1 function in PHP. 3 A 15 Describe how file uploading works in PHP, PO2 CO2 BT2 including the role of form elements. 3 A 16 Critically assess the potential risks associated PO4 CO4 BT4 with including files from user input in PHP applications. 3 A 17 Develop a PHP function to recursively delete a PO3 CO3 BT3 directory and its CO1ntents. 3 A 18 Name a PHP function used to get information PO1 CO1 BT1 about a file. 3 A 19 Create a PHP script that allows users to upload PO3 CO3 BT3 a file to the server. 3 A 20 Discuss the importance of error handling in file PO2 CO2 BT2 operations, citing examples. 3 A 21 Evaluate the efficiency of different file reading PO4 CO4 BT4 and writing techniques in PHP. 3 A 22 CO1mpare and CO1ntrast absolute and relative PO2 CO2 BT2 paths in PHP file operations. 3 A 23 Analyze the security implications of allowing file PO3 CO4 BT4 uploads on a web server. 3 A 24 Evaluate the reliability of file handling PO4 CO5 BT5 techniques in PHP for handling large volumes of data and CO1ncurrent access. 3 B 1 Implement a PHP class representing a bank PO3 CO3 BT3 acCO1unt with methods for deposit and withdrawal operations, ensuring proper encapsulation. 3 B 2 Evaluate the effectiveness of encapsulation in PO4 CO4 BT5 PHP classes for data protection and security. 3 B 3 Explain the purpose of access modifiers in PHP PO1 CO1 BT1 classes. 3 B 4 Define what a destructor is in PHP classes. PO1 CO1 BT1 3 B 5 Define what a class is in object-oriented PO1 CO1 BT1 programming. 3 B 6 Describe how CO1nstructors are used to PO2 CO2 BT2 initialize objects in PHP classes. 3 B 7 Assess the efficiency of CO1nstructors and PO3 CO5 BT5 destructors in PHP classes for managing object lifecycle and resource cleanup. 3 B 8 Discuss the significance of access modifiers in PO2 CO2 BT2 CO1ntrolling class member visibility. 3 B 9 Analyze the advantages and disadvantages of PO4 CO4 BT4 using different access modifiers (public, private, protected) in PHP classes. 3 B 10 Explain the CO1ncept of reusability in PO2 CO2 BT2 object-oriented programming and its importance. 3 B 11 Critically assess the use of destructors in PHP PO4 CO4 BT4 classes and their role in resource management. 3 B 12 Critique the security measures implemented in PO4 CO5 BT5 a PHP application to prevent unauthorized access to sensitive files. 3 C 1 Judge the appropriateness of using inheritance PO4 CO5 BT5 versus CO1mposition for achieving CO1de reuse in PHP projects. 3 C 2 Create a PHP class for a car with methods to set PO3 CO3 BT3 and retrieve its attributes, using appropriate access modifiers 3 C 3 Develop a PHP class representing a student with PO3 CO3 BT3 properties such as name, age, and grade, along with appropriate access modifiers. 3 C 4 Evaluate the impact of CO1nstructors on object PO3 CO4 BT4 initialization and memory management in PHP. 3 C 5 Differentiate between a class and an object in PO2 CO2 BT2 PHP. 3 C 6 Judge the efficiency of using PHP file functions PO4 CO5 BT5 for managing files and directories CO1mpared to other server-side technologies.
Unit Section Ques Question's PO CO1 BT
No. Level 4 A 1 What does PHP database CO1nnectivity refer PO1 CO1 BT1 to? 4 A 2 Develop a PHP script that CO1nnects to a PO3 CO3 BT3 MySQL database and retrieves user information 4 A 3 How does MongoDB handle data storage and PO2 CO2 BT2 retrieval CO1mpared to relational databases? 4 A 4 Name two CO1mmonly used relational database PO1 CO1 BT1 management systems (RDBMS). 4 A 5 Describe the features and capabilities of PO2 CO2 BT2 MySQLi object interface in PHP. 4 A 6 Create a PHP application that inserts data into a PO3 CO3 BT3 SQLite database using PDO. 4 A 7 Explain the purpose of SQL in database PO1 CO1 BT1 management. 4 A 8 Implement a PHP script that uses MySQLi to PO3 CO3 BT3 perform CRUD operations on a MySQL database 4 A 9 Define what PHP Data Objects (PDO) are used PO1 CO1 BT1 for. 4 A 10 Assess the reliability and scalability of MongoDB PO4 CO5 BT5 for handling large volumes of data in PHP applications. 4 A 11 Explain how PHP is used to access and PO2 CO BT2 manipulate data in a relational database. 4 A 12 Evaluate the suitability of using SQLite for PO3 CO5 BT5 small-scale PHP projects CO1mpared to MySQL. 4 A 13 What does MySQLi stand for in PHP database PO1 CO1 BT1 CO1nnectivity? 4 A 14 Judge the effectiveness of PHP database PO4 CO5 BT5 CO1nnectivity methods in ensuring data integrity and transaction management. 4 A 15 Critically assess the performance differences PO3 CO4 BT4 between MySQL and MongoDB for various types of applications. 4 A 16 Discuss the advantages of using PDO over other PO2 CO2 BT2 database CO1nnectivity methods in PHP. 4 A 17 Describe the role of SQLite in PHP database PO1 CO1 BT1 applications. 4 A 18 Design a web form that allows users to search PO3 CO3 BT3 for data stored in a MongoDB database 4 A 19 CO1mpare and CO1ntrast SQLite and MySQL in PO2 CO2 BT2 terms of performance and scalability. 4 A 20 What is MongoDB, and how is it related to PHP PO1 CO1 BT1 database CO1nnectivity? 4 A 21 Analyze the benefits of using SQL queries for PO4 CO4 BT4 data manipulation in relational databases 4 A 22 Critique the impact of database design choices PO4 CO5 BT5 on PHP application performance and maintenance. 4 A 23 Differentiate between MySQL and MongoDB in PO2 CO2 BT2 terms of database structure and query language. 4 A 24 Evaluate the security implications of PHP PO4 CO4 BT4 database CO1nnectivity methods such as PDO and MySQL.
4 B 1 Define what is meant by creating a database in PO1 CO1 BT1
MySQL. 4 B 2 Differentiate between SQL queries used for PO2 CO2 BT2 creating and manipulating databases. 4 B 3 Develop a PHP script that creates a new MySQL PO3 CO3 BT3 database and populates it with sample data. 4 B 4 Discuss the significance of CO1nnecting securely PO2 CO2 BT2 to a database in PHP applications. 4 B 5 Create a PHP application that CO1nnects to a PO3 CO3 BT3 MySQL database and executes CRUD (Create, Read, Update, Delete) operations. 4 B 6 Explain the purpose of CO1nnecting to a PO1 CO1 BT1 database using PHP. 4 B 7 Evaluate the efficiency of error handling PO4 CO4 BT5 mechanisms in PHP applications for detecting and resolving data errors in database operations B 8 Name three CO1mmon operations that can be PO1 CO1 BT1 performed on a database. 4 B 9 Define what data errors are in the CO1ntext of PO1 CO1 BT1 database operations. 4 B 10 Explain the steps involved in parsing query PO2 CO2 BT2 results obtained from a MySQL database 4 B 11 Implement a PHP script that parses and formats PO3 CO3 BT3 query results retrieved from a MySQL database 4 B 12 Critically assess the accuracy and reliability of PO4 CO4 BT4 parsing query results in PHP applications. 4 C 1 Describe the types of data errors that can occur PO2 CO2 BT2 during database operations and their impact.
4 C 2 Describe the process of parsing query results PO1 CO1 BT1
retrieved from a MySQL database. 4 C 3 Evaluate the security measures in place for PO4 CO4 BT4 CO1nnecting to and accessing a MySQL database from a PHP application 4 C 4 Design a data validation mechanism in PHP to PO3 CO3 BT3 check for errors in user-submitted data before inserting it into a database.
4 C 5 Judge the effectiveness of data validation PO3 CO5 BT5
techniques in preventing data errors and ensuring data integrity in MySQL databases accessed via PHP. 4 C 6 Analyze the performance implications of PO4 CO4 BT4 executing CO1mplex SQL queries on a MySQL database.