Exam Details
Subject | python (py) | |
Paper | ||
Exam / Course | mca(integrated) | |
Department | ||
Organization | Gujarat Technological University | |
Position | ||
Exam Date | May, 2017 | |
City, State | gujarat, ahmedabad |
Question Paper
1
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
MCA INTEGRATED SEMESTER-V • EXAMINATION SUMMER 2017
Subject Code:4450601 Date: 27/04/2017
Subject Name:Python
Time: 02:30 pm to 05:00 pm Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Q.1
Fill in the blanks
""" (Triple Quotes) in python are also known as which is generally used to write initial description of function.
In Python, method is used to overload arithmetic operator.
searching method works only with sorted data items.
List is object of python.
function of PyLab is used to set the label of "x" coordinates while drawing graph.
A type of testing where tester is aware about the internal structure of the program is known as .
If a "Hello How Are You", then will print .
07
State TRUE FALSE.
In python "globals" keyword is used to utilize global variables inside the function.
In Python, if x="hi" and y="hi there", the print(y in will return FALSE.
While doing exception handling in Python "else" block is executed only if no exception is raised.
When all the data attributes of a class are associated with the object of a class, they are known as instance variables.
Persistent bug occurs every time the program is run with the same inputs.
The program which is written with the intention of covert bug and intermittent bug is known as Defensive Programming.
str_input() function is used to input string and input() function is used to input integer variable in python.
07
Q.2
What is the difference between local and global variable. Explain the use of global variable inside function of python with example.
07
What do you mean by File Handle Explain different modes of opening a file in python.
07
OR
Explain following functions of python used for file handling.
readline(), readlines(), write()
07
Q.3
Explain features of Python in brief.
07
What do you mean by Debugging Explain the difference between Persistent and Intermittent Bug.
07
OR
Q.3
Explain Dictionary object in python.
07
What do you mean by Debugging Explain the difference between Overt and Covert Bug.
07
Q.4
Write a python program to input details of 10 students (rollno, name, age) and
07
2
print after sorting as per their age.
Explain different components of Exception Handling in Python with an example.
07
OR
Q.4
A company has started its business since last 5 years with investment of Rs. 1,00,00,000. The profit ratio of all five year is given as 10% and 11% respectively. Write a program to prepare PyLab graph to show profit.
07
What is HashTable Explain the use of HashTable with a sample code.
07
Q.5
Explain merge sort with an example.
07
What is KnapSack problem Explain in detail with an example.
07
OR
Q.5
What do you mean by Operator Overloading List and Explain various methods which are used for operator overloading in Python.
07
What is Module in Python Explain how to create and utilize module in Python.
07
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
MCA INTEGRATED SEMESTER-V • EXAMINATION SUMMER 2017
Subject Code:4450601 Date: 27/04/2017
Subject Name:Python
Time: 02:30 pm to 05:00 pm Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Q.1
Fill in the blanks
""" (Triple Quotes) in python are also known as which is generally used to write initial description of function.
In Python, method is used to overload arithmetic operator.
searching method works only with sorted data items.
List is object of python.
function of PyLab is used to set the label of "x" coordinates while drawing graph.
A type of testing where tester is aware about the internal structure of the program is known as .
If a "Hello How Are You", then will print .
07
State TRUE FALSE.
In python "globals" keyword is used to utilize global variables inside the function.
In Python, if x="hi" and y="hi there", the print(y in will return FALSE.
While doing exception handling in Python "else" block is executed only if no exception is raised.
When all the data attributes of a class are associated with the object of a class, they are known as instance variables.
Persistent bug occurs every time the program is run with the same inputs.
The program which is written with the intention of covert bug and intermittent bug is known as Defensive Programming.
str_input() function is used to input string and input() function is used to input integer variable in python.
07
Q.2
What is the difference between local and global variable. Explain the use of global variable inside function of python with example.
07
What do you mean by File Handle Explain different modes of opening a file in python.
07
OR
Explain following functions of python used for file handling.
readline(), readlines(), write()
07
Q.3
Explain features of Python in brief.
07
What do you mean by Debugging Explain the difference between Persistent and Intermittent Bug.
07
OR
Q.3
Explain Dictionary object in python.
07
What do you mean by Debugging Explain the difference between Overt and Covert Bug.
07
Q.4
Write a python program to input details of 10 students (rollno, name, age) and
07
2
print after sorting as per their age.
Explain different components of Exception Handling in Python with an example.
07
OR
Q.4
A company has started its business since last 5 years with investment of Rs. 1,00,00,000. The profit ratio of all five year is given as 10% and 11% respectively. Write a program to prepare PyLab graph to show profit.
07
What is HashTable Explain the use of HashTable with a sample code.
07
Q.5
Explain merge sort with an example.
07
What is KnapSack problem Explain in detail with an example.
07
OR
Q.5
What do you mean by Operator Overloading List and Explain various methods which are used for operator overloading in Python.
07
What is Module in Python Explain how to create and utilize module in Python.
07
Other Question Papers
Subjects
- advanced c programming (adv – c)
- advanced python
- basic mathematics for it
- big data
- c++ with class libraries (cpp)
- communication skills - ii
- communication skills-1
- cyber security and forensics (csf)
- data analytics with r
- data structure
- database management systems
- discrete mathematics for computer science (dmcs)
- environmental studies
- fundamentals of computer
- fundamentals of database management systems
- fundamentals of networking
- fundamentals of programming – i
- fundamentals of web
- information security
- java programming
- machine learning
- management information systems (mis)
- mobile programming
- network security
- operating system
- operations research
- python (py)
- software engineering
- software testing
- statistical methods
- uml & object oriented modeling
- web development tools