0% found this document useful (0 votes)
34 views4 pages

Viva Questions

The document contains a comprehensive list of questions and topics to prepare for a viva examination, covering various concepts in programming, databases, and Python. Key subjects include data structures like dictionaries, lists, and tuples, as well as SQL concepts, error handling, and file operations. It also outlines the differences between various programming constructs and functions, ensuring a well-rounded understanding for the examination.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views4 pages

Viva Questions

The document contains a comprehensive list of questions and topics to prepare for a viva examination, covering various concepts in programming, databases, and Python. Key subjects include data structures like dictionaries, lists, and tuples, as well as SQL concepts, error handling, and file operations. It also outlines the differences between various programming constructs and functions, ensuring a well-rounded understanding for the examination.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

some questions to refer for viva…..

1)What is a dictionary

Unordered set of comma separated key value pairs with {}.Keys must be unique.

2)learn all the functions under math module

Eg ceil(),floor(),fabs() etc….refer std 11 textbook

3)empty statement- pass

It does nothing and moves to the next statement in the flow of control.

4)Difference between break and continue(Jump statements).

5)What is a nested loop?

6)What are literals?

Literals means [Link] data items that never change the value during a program run

7)What is a variable?

Named stored location whose value can be manipulated during a program run

8)Dynamic typing and static typing

9)Implicit and explicit conversion

10)Other name of implicit type conversion-coercion

11)What is a token or lexical unit?Different types of tokens?

12)Define Keyword, identifier

13)What is a singleton tuple or how do you represent a tuple with single element.

14)what is the difference between clear and del statement.

15)creating a tuple from a set of values is called packing

16)creating individual values from a tuple’s elements is called unpacking

17)LEGB rule

18)What are doctsrings?-triple quoted strings in a python module/program which are displayed
as documentation when help(module) is used.
19)Difference between random,randint,randrange functions
20)Difference between module and package.
21)what is a list?
22)what is a tuple?
23)use of dir()?
24)uniform() ,shuffle in random module
25)Learn all the file modes in files….w,r,a,w+,r+,a+,wb,rb,ab,wb+,rb+,ab+
26)What is flush() in files?
It forces the writing of data on disc still pending in output buffer.
27)stdin,stdout,stderr
28)use import sys for using stdin,stdout and stderr
Eg [Link](line1)
29)pickling (serialization) and unpickling
30)What is a primary key,foreign key,candidate and alternate keys
31)What is RDBMS?
32)What is degree and cardinality in a table
33)What is cartesian product
34)What is a relation in sql?
35)Other name for column and row in a table in mysql-column or field or attribute
Row or tuple or record
36)SQL stands for structured query language
37)What is a cursor in connectivity?
38)What is a result set in connectivity ?
39)which function is used to check if a connection is established successfully?
is_connected()==True
40)aggregate functions
Sum(),min(),max(),count(),avg()
41)difference between count() and count(*)
42)wild card characters or pattern matching in mysql
Using % and underscore(_)
43)constraints-unique,primary key,check,null etc
44)data types in mysql(char,varchar,date etc)
45)fetchall(),fetchone(),fetchmany() functions
46)what is rowcount statement used for?
47)Different types of parameters/arguments in a function
Positional,default,keyword and variable length arguments
48)What is seek() and tell()
49)What is absolute and relative referencing in files
Relative referencing is there only in binary files
[Link](4,0)
[Link](10,1)
[Link](-30,2)
0 means from the beginning
1 means from the current position
2 means from the end of the file
50)difference between append() and extend() in list
51)difference between pop() ,remove() and del statement
52)Sort() and sorted() syntax and difference
53)function in text files,binary files and csv files(read(),readlines(),read(size) etc….)
54)data models in database management system…hierarchical,network,relational data base
model)
55)where clause,group by clause,having clause
56)what is equi join,natural join,cartesian product and how to write it as queries
57)distinct clause
58)what is data redundancy
59)difference between script and interactive modes in python
60)what is the newline argument in csv files
61)Expand CSV and what is a csv file
62)use of [Link]() and pickle .dump()…syntax too
63)concept of stack-LIFO last in first out,Queue-FIFO
64)In python ,we implement stack using list and we insert elements at the top of the stack.
65)Underflow and overflow in stack.
When you try to delete anything from an empty stack-underflow
When you try to insert an element to a full stack -overflow
In python,we don’t come across overflow as we implement stack using list which is mutable
66)What is an exception?
67)learn try,except,raise,else,finally etc.
68)Learn all the types of errors(ValueError,NameError etc…)
69)priority of logical operators(Not,And,Or)
70)expansion of IDLE-integrated development learning environment
71)python is an interpreter language?
72)difference between compiler and interpreter
73)use of split()
74)EOL-end of line,EOF-end of file
75)actual and formal parameters
76)use of help()
77)four arguments used in connect() in mysql connectivity
78)what is PYTHONPATH?
This is a variable that tells the python interpreter where to locate the module files imported into a
[Link] should include the python source library directory and the directoriescontaing python
source code
79)different ways to open a file?and its difference
F=open(“filename”, “mode”) or
with open(“filename”, “mode”) as f:
80)what is the use of commit()?
81)use of rollback()
82)DDl and DML commands
83)eval()
84)id() and type()
85)mutable data types- list and dictionary
Immutable-tuple,string
In a dictionary ,keys are immutable but values are mutable
86)differences in pop() in a list and a dictionary
87)ord(),chr() ,str() functions
88)Extensions of Python files other than .py….
89)Infinite loop?
90)Use of return statement
91)Formal and actual parameters in functions?
92)is dictionary ordered or unordered?Is it mutable or unmutable?
93)other modules sys,os,json etc.?Use of getcwd()
94)use of next() in csv files
95)use of bool() function
96)use of any() in tuple
97)size of “\n”
98)use of newline=”” in csv files

Plan how to explain your project for the viva

You might also like