Summary

This document contains a collection of questions and exercises on python programming. These questions cover different aspects of the language such as variables, data types, operators, control flows, functions, and classes.

Full Transcript

Unit-1 1) Explain what is the syntax error with example ? 2) Explain what are the run time error with example ? 3) Explain what are the logical error with example? 4) Explain formal and natural languages? 5) Compare and contrast formal language 6) Explain Different kind of brackets used in...

Unit-1 1) Explain what is the syntax error with example ? 2) Explain what are the run time error with example ? 3) Explain what are the logical error with example? 4) Explain formal and natural languages? 5) Compare and contrast formal language 6) Explain Different kind of brackets used in python ? 7) Explain what are keywords and give list of 20 keywords in python ? 8) Explain Arithmetic Operators with example. 9) Explain Bitwise Operator with example. 10) Explain Logical Operator with example. 11) Explain Comparison Operator with example. 12) Explain Operator Precedence and operator associativity with example. 13) Explain the if elif control structure with example. 14) Explain looping structures with example. Unit-2 1) Explain various conversion function with examples. 2) How do we define and use functions in python with example 3) Explain Fruitful function, void,boolean, composite functions with example. 4) Explain recursive functions with example. 5) Explain various string functions with example Unit-3 1) Explain list and functions associated with it. 2) Explain tuple and functions associated with it. 3) Explain Difference between list and tuples. 4) Explain Dictionary and functions associated with it with examples. 5) Explain how you read and write to a file. 6) Explain various read write methods for files. 7) How exceptions are handled in python with examples. 8) Explain 10 built in exceptions in python. Unit-4 1) Explain Usage of various meta characters in python. 2) Explain How a class and its objects is created. 3) Explain how inheritance is implemented in python 4) How threads are created in python. 5) What do you mean by synchronization of threads and how it is achieved in python. 6) How modules are created in python with examples. 7) Explain 7 methods from the math, random and time modules Unit-5 1) Explain how data is stored in a Database. 2) Explain how select query is executed and processed in python. 3) Explain the three layout managers in python. 4) Explain Button, Canvas, Checkbutton, Entry, Frame, Label, Listbox, radiobutton, Scale, Text, Label Frame, tkMessagebox, menu. 5) Explain how menu sustem is created in python 6) Explan How events are handled in python.

Use Quizgecko on...
Browser
Browser