0% found this document useful (0 votes)
0 views

php

The document is an internal assessment exam for the 3rd year VI-Semester B.Sc. Computers students at Bhagyaraidhi Degree College, Chintal, focusing on PHP with MySQL. It contains multiple-choice questions covering various PHP functions and their uses, such as creating functions, generating unique IDs, and file handling. The exam is structured to test students' understanding of PHP syntax and functionality.

Uploaded by

Gopi Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

php

The document is an internal assessment exam for the 3rd year VI-Semester B.Sc. Computers students at Bhagyaraidhi Degree College, Chintal, focusing on PHP with MySQL. It contains multiple-choice questions covering various PHP functions and their uses, such as creating functions, generating unique IDs, and file handling. The exam is structured to test students' understanding of PHP syntax and functionality.

Uploaded by

Gopi Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

BHAGYARADHI DEGREE COLLEGE, CHINTAL: 1201

DEGREE 3rd year VI-SEMESTER (CBCS)


INTERNAL ASSESSMENT EXAM june-2022
Group: III B.sc(COMPUTERS) Paper: PHP WITH MYSQL Marks: 15

1) Which of the following is the correct way to create a function in PHP?

a. Create myFunction()
b. New_function myFunction()
c. function myFunction()
d. None of the above

2) Which of the following PHP function is used to generate unique id?

a. id()
b. mdid()
c. uniqueid()
d. None of the above

3) Which of the following is the correct way of defining a variable in PHP?

a. $variable name = value;


b. $variable_name = value;
c. $variable_name = value
d. $variable name as value;

4) Which of the following is the correct use of the strcmp() function in PHP?

a. The strcmp() function is used to compare the strings excluding case


b. The strcmp() function is used to compare the uppercase strings
c. The strcmp() function is used to compare the lowercase strings
d. The strcmp() function is used to compare the strings including case

5) What is the use of fopen() function in PHP?

a. The fopen() function is used to open folders in PHP


b. The fopen() function is used to open remote server
c. The fopen() function is used to open files in PHP
d. None of the above

6) What is the use of isset() function in PHP?

a. The isset() function is used to check whether variable is set or not


b. The isset() function is used to check whether the variable is free or not
c. The isset() function is used to check whether the variable is string or
not
d. None of the above

7) What is the use of sprintf() function in PHP?

a. The sprintf() function is used to print the output of program


b. The sprintf() function is used to send output to variable
c. Both of the above
d. None of the above

8) Which of the following is the correct way to open the file "sample.txt" as
readable?

a. fopen("sample.txt", "r");
b. fopen("sample.txt", "r+");
c. fopen("sample.txt", "read");
d. fopen("sample.txt");

9) Which of the following function displays the information about PHP and its
configuration?

a. php_info()
b. phpinfo()
c. info()
d. None of the above

10) Which of the following function is used to find files in PHP?

a. glob()
b. fold()
c. file()
d. None of the above

You might also like