Which of the following is The PYTHONPATH is an env
It consists of a list of direct The syntax of PYTHONPATH Which of the following is fa can be used to return the If locals() is called from wi If globals() is called from w Once a package is created install_PackageName() it setup() pip PackageName Correct way to run the quersqlite3.execute.query sqlite.run.execute(query) sqlite3.execute(query) CONNECT() function in SQLi To connect to database To open database To create database Which of the following is/arCollection Copy Os Which command is used toImport <module-name> <module-name> .import <module-name> Which of the following is t Environment variables Existing folder Default folder Why is it not a good practi Because it occupies more Because it occupies very Because it doesn't occupy Identify the correct output frFloor value of 5.2 is 5 and cFloor value of 5.2 is 5 and cError Python path can be saved Windows Environment Varia Windows user profile SettinWindows startup and recov We can access package’s al import <package name> from <package name> impofrom <package name>. <m Connect() method is used tCreate database Connect with database Create tables which method is used to refetchone() fetchall() fetchmany() Close() function in sqlite3 i To close the tables To close the query To close the database By this way we can import .import sqlite3 .import sqlite3 as s from sqlite3 import * We can install sqlite3 in py Install sqlite3 pip install sqlite3 pip sqlite3 install python A module will be available Globally In current namespace Within Module only Python can find modules a Current Folder PYTHONPATH directory Python’s Default Path What is Namespace? A namespace is a dictionary A namespace is a dictionarA namespace is a dictionar What is the meaning of : sqOpen SQLite prompt withouCreate Database in SystemCreate temporary in-Memo ___________ is an open sour Numpy Pandas Matplotlib In python, a module may cont 1 0 Cannot be determined Which of the following is no.connect() .close() .execute() Correct way to run the query sqlite3.execute.query sqlite3.execute(query) sqlite.run.execute(query) Python allows usage of__ globals() and locals() funct global() and local() functionBoth of the mentioned opti Which keyword we use to fefetch select raw In python, connect() retur Connection object Database object Database name In python, execute() methoOnly DQL & DML statemenOnly DML statements Only DQL statements fetchone() method belongs Cursor Connection Cursor_connection Correct way to import the simport sqlite3 import sqlite3 as s from sqlite3 import * A _______is used to groupcursor m Sequence Package The files containing functio Modules Packages Unit The _______modules contai OS System sys To get the individual modu Form packageName importForm packageName importImport functionName To make directory a package start.py begin.py open.py Which character is used in / // # Which one of the followingInfile s = open(''d:\\python.txt'', Infile = open(file=''d:\\\python. Infile = open(''d:\python.txt'',' connect() function in sqlite3To connect the database To open the database 3.ToTo create a database All o import math abs(math.sqrt( Error -7 7 Correct way to run the query sqlite3.execute.query sqlite3.execute(query) sqlite.run.execute(query) Which of the following cod from sqlite3 import Connecimport sqlite3 connection =import sqlite3 connection = Which of the following are cursor.execute() cursor.fetchone() C only For fetch the data, which f fetch() rawquery() executequery() Which of these definitions Denoted by triple quotes foDesign and implementationDefines o the specification of Which of the following is Provides a means of reuseProvides a means of dividinProvides a means of reduci How we can call the function sqlite.function() function() sq.function() What the following query doIt return all rows data It return number of rows in tIt return number of columns How to run a query?? 1.sqlite3.execute.query 2.sqlite3.execute(query) 3.sqlite.run.execute(query) To open or connect with the1.open() 2.connect() 3.database() Sqlite3 in python is the mo Database GUI Connectivity connect() function in sqlite3to connect the database to open the database to create a database Which of the following too Sqlite3 MySQL Infomix How we can call the function function(sqlite) function() sq.function() Which keyword we use to feSelect Fetch Raw For fetch the data, which f fetch() executequery() execute() Which of the following functnext() skip() jump() What is the use of commit To undo all the data To retrive all the tables To save all the changes of What is a use of __init__. to create python package to initialize values for user to call interpreter in python To retrieve the data, which fetch() execute() executequery() Which statement is correct From package import all From package import * From package include all connect() function in Sqlite To connect the database To open the database To create the database What is the extension of pyt.pym .py .pyf What is the purpose of fetch It returns a single record oIt returns all records of the It returns many records of t What is the default timeou 1 seconds 2 seconds 5 seconds What is the purpose of fat It returns multiple recoords It returns two records It returns a single record o What does total_changes()It returns the number of da It returns the number of da Both of the above close() is used for ______ To close the query To close the table To close the database Types of Name Space Local Name Space Global Name Space Built-in Name Space Correct way to run the query sqlite3.execute.query sqlite3.execute(query) sqlite.run.execute(query) Identify the package managMatplotlib PIP plt.show() connect() function in sqlite3To connect the database To open the database To create a database For fetch the data, which f fetch() rawquery() executequery() Which of the following are valid Cursor methods Cursor.run() used Cursor.execute() to execute SQL statments and Cursor.fetchall() retrieve query results? Select all that appl Which of the following is n Global namespace Public namespace Built-in namespace Which of the variables tellslocal import variable PYTHONPATH The collection of modules amodule library classes For fetch the data, which f fetch() rawquery() executequery() A Python module has ___ e.mod .imp .py Which file must be a part o package.py __init__.py __package__.py rows = cursor.fetchall() ret The method fetches one(orThe al method fetches some (or The method fetches all (or a which method retrieves therow = cursor.fetchones() row = cursor.fetch() row = cursor.fetchone() ________________ method connection.close() c & conneconnection.close() & conneconnection.exit() & connect which command used for con sqlite3.conn(database [,timsqlite3.connect(database [,sqlite3.connections(databas A ____________can be define Function Procedure File The _______________ define namespace scope package Which of the following cod from sqlite3 import Connecimport sqlite3 connection =import sqlite3 connection = Which of the following are Cursor.fetchall() Cursor.fetchone() Cursor.execute() Sqlite3 in python is the mo Database GUI Connectivity What will be the result of 1 2 Both A and B Which of the following is falP1 is the module which is i all functions of P1 module P2 is the module which is i What is the meaning of " P1 is a function of gyan mod Gyan is a function of P1 moAll functions of P1 module a Which method is used to esconnect() execute() SQLite3() ____ method is used to extrfetchone() fetchmany() fetchall() commit() method is not reqinsert update select Which of the following is coa=c.execute(f"select * fro a=execute(f"select * from a=c.execute("select * from What is an import? It is a module It is a function t is a class Which of the following is th Compile, find and execute Find, Compile and ExecuteExecute, find and compile Which of the following DMLcreate table select insert into Python first looks for th The home directory of the PYTHONPATH directoriesStandard library directories Which of the following forc import statement from statement reload built-in function If we want to use function ' from calculate import disp; from calculate import *; dispimport calculate as calc; cal Which of the following is de**name** __name__ $$name$$ The directory inside of the __package__.py __create__.py __init__.py What is a use of __init__. to create python package to initialize values for user to call interpreter in python A dictionary of variable na namespace function class Python can find modules anCurrent directory PYTHONPATH directory Python’s Default Path Python variables are searc Enclosed -> Global -> BuiltLocal -> Enclosed -> GlobalBuilt-in->Local -> Enclosed If you don't call this methodRollback() Connect () Commit() Which method is used to rea fetchone() readone() retrieveone () Which of the following is c Import Module_name From Module_name importImport a Module_name as Al What is the correct way to sqlite.execute.query sqlite.execute(query) sqlite.run.execute.query sqlite3 in python is the mo Database GUI CLI Which method among followin fetchmany( ) fetchno( ) fetchall( ) Which among following funcexit( ) def( ) disconnect( ) Which of the following is cosqlite.connect( ) sqlite.connect.database sqlite.connect(database) Which of the following is noconnect( ) close( ) execute( ) Correct way to import the simport sqlite3 import sqlite3 as s from sqlite3 import Correct way to run the query sqlite3.execute.query sqlite3.execute(query) sqlite.run.execute(query) What is the correct statemeIt is used to fetch the row f It is used to execute the seIt is undefined function in p Which of the following funcexit() def() disconnect() Which of the following is noconnect() close() execute() Choice-D ANSWER ( Just Write -A, B, C or D) All of the above D The return type of both these D __package__.py B None of the above C All of the above D All of the above D. All of the above .import <module-name.py>A. import <module-name> All of the above D. All of the above None of the above A. Because it occupies more memory Floor value of 5.2 is 6 and cB. Floor value of 5.2 is 5 and ceil value of 5.2 is 6 Windows system protectionA Import <object name> B Save database A, B fetchN() C None of the above C All of the above D pip install sqlite3python B Within Program only B All of the above D A namespace is a dictionary A Open database in current fC None of the above C Depends on type of modul B .raw() D None of the above B None of the mentioned A All of the above B Connector class A DDL, DML & DQL statemenD None of the mentioned A All of the above D Class C Path A Pandas C import packageName A __init__.py D ! c Infile = open.file(''d:\\python.tx A All of the above D 7D None of the above B import sql connection = sqlC A and B both D execute() D Any program that reuses c B Provides a means of testingC None of above C It will give an error B 4.None of the above B 4.All of the above B CLI A All of these D All of above 4 None of these C All of above A select() C goto() A To exit from sqlite C to take integer values in pyA rawquery() B From package include * B All of the above D .pymode B It returns two records of th B 10 seconds C It returns many rows C None of the above A None of the above C All of the above D None B python package B All of the mentioned A execute() D Cursor.fetchmany() B Local namespace B current C documentation B execute() D .mpy C __module.py__ B The method fetches fews (or C row = cursor.fetchall() C connection.exit() & connectB sqlite3.con(database [,timeB Module D None of the above B import sql connection = sqlB Cursor.execute() C Both B and C A None D None of above C All functions of gyan module B class() A None of above A delete C a=execute("select * from t A It is a statement D Compile, execute and find B All of the above C None of the above A None of the above C All of above D &&name&& B __pkg__.py C to take integer values in pyA path A All of the above D Global ->Local ->Built-in - B None of the above C Both A & B A All of the above D None B Connectivity A fetchone( ) D close( ) D None of above C many( ) D All of the above D None of the above B 1 and 2 C close() D raw() D