INTERFACE PYTHON WITH SQL VIVA

INTERFACE PYTHON WITH SQL VIVA 1. What is the role of the execute() method in Python SQL interface? Answer:The execute() method is used to run a SQL query. It can be used for SELECT, INSERT, UPDATE, DELETE, or any other SQL command.   2. Explain how to update records in an SQL database using Python. […]

DATA STRUCTURE VIVA

DATA STRUCTURE VIVA 1. What is a stack in data structures? Sol :- A stack is a linear data structure that follows the LIFO (Last In, First Out) principle, where the last element added is the first to be removed. 2. Explain the principle of operation for a stack. Sol :- The principle is LIFO, […]

FILE HANDLING VIVA

FILE HANDLING VIVA 1. What is a data file in Python, and why is it used? Sol:- A data file stores information for long-term use. Python supports text and binary files for storing and retrieving data. 2. What are the two main types of data files? Sol:- Text files and binary files. 3. Explain the […]

FUNCTION VIVA

FUNCTION 1. What is the difference between a parameter and an argument? Sol :- A parameter is a variable defined in the function definition to accept input. An argument is the actual value passed to the function during a function call. 2. What is a default parameter in Python? Provide an example. Sol:- A default […]

PYTHON REVISION TOUR -II

PYTHON REVISION TOUR -II 1. What is a string in Python? Ans :- A sequence of characters enclosed in quotes (`’`, `”`, or `”’`). 2. How do you create a multi-line string? Ans :- Using triple quotes (`”’` or `”””`). multiline = ”’This is a multi-line string.”’ 3. What is string slicing? Ans :- Extracting […]

PYTHON REVISION TOUR – I VIVA

PYTHON REVISION TOUR – I VIVA 1. What is a character set in Python? Ans :- The set of valid characters that Python recognizes for writing programs, including letters, digits, and symbols.   2. List some commonly used characters in Python. Ans :- Letters (a-z, A-Z), digits (0-9), special symbols (+, -, *, /), and […]

SOCIETAL IMPACTS

SOCIETAL IMPACTS 1. What is Online fraud? Ans. Fraud committed using the Internet is called Online fraud. Online fraud may occur in many forms such as : non-delivered goods; non-existent companies; stealing information; fraudulent payments etc. 2. What are intellectual property rights ? Ans. Intellectual property rights are the rights of the owner of information […]

DATABASE QUERY

DATABASE QUERY 1. What is meant by a primary key ? Ans. A primary key is a field in the table/file that uniquely identifies every record in a file. 2. Define the following terms : (a) relation (b) primary key(c) cardinality(d) tuple (e) candidate key(f) degree(g) attribute(h) cartesian product(i) domain Ans.(a) Relation. A relation is […]

NETWORKING

NETWORKING 1. What is mesh network ? Ans. A mesh network is a network in which there are multiple network linksbetween computers to provide multiple paths for data to travel. 2. What is cladding ? Ans. Cladding refers to a layer of a glass surrounding the center fiber of glass inside a fiber-optic cable. 3. […]

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.