Test Your Knowledge on PHP and Python
Two Marks: (2 x 7 = 14)
-
What is type jugging?
- Give the general form for defining a function in PHP.
- Give the syntax for viewing arrays in PHP with example.
- What is called suite in PYTHON?
- List down the various Built-in Data-types in Python.
- Write a python program to print Fibonacci series.
Big Question: (1 x 16 = 16)
- a) How will you use PHP to access data from MySQL? (8)
b)
Write a program in python that takes a list of integers and prints a
histogram to the screen. For example, the input
4,
9, 7
should print the
following:
****
*********
******* (8)
*********
******* (8)