0% found this document useful (0 votes)
2 views

GE3151 - Problem Solving and Python Programming_R2021 - 2022 Nov

This document is a question paper for the B.E/B.Tech degree examinations in November/December 2022 for the Civil Engineering first semester course on Problem Solving and Python Programming. It includes two parts: Part A with ten short answer questions and Part B with six detailed questions covering topics such as programming languages, recursion vs iteration, Python interpreter, and various Python programming tasks. The maximum marks for the exam are 100, with a total time of three hours allocated for completion.

Uploaded by

pd9302134
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
2 views

GE3151 - Problem Solving and Python Programming_R2021 - 2022 Nov

This document is a question paper for the B.E/B.Tech degree examinations in November/December 2022 for the Civil Engineering first semester course on Problem Solving and Python Programming. It includes two parts: Part A with ten short answer questions and Part B with six detailed questions covering topics such as programming languages, recursion vs iteration, Python interpreter, and various Python programming tasks. The maximum marks for the exam are 100, with a total time of three hours allocated for completion.

Uploaded by

pd9302134
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
Reg. No.: T Question Paper Code : 70115 B.E/B.Tech, DEGREE EXAMINATIONS, NOVEMBER/DECEMBER 2022. First Semester Civil Engineering GE 3151 — PROBLEM SOLVING AND PYTHON PROGRAMMING (Common to All Branches) (Regulations 2021) ‘Time : Three hours Maximum : 100 marks 10, Answer ALL questions. PART A — (10x 2= 20 marks) How does flow of control work? Explain Towers of Hanoi problem. Write a snippet to display “Hello World” in python interpreter. Ilustrate the use of * and + operators in string with example. Comment with an example on the use of local and global variable with the same identifier name. Define Fruitful Function. Relate String and List. ‘f'], Find the following (@) List (1:3] ©) thd) © +34) How does try and execute work? How do you handle the exception inside a program when you try to open a non-existent file? Ll. 12, 13, 14. 16. @) (a) (a) ) (@) ) (@) (b) PART B— (6 x 16 = 80 marks) (@ Compare and contrast machine language, assembly language and high-level language in detail. Gi) Give the difference between recursion and iteration, or Explain in detail about the Notation of Algorithm. What is the role of an interpreter? Give a detailed note on python interpreter and interactive mode of operation. Explain how Python works in interactive mode and script mode with examples. Or Explain in detail about precedence of python operators and the associativity of python operators. Write a Python program to find the square root of a number without using inbuilt function and explain the same. Or Write a Python program for linear search and binary search and explain its implementation in detail. Demonstrate with Python code the various operations that can be performed on tuples. Or Define Dictionary in python, Do the following operations on dictionaries. (@ Initialize two dictionaries with key and value pairs. (i) Compare two dictionaries with master key list and print missing keys. (ii) Find keys that are in first and not in second dictionary. (iv) Find same keys in two dictionaries. (@) Merge two dictionaries and create a new dictionary using a single expression. Explain about the file reading and writing operations using format operator with python code Or Write a Python program to dump objects to a file using pickle. 2 70115

You might also like