Future Vision BIE Future Vision BIE


ONE STOP FOR ALL STUDY MATERIALS & LAB PROGRAMS


E MENU Whatsapp Share Join Telegram, to get Instant Updates
× NOTE! Click on MENU to Browse between Subjects...

Advertisement

PYTHON APPLICATION PROGRAMMING

[As per Choice Based Credit System (CBCS) scheme]

(Effective from the academic year 2017 - 2018)

SEMESTER - VI

Subject Code 17CS664

IA Marks 40

Number of Lecture Hours/Week 3

Exam Marks 60




Advertisement

17CS664 - PYTHON APPLICATION PROGRAMMING

Important Questions - MODULE - 2



These Questions are being framed for helping the students in the "FINAL Exams" Only (Remember for Internals the Question Paper is set by your respective teachers). Questions may be repeated, just to show students how VTU can frame Questions.

- ADMIN






Advertisement

1. Explain the working of while loop in python with suitable example. (05 Marks) (Dec.2019/Jan.2020)


Advertisement

2. Write a python program to demonstrate counting, summing and average of elements using loops. (05 Marks) (Dec.2019/Jan.2020)

3. What is a string? Write a python program to demonstrate traversal through a string with a loop. Also explain the concept of string slicing. (06 Marks) (Dec.2019/Jan.2020)

4. With syntax and example code, explain the working of definite loop in python. (05 Marks) (Dec.2019/Jan.2020)

5. Write a python program to concatenate and compare two strings. Read the strings from user. (05 Marks) (Dec.2019/Jan.2020)

6. Explain fileopen, fileclose, fileread and filewrite concepts in python with example. (06 Marks) (Dec.2019/Jan.2020)

7. With syntax, explain the finite and infinite looping constructs in python. What is the need for break and continue statements? (08 Marks) (June/July.2019)


Advertisement

8. Write a Python program to generate and print prime numbers between 2 to 50. (04 Marks) (June/July.2019)

9. What are String slices? Explain the slicing operator in Python with examples. (04 Marks) (June/July.2019)

10. Write a Python program to count the number of occurrences of a given word in a file. (06 Marks) (June/July.2019)

11. Write a Python function that takes decimal number as input and convert that to binary equivalent and return the same. (04 Marks) (June/July.2019)

12. List any six methods associated with strings and explain each of them with an example. (06 Marks) (June/July.2019)


Advertisement

13. Explain while and for loop write a program to generate Fibonacci series up to the given limit by defining FIBONACCI(n) function. (08 Marks) (Dec.2018/Jan.2019)

14. Mention the advantages of continue statement. Write a program to compute only even numbers sum within the given natural number using continue statement. (08 Marks) (Dec.2018/Jan.2019)

15. Define a string. How. it can be traversed though using looping statement? Write a python program to display presence of given substring in main string. (08 Marks) (Dec.2018/Jan.2019)

16. How computational fault or computational errors are handled in python? Show it with an example python program to copy all lines beginning with vowels from FROM.text file to VOWELTEXT.text file retaining other lines. (08 Marks) (Dec.2018/Jan.2019)

17. Demonstrate the use of break and continue keywords in looping structures using a snippet code. (06 Marks) (June/July.2018)


Advertisement

18. Explain string slicing in Python. Show with examples. he (04 Marks) (June/July.2018)

19. Write a Python program to accept a sentence from the user and display the longest word of that sentence along with its length. (06 Marks) (June/July.2018)

20. List and explain any four built in string manipulation functions supported by Python. (06 Marks) (June/July.2018)

21. Write the Python code to display the last six characters of the string "Make hay while the sun shines" to the console. (03 Marks) (June/July.2018)


Advertisement

22. Write a Python program to accept a file name from the user:

I. Display the first N-lines-of the file.

II. Find the frequency of occurrence of the word accepted from the user in the file. (07 Marks) (June/July.2018)


ANSWER SCRIP FOR THESE QUESTIONS WILL BE UPLOADED "AS SOON AS POSSIBLE"

Visit: https://hemanthrajhemu.github.io/AnswerScript/

For immediate Notification Join the Telegram Channel





× Note Please Share the website link with Your Friends and known Students...

-ADMIN

× Note Page Number is specified to navigate between Pages...
T = Text book
QB = Question Bank
AS = Amswer Script


-ADMIN

Advertisement