16SCCCA9                                                                  16SCCCA9
MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR                     MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR
                 DEPARTMENT OF COMPUTER SCIENCE                                             DEPARTMENT OF COMPUTER SCIENCE
                           UNIT TEST – I                                                              UNIT TEST – I
                             III B.C.A                                                                  III B.C.A
                       PROGRAMMING IN PHP                                                         PROGRAMMING IN PHP
Time: 3hours                                     Max Marks: 120 Marks      Time: 3hours                                     Max Marks: 120 Marks
                               PART-A (10 x 2 =20)                                                         PART-A (10 x 2 =20)
                              Answer ALL Questions                                                        Answer ALL Questions
1. Define Scripting Language.                                              1. Define Scripting Language.
2. Mention two type of scripting Language.                                 2. Mention two type of scripting Language.
3. Define Open Source.                                                     3. Define Open Source.
4. What is PHP?                                                            4. What is PHP?
5. What is meant by PHP variables?                                         5. What is meant by PHP variables?
6. Write PHP comments.                                                     6. Write PHP comments.
7. List out PHP operators.                                                 7. List out PHP operators.
8. Define PHP expressions.                                                 8. Define PHP expressions.
9. Define PHP array.                                                       9. Define PHP array.
10. List out the any five reserved word.                                    10. List out the any five reserved word.
                               PART- B (10 x 5=50)                                                         PART- B (10 x 5=50)
                              Answer ALL Questions                                                        Answer ALL Questions
11. a).Discuss about scripting Language.                                   11. a).Discuss about scripting Language.
   b). Discuss about an overview on PHP.                                      b). Discuss about an overview on PHP.
12. a).Discuss about PHP output statement.                                 12. a).Discuss about PHP output statement.
    b).Explain how to get PHP Page.                                            b).Explain how to get PHP Page.
13. a).Discuss about Data types of PHP.                                    13. a).Discuss about Data types of PHP.
    b).Write short notes on PHP Constant with example.                         b).Write short notes on PHP Constant with example.
14. a).Write a short notes on PHP numeric functions.                       14. a).Write a short notes on PHP numeric functions.
   b).Write a PHP program to find the addition of two numbers.                b).Write a PHP program to find the addition of two numbers.
15. a).Explain the while and do-while statements in PHP.                   15. a).Explain the while and do-while statements in PHP.
    b).Discuss about jump statement.                                           b).Discuss about jump statement.
                               PART- C (5 x 10=50)                                                         PART- C (5 x 10=50)
                              Answer ALL Questions                                                        Answer ALL Questions
16. List and explain with example of PHP operators                         16. List and explain with example of PHP operators
17. Explain about conditional control statements in PHP.                   17. Explain about conditional control statements in PHP.
18. Discuss in details about for statement and for each statement in PHP   18. Discuss in details about for statement and for each statement in PHP
with example program.                                                      with example program.
19. Discuss about String functions.                                         19. Discuss about String functions.
20. Discuss in details about PHP arrays.                                   20. Discuss in details about PHP arrays.
                                                             16SCCCA9                                                               16SCCCA9
     MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR                         MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR
                 DEPARTMENT OF COMPUTER SCIENCE                                                 DEPARTMENT OF COMPUTER SCIENCE
                          UNIT TEST– II                                                                  UNIT TEST– II
                            III B.C.A                                                                      III B.C.A
                       PROGRAMMING IN PHP                                                             PROGRAMMING IN PHP
Time :3hours                                         Max Marks: 120 Marks      Time :3hours                                         Max Marks: 120 Marks
                               PART-A (10 x 2 =20)                                                            PART-A (10 x 2 =20)
                              Answer ALL Questions                                                           Answer ALL Questions
1.What is meant by PHP Function?                                               1.What is meant by PHP Function?
2.Write the syntax of PHP function.                                            2.Write the syntax of PHP function.
3.What is meant by actual parameter?                                           3.What is meant by actual parameter?
4.What is meant by formal parameters in PHP?                                   4.What is meant by formal parameters in PHP?
5.What is local variable?                                                      5.What is local variable?
6.What are the differences between get and post method?                        6.What are the differences between get and post method?
7.What is the use of unset() function in PHP?                                  7.What is the use of unset() function in PHP?
8.What is browser?                                                             8.What is browser?
9.List out the HTTP variables.                                                 9.List out the HTTP variables.
10.How do you read the data in web pages?                                      10.How do you read the data in web pages?
                               PART- B (10 x 5=50)                                                            PART- B (10 x 5=50)
                              Answer ALL Questions                                                           Answer ALL Questions
11. a)Explain the passing variable Numbers of Arguments.                       11. a)Explain the passing variable Numbers of Arguments.
    b) Explain about the Creating include Files.                                   b) Explain about the Creating include Files.
