Professional Documents
Culture Documents
CTE301
CTE301
CTE301
Class
Module
Module Code :
CTE301
Max. Marks :
50
Max. Time
3 Hrs
General Instructions:
1.
A non-programmable calculator is allowed.
2.
All the questions are compulsory.
3.
Make suitable assumptions wherever necessary.
1 of 5
Question No.1
[1 X 5 = 5]
Which of the following tags is not a valid way to begin and end
a PHP code block?
a) <% %>
b) <? ?>
c) <! !>
d) <?php ?>
1.2
?>
a)
b)
c)
d)
1.3
25
-5
10
5
How can you write a class so that some of its properties cannot
be accessed from outside its methods?
a) By declaring the class as private
b) By declaring the methods as private
c) It cannot be done
d) By writing a property overloading method
2 of 5
1.4
1.5
Question No.2
[2 X 5 = 10]
2.2
2.3
2.4
2.5
Question No.3
[2 X 10 = 20]
3.2
3.3
3.4
What are the reasons (ANY TWO reasons) for not able to
connect to a database?
3.5
3.6
3.7
3.8
require()
3.9
3.10
Question No.4
[5, 10]
5 of 5