GE PROBLEM SOVING AND PYTHON PROGRAMMING. Question Bank UNIT 1 - ALGORITHMIC PROBLEM SOLVING

Similar documents
VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

GIS 4653/5653: Spatial Programming and GIS. More Python: Statements, Types, Functions, Modules, Classes

[CHAPTER] 1 INTRODUCTION 1

Table of Contents. Preface... xxi

Introduction to Python

PYTHON CONTENT NOTE: Almost every task is explained with an example

Python I. Some material adapted from Upenn cmpe391 slides and other sources

Python review. 1 Python basics. References. CS 234 Naomi Nishimura

Babu Madhav Institute of Information Technology, UTU 2015

There are four numeric types: 1. Integers, represented as a 32 bit (or longer) quantity. Digits sequences (possibly) signed are integer literals:


Advanced Algorithms and Computational Models (module A)

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

Part III Appendices 165

Course Outline - COMP150. Lectures and Labs

Basic Python 3 Programming (Theory & Practical)

Reg. No. : Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, JANUARY First Semester GE 6151 COMPUTER PROGRAMMING

Python Basics. Lecture and Lab 5 Day Course. Python Basics

GE8151- PROBLEM SOLVING AND PYTHON PROGRAMMING Question Bank

Computer Hardware 6. The

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

\n is used in a string to indicate the newline character. An expression produces data. The simplest expression

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

Index. object lifetimes, and ownership, use after change by an alias errors, use after drop errors, BTreeMap, 309

(i) Describe in detail about the classification of computers with their features and limitations(10)

Chapter 1 Summary. Chapter 2 Summary. end of a string, in which case the string can span multiple lines.

Lessons on Python Functions

Scheme of work Cambridge International AS & A Level Computing (9691)

Questions Bank. 14) State any four advantages of using flow-chart

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

2. Explain the difference between read(), readline(), and readlines(). Give an example of when you might use each.

2.Raspberry PI: Architecture & Hardware Specifications

ENGR 102 Engineering Lab I - Computation

CS 1301 Final Exam Review Guide

About Python. Python Duration. Training Objectives. Training Pre - Requisites & Who Should Learn Python

Al al-bayt University Prince Hussein Bin Abdullah College for Information Technology Computer Science Department

Loops and Conditionals. HORT Lecture 11 Instructor: Kranthi Varala

Part I Basic Concepts 1

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

SCoLang - Language Reference Manual

Python INTRODUCTION: Understanding the Open source Installation of python in Linux/windows. Understanding Interpreters * ipython.

Exam 1 Format, Concepts, What you should be able to do, and Sample Problems

About the Final. Saturday, 7-10pm in Science Center 101. Closed book, closed notes. Not on the final: graphics, file I/O, vim, unix

Variable and Data Type I

Play with Python: An intro to Data Science

PYTHON. p ykos vtawynivis. Second eciitiovl. CO Ve, WESLEY J. CHUN

egrapher Language Reference Manual

CS S-02 Python 1. Most python references use examples involving spam, parrots (deceased), silly walks, and the like

Course Title: Python + Django for Web Application

Program Planning, Data Comparisons, Strings

Review. Input, Processing and Output. Review. Review. Designing a Program. Typical Software Development cycle. Bonita Sharif

SD314 Outils pour le Big Data

Introduction to Python

Python in 10 (50) minutes

We cover recursion in 150. Why do it again in 151?

Programming in Python 3

Fundamentals of Programming (Python) Object-Oriented Programming. Ali Taheri Sharif University of Technology Spring 2018

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

Selection Statement ( if )

AI Programming CS S-02 Python

Python. Jae-Gil Lee Based on the slides by K. Naik, M. Raju, and S. Bhatkar. December 28, Outline

Webgurukul Programming Language Course

Some material adapted from Upenn cmpe391 slides and other sources

Unit-II Programming and Problem Solving (BE1/4 CSE-2)

Problem Solving with C++


Introduction to Programming Using Java (98-388)

The Practice of Computing Using PYTHON

Welcome to Starting Out with Programming Logic and Design, Third Edition.

Programming Fundamentals - A Modular Structured Approach using C++ By: Kenneth Leroy Busbee

And Parallelism. Parallelism in Prolog. OR Parallelism

Scala : an LLVM-targeted Scala compiler

Python Reference (The Right Way) Documentation

Senthil Kumaran S

Dept. of Computer Sc., SDP College for Women, Ludhiana

Fall 2018 Updates. Materials and Energy Balances. Fundamental Programming Concepts. Data Structure Essentials (Available now) Circuits (Algebra)

1. What type of error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical d.

LISTS WITH PYTHON. José M. Garrido Department of Computer Science. May College of Computing and Software Engineering Kennesaw State University

Python Training. Complete Practical & Real-time Trainings. A Unit of SequelGate Innovative Technologies Pvt. Ltd.

PYTHON FOR MEDICAL PHYSICISTS. Radiation Oncology Medical Physics Cancer Care Services, Royal Brisbane & Women s Hospital

Index COPYRIGHTED MATERIAL

Theory of control structures

a name refers to an object side effect of assigning composite objects

St. MARTIN S ENGINEERING COLLEGE Dhulapally, Secunderabad