12. a) write a note on passing data to functions.                              12. a) write a note on passing data to functions.
   b) How to create a password controls?                                          b) How to create a password controls?
13. a) Write a note on passing Array to functions                              13. a) Write a note on passing Array to functions
    b) How to read a data from a web page?                                         b) How to read a data from a web page?
14. a) How to handling File uploads.                                           14. a) How to handling File uploads.
    b) How to handling checkboxes in PHP?                                          b) How to handling checkboxes in PHP?
15. a) Write short notes on PHP server variables.                              15. a) Write short notes on PHP server variables.
    b) Explain the function to redirect browser to a web page.                     b) Explain the function to redirect browser to a web page.
                               PART- C (5 x 10=50)                                                            PART- C (5 x 10=50)
                              Answer ALL Questions                                                           Answer ALL Questions
16. Discuss about the PHP functions.                                           16. Discuss about the PHP functions.
17. Explain when to use GET or POST method. Provide example for both ways.     17. Explain when to use GET or POST method. Provide example for both ways.
18. Describe various HTML from fields used in PHP.                             18. Describe various HTML from fields used in PHP.
19. Discuss about the PHP Browser-Handling power.                              19. Discuss about the PHP Browser-Handling power.
20. Write a PHP program to read student name, Register number, marks in HTML   20. Write a PHP program to read student name, Register number, marks in HTML
form. Find and display total, average and result using PHP.                    form. Find and display total, average and result using PHP.
                                                              16SCCCA9                                                                         16SCCCA9
     MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR                           MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR
                 DEPARTMENT OF COMPUTER SCIENCE                                                   DEPARTMENT OF COMPUTER SCIENCE
                          UNIT TEST– III                                                                   UNIT TEST– III
                            III B.C.A                                                                        III B.C.A
                       PROGRAMMING IN PHP                                                               PROGRAMMING IN PHP
TIME :3hours                            Max Marks: 120 Marks                     TIME :3hours                            Max Marks: 120 Marks
                            PART-A (10 x 2 =20)                                                              PART-A (10 x 2 =20)
                           Answer ALL Questions                                                             Answer ALL Questions
1. Define OOPs.                                                                  1. Define OOPs.
2. What are the OOPs concepts?                                                   2. What are the OOPs concepts?
3. Define Classes.                                                               3. Define Classes.
4. Write note on PHP Objects.                                                    4. Write note on PHP Objects.
5. Mention the PHP access modifiers.                                             5. Mention the PHP access modifiers.
6. Define destructor.                                                            6. Define destructor.
7. Define encapsulation.                                                         7. Define encapsulation.
8. What type of inheritance is supported by PHP?                                 8. What type of inheritance is supported by PHP?
9. Mention the function of require ()?                                           9. Mention the function of require ()?
10. Compare object with == and ===.                                              10. Compare object with == and ===.
                               PART- B (10 x 5=50)                                                              PART- B (10 x 5=50)
                              Answer ALL Questions                                                             Answer ALL Questions
11. a)List out the advantages of object Oriented programming.                    11. a)List out the advantages of object Oriented programming.
   b) Discuss PHP classes.                                                          b) Discuss PHP classes.
12. a) Discuss about PHP private access modifiers with example.                  12. a) Discuss about PHP private access modifiers with example.
   b) Discuss about overriding method in PHP.                                       b) Discuss about overriding method in PHP.
13. a)Discuss about PHP constructors with example.                               13. a)Discuss about PHP constructors with example.
   b) Discuss about PHP destructors with example.                                   b) Discuss about PHP destructors with example.
14. a) write short notes on auto loading classes                                 14. a) write short notes on auto loading classes
   b) Discuss about PHP interfaces.                                                 b) Discuss about PHP interfaces.
15. a)How to create class constants in PHP?                                      15. a)How to create class constants in PHP?
   b) Discuss final keyword of PHP with example.                                    b) Discuss final keyword of PHP with example.
                               PART- C (5 x 10=50)                                                              PART- C (5 x 10=50)
                              Answer ALL Questions                                                             Answer ALL Questions
16. Explain OOPs concepts of PHP.                                                16. Explain OOPs concepts of PHP.
17. What type of inheritance is supported by PHP? Provide an suitable example.   17. What type of inheritance is supported by PHP? Provide an suitable example.
18. Discuss about PHP method overloading.                                        18. Discuss about PHP method overloading.
19. Describe about Abstract classes on PHP.                                      19. Describe about Abstract classes on PHP.
20. Describe about PHP Object Iteration.                                         20. Describe about PHP Object Iteration.
                                                          16SCCCA9                                                                       16SCCCA9
     MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR                     MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR
                 DEPARTMENT OF COMPUTER SCIENCE                                             DEPARTMENT OF COMPUTER SCIENCE
                          UNIT TEST– IV                                                              UNIT TEST– IV
                            III B.C.A                                                                   III B.C.A
                       PROGRAMMING IN PHP                                                         PROGRAMMING IN PHP
