Ge8151 QB
Ge8151 QB
in
Question Bank
Part-A
1) Define Computer
2) Define algorithm
.in
3) What are the two phases in algorithmic problem solving?
4) Why algorithmic phase is a difficult phase?Justify
5) What are the steps involved in algorithm development process?
ng
6) Compare computer hardware and software.
7) State some properties of an algorithm.
eri
8) What are the three building blocks of an algorithm?
9) Define Input , Output , Assignment statement
10) Describe different notations in algorithm and classify each.
11) Define pseudocode.
e
gin
12) Define the rules to be followed on pseudocode.
13) Define flowchart.
14) What are the different types of flowcharts?
En
21) What is the difference between the algorithm and the program?
22) Give the pseudocode to check the biggest of 2 numbers.
23) State the differences between Iteration and Recursion.
w.
Part-B
ww
Part-A
1) What is a program?
2) Define Computer languages.
3) How computer languages are classified.
4) Define assignment statement.
5) List the statements in python.
.in
6) Given the strings x=’alpha’ and y=’beta’ print the following string operations.
7) List some of the keywords in python.
8) Define Identifiers in Python
ng
9) What is the comment statement in python?
10) Define variables in python.
eri
11) Explain Input and output statements in python.
12) List the data types in python.
13) What are the operators in Python?
e
14) Solve the mathematical expression 7/3 * 1.2 +3/2.
gin
15) Define functions in python?
16) Explain the precedence of operators in python.
17) What are the function arguments used in python?
18) List the types of functions.
En
25) Write a simple program in python to convert decimal number into binary, octal and
hexadecimal number system in python.
w.
Part-B
Part-A
.in
6) Write the syntax for if…elif…else conditionals.
7) Define Iteration.
8) What are the different iterative statements?
ng
9) Define range() function and its syntax.
10) Define while loop.
eri
11) Write the syntax for nested for loops and nested while loop statements.
12) What is python break statement?
13) What is python continue statement.
14) Define fruitful functions in python.
e
gin
15) What are the types of parameters in functions?
16) What are the various parameter passing techniques?
17) Write the scope of the variable.
18) What is recursive function and its limitations?
En
Part B
w.
4) Write a Python program using while loop first N numbers divisible by 5 (8)
5) Explain the concept of Linear & Binary Search with Python program (16)
6) Discuss Function arguments in Python (16)
Part A
1) Define List?
2) What is cloning of List?
3) What is aliasing?
4) Define tuple.
5) Explain Tuple Assignment with example.
6) What is slicing?
.in
7) Define Dictionary.
8) Give an example for List comprehension.
ng
9) What is mutability?
10) List the functions of tuple data type.
11) List the methods of list data type.
eri
12) Comment on tuple as return type.
13) When a dictionary is used instead of a list?
14) Differentiate between append() and extend() methods?
e
15) What is the output of print list + tiny list? List =
gin
[‘abcd’,786,2,23,’john’,70.2],tinylist=[123,’john’]
16) What is the difference between tuples and lists in python?
17) What is the difference between del() and remove() methods of list?
En
Part B
Le
Part A
1) Define File.
2) List the file opening Modes.
3) List the different ways to read a file.
4) What the difference is between append and write mode?
5) What are the attributes of file objects?
6) List the methods in file objects.
.in
7) Differentiate Errors and Exceptions.
8) Illustrate try-except-else
ng
9) Define modules.
10) Define packages.
11) Define pickling.
eri
12) Give the mechanism to handle exceptions.
Part B
e
gin
1) What are the two types of files? Explain different file operations (16)
2) How will you create a Package & import it? Explain it with an example program (16)
3) Write a python program to count the number of words in a text file (6)
4) Explain the concept of Exception Handling in Python with suitable program (10)
En
5) List out the types of Modules and Explain any two types in detail (16)
arn
Le
w.
ww