Search This Blog

Monday, 11 March 2013

Do you know the Basics of PHP and Python?

0 comments
Test Your Knowledge on PHP and Python
Two Marks: (2 x 7 = 14)
  1. What is type jugging?
  2. Give the general form for defining a function in PHP.
  3. Give the syntax for viewing arrays in PHP with example.
  4. What is called suite in PYTHON?
  5. List down the various Built-in Data-types in Python.
  6. Write a python program to print Fibonacci series.
Big Question: (1 x 16 = 16)
  1. 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)

Leave a Reply