TIME :3hours                                      Total Marks: 120 Marks   TIME :3hours                                       Total Marks: 120 Marks
                               PART-A (10 x 2 =20)                                                        PART-A (10 x 2 =20)
                             Answer ALL Questions                                                        Answer All Questions
1.How will you check End_of_file?                                          1.How will you check End_of_file?
2.What is fseek?                                                           2.What is fseek?
3.What is Unlink()?                                                        3.What is Unlink()?
4.Define Database.                                                         4.Define Database.
5.Discuss mysql_error() and mysql_error()?                                 5.Discuss mysql_error() and mysql_error()?
6.What is cookies?                                                         6.What is cookies?
7.What is cookies expriation time?                                         7.What is cookies expriation time?
8.Define PHP session.                                                      8.Define PHP session.
9.How a PHP session starts?                                                9.How a PHP session starts?
10.What is FTP?                                                            10.What is FTP?
                               PART- B (10 x 5=50)                                                        PART- B (10 x 5=50)
                             Answer ALL Questions                                                        Answer All Questions
11.a)Explain the different types of file modes in PHP.                     11.a)Explain the different types of file modes in PHP.
   b) How to Read a file line by line using PHP?                              b) How to Read a file line by line using PHP?
12.a) What are the procedure for copying, moving and deleting a file?.     12.a) What are the procedure for copying, moving and deleting a file?.
   b) What are the procedure for appending a file?                            b) What are the procedure for appending a file?
13.a) Explain the explode() and implode() functions                        13.a) Explain the explode() and implode() functions
   b) List out the MYSQL functions with PHP.                                  b) List out the MYSQL functions with PHP.
14.a) How to create a cookies in PHP?Explain.                              14.a) How to create a cookies in PHP?Explain.
   b)Explain about the error Handling?                                        b)Explain about the error Handling?
15.a)Write a program create a directory in PHP.                            15.a)Write a program create a directory in PHP.
   b)Write a short note on sending E-Mail.                                    b)Write a short note on sending E-Mail.
                             PART- C (5 x 10=50)                                                        PART- C (5 x 10=50)
                            Answer ALL Questions                                                        Answer All Questions
16.Describe about file Handling operation in PHP.                          16.Describe about file Handling operation in PHP.
17.Discuss about MySQL with PHP function with example.                     17.Discuss about MySQL with PHP function with example.
18.Discuss about PHP Cookies.                                              18.Discuss about PHP Cookies.
19.Explain the sessions in PHP.                                            19.Explain the sessions in PHP.
20.Explain the PHP FTP                                                     20.Explain the PHP FTP.
                                                          16SCCCA9                                                             16SCCCA9
     MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR                 MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR
                 DEPARTMENT OF COMPUTER SCIENCE                                         DEPARTMENT OF COMPUTER SCIENCE
                          UNIT TEST– V                                                           UNIT TEST– V
                            III B.C.A                                                              III B.C.A
                       PROGRAMMING IN PHP                                                     PROGRAMMING IN PHP
                                                                       TIME :3hours                                  Total Marks: 120 Marks
TIME :3hours                                  Total Marks: 120 Marks                               PART-A (10 x 2 =20)
                            PART-A (10 x 2 =20)                                                    Answer All Questions
                            Answer All Questions                       1.What is AJAX?
1.What is AJAX?                                                        2.What are the advantages of AJAX?
2.What are the advantages of AJAX?                                     3.List out the limitation of AJAX.
3.List out the limitation of AJAX.                                     4.How Ajax and PHP are combined in web page creation?
4.How Ajax and PHP are combined in web page creation?                  5.What is weblog?
5.What is weblog?                                                      6.What are the XMLHttpRequestObject Methods for Internet Explorer?
6.What are the XMLHttpRequestObject Methods for Internet Explorer?     7.Define Server.
7.Define Server.                                                       8.Write the Syntax for creation an Image.
8.Write the Syntax for creation an Image.                              9.Write the Syntax for display images in HTML pages.
9.Write the Syntax for display images in HTML pages.                   10.Write the Syntax for image string.
10.Write the Syntax for image string.                                                                 PART- B (10 x 5=50)
                               PART- B (10 x 5=50)                                                    Answer All Questions
                               Answer All Questions                    11.a)Write short notes on Ajax controls.
11.a)Write short notes on Ajax controls.                                  b) Explain about Handling the Data.
   b) Explain about Handling the Data.                                 12.a) Discuss about passing data to the server with GET.