CS61A Lecture 16. Amir Kamil UC Berkeley February 27, 2013

Unit 2. Srinidhi H Asst Professor

PYTHON PROGRAMMING. John M.Zelle. Wartburg College AN INTRODUCTION TO COMPUTER SCIENCE SECOND EDITION

Worksheet 6: Basic Methods Methods The Format Method Formatting Floats Formatting Different Types Formatting Keywords

Java Programming. Atul Prakash

Here n is a variable name. The value of that variable is 176.

Functional programming with Common Lisp

PTN-102 Python programming

TUPLES AND RECURSIVE LISTS 5

1. What is the minimum number of bits needed to store a single piece of data representing: a. An integer between 0 and 100?

History Installing & Running Python Names & Assignment Sequences types: Lists, Tuples, and Strings Mutability

C Programming for Electronic Engineers

CPSC 217 Midterm (Python 3 version)

Week. Lecture Topic day (including assignment/test) 1 st 1 st Introduction to Module 1 st. Practical

Absolute C++ Walter Savitch

Transcription:

GE8151 - PROBLEM SOVING AND PYTHON PROGRAMMING Question Bank UNIT 1 - ALGORITHMIC PROBLEM SOLVING 1) Define Computer 2) Define algorithm 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? 6) Compare computer hardware and software. 7) State some properties of an algorithm. 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. 12) Define the rules to be followed on pseudocode. 13) Define flowchart. 14) What are the different types of flowcharts? 15) What are the symbols used in flowcharting type? 16) Describe the Data Processing Symbols in Flowchart. 17) List some guidelines for drawing flowchart. 18) List the merits in drawing the flowchart. 19) List the demerits in drawing the flowchart. 20) Explain some of the qualities of Programming Language? 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. Part-B 1) Explain in detail about Algorithm (16) 2) What is pseudo code? & how it will be used to solve a problem? (16) 3) Define Flowchart and explain symbols used in flowchart with example (16) 4) Write the Algorithm, pseudo code & draw the flowchart for Towers of Hanoi (16) 5) Develop an Algorithm, Pseudocode & Flowchart for minimum in a list (16) 6) Develop an Algorithm & Pseudo code for Guessing an integer Number (8) 7) Explain with example the building blocks of an algorithm (8)

UNIT 2 DATA, EXPRESSIONS, STATEMENTS 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. 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 9) What is the comment statement in python? 10) Define variables in python. 11) Explain Input and output statements in python. 12) List the data types in python. 13) What are the operators in Python? 14) Solve the mathematical expression 7/3 * 1.2 +3/2. 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. 19) What is the anonymous function in Python? 20) Define modules in Python. 21) How modules are incorporated in a python program? 22) List some of the built-in modules in python 23) Write a simple program to add two numbers in python. 24) Write a simple program to convert KMPH to MPH in python. 25) Write a simple program in python to convert decimal number into binary, octal and hexadecimal number system in python. Part-B 1) Explain various types of operators used in Python (16) 2) Explain Values & types supported in Python (16) 3) What are the different function prototypes? Explain it with suitable example (16) 4) Explain Interpreter & Interactive mode in Python (8) 5) Write a program to Circulate value of N numbers (8) 6) Explain about various statements in python (8)

UNIT 3 CONTROL FLOW, FUNCTIONS 1) Define Boolean datatype? 2) What are the conditional statements used in python? 3) Define if else statements in python. 4) Write the syntax for ternary operator in python. 5) Define chained conditionals. 6) Write the syntax for if elif else conditionals. 7) Define Iteration. 8) What are the different iterative statements? 9) Define range() function and its syntax. 10) Define while loop. 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. 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? 19) Write the merits of using functions in a program. 20) Write the syntax for composition. 21) Define strings and name some methods. 22) List some of the methods in List Operations. 23) State the differences between linear search and Binary search. 1) Explain in detail about Control flow structures (16) 2) Explain Various String functions used in python (16) 3) Write a Python program to compute the factorial of a given number using recursion (8) 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)

UNIT 4 LISTS, TUPLES, DICTIONARIES 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? 7) Define Dictionary. 8) Give an example for List comprehension. 9) What is mutability? 10) List the functions of tuple data type. 11) List the methods of list data type. 12) Comment on tuple as return type. 13) When a dictionary is used instead of a list? 14) Differentiate between append() and extend() methods? 15) What is the output of print list + tiny list? List = [ 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? 18) How to merge two dictionaries? 19) Define mutable and immutable data type. 20) When is dictionary used instead of a list? 1) Explain the following: a. List Slicing &List Mutability (6) b. List Accessing Methods &List Comprehension (10) 2) Explain Selection & Insertion sort methods with python program (16) 3) Explain Merge & Quick sort methods with python program (16) 4) Explain Dictionary Operation & Methods (16) 5) Write code snippets in Python to perform the following a. Accessing Elements of a Tuple (5) b. Modifying Elements of a Tuple (5) c. Deleting Elements of a Tuple (6)

UNIT 5 - FILES, MODULES, PACKAGES 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. 7) Differentiate Errors and Exceptions. 8) Illustrate try-except-else 9) Define modules. 10) Define packages. 11) Define pickling. 12) Give the mechanism to handle exceptions. 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) 5) List out the types of Modules and Explain any two types in detail (16)