12.a) Discuss about passing data to the server with GET.                  b) Discuss about Passing data to the server with POST.
   b) Discuss about Passing data to the server with POST.              13.a)Explain the advantages of Ajax..
13.a)Explain the advantages of Ajax..                                     b) Mention the feature of Ajax.
   b) Mention the feature of Ajax.                                     14.a)Explain how Ajax interfaces with database
14.a)Explain how Ajax interfaces with database                            b)Explain the Ajax Server Page.
   b)Explain the Ajax Server Page.                                     15.a)How to draw arc on the server?
15.a)How to draw arc on the server?                                       b)How to draw a Polygon on the server.
   b)How to draw a Polygon on the server.                                                             PART- C (5 x 10=50)
                               PART- C (5 x 10=50)                                                    Answer All Questions
                               Answer All Questions
                                                                       16.What are different frameworks available in AJAX?
16.What are different frameworks available in AJAX?                    17. Briefly Explain the Ajax
17. Briefly Explain the Ajax                                           18.Discuss about downloading Javascript with Ajax.
18.Discuss about downloading Javascript with Ajax.                     19.Expalin about the Basic PHP graphics on the server
19.Expalin about the Basic PHP graphics on the server                  20.Write program in Ajax Drawing Rectangles.
20.Write program in Ajax Drawing Rectangles.
                                                         16SCCCA9
 MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR                                                                           16SCCCA9
             DEPARTMENT OF COMPUTER SCIENCE                                MEENAAKSHI RAMASAMY ARTS AND SCIENCE COLLEGE-THATHANUR
                     UNIT TEST – II & III                                              DEPARTMENT OF COMPUTER SCIENCE
                          III BCA                                                              UNIT TEST– II & III
                   PROGRAMMING IN PHP                                                               III BCA
Time: 3hours                                  Max Marks: 120 Marks                           PROGRAMMING IN PHP
                          PART-A (10 x 2 =20)                             TIME :3hours                               Max Marks: 120 Marks
                         Answer ALL Questions                                                       PART-A (10 x 2 =20)
1.What is meant by PHP Function?                                                                   Answer ALL Questions
 2.What is meant by actual parameter and formal parameters in PHP?        1.What is meant by PHP Function?
3.What are the differences between get and post method?                    2.What is meant by actual parameter and formal parameters in PHP?
4.What is the use of unset() function in PHP?                             3.What are the differences between get and post method?
5.List out the HTTP variables.                                            4.What is the use of unset() function in PHP?
6. Define OOPs.                                                           5.List out the HTTP variables.
7. Define Classes.                                                        6. Define OOPs.
8. Mention the PHP access modifiers.                                      7. Define Classes.
9. What type of inheritance is supported by PHP?                          8. Mention the PHP access modifiers.
10. Compare object with == and ===.                                       9. What type of inheritance is supported by PHP?
                          PART- B (10 x 5=50)                             10. Compare object with == and ===.
                         Answer ALL Questions                                                       PART- B (10 x 5=50)
11. a) Explain about the Creating include Files.                                                   Answer ALL Questions
   b) How to read a data from a web page?                                 11. a) Explain about the Creating include Files.
12 a) How to handling checkboxes in PHP?                                     b) How to read a data from a web page?
   b) Write short notes on PHP server variables.                          12 a) How to handling checkboxes in PHP?
13. a) Discuss about overriding method in PHP.                               b) Write short notes on PHP server variables.
    b) Discuss about PHP constructors and destructors with example.       13. a) Discuss about overriding method in PHP.
14. a) Write short notes on auto loading classes.                             b) Discuss about PHP constructors and destructors with example.
    b) Discuss about PHP interfaces.                                      14. a) Write short notes on auto loading classes.
15. a) Explain about PHP Object Iteration.                                    b) Discuss about PHP interfaces.
    b) Discuss final keyword of PHP with example.                         15. a) Explain about PHP Object Iteration.
                          PART- C (5 x 10=50)                                 b) Discuss final keyword of PHP with example.
                         Answer ALL Questions                                                       PART- C (5 x 10=50)
                                                                                                   Answer ALL Questions
16. Discuss about the PHP functions.
17. Discuss about the PHP Browser-Handling power.                         16. Discuss about the PHP functions.
18. Write a PHP program to read student name, Register number, marks in   17. Discuss about the PHP Browser-Handling power.
HTML form. Find and display total, average and result using PHP.          18. Write a PHP program to read student name, Register number, marks in
19. Discuss about PHP method overloading.                                 HTML form. Find and display total, average and result using PHP.
20. Describe about Abstract classes on PHP.                               19. Discuss about PHP method overloading.
                                                                          20. Describe about Abstract classes on PHP.