Python Packages and Data Access MCQs Solution | TCS Fresco Play
Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).
All Question of the MCQs Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!
All Question of the Quiz Present Below for Ease Use Ctrl + F to find the Question.
Suggestion: If you didn't find the question, Search by options to get a more accurate result.
1.How many components are present in SQLAlchemy?
- 2
- 5
- 3
- 1
- 4
Answer: 1)2
2.Which of the following identifier is used to identify whitespace around words in regular expressions?
- \w
- \b
- \D
- \s
- \S
3.Which of the following package contains permutations?
- datetime
- sys
- collections
- shutils
- itertools
4.Safe pickling is used because, by default, a class or function present in pickle data is imported.
- FALSE
- TRUE
5.Which of the following analyses only the beginning of a string?
- re.search
- re.findall
- re.compile
- re.match
- None of the options
6.If you copy a file from one folder to another with the same file name using shutil, the file will be overwritten.
- TRUE
- FALSE
7.Which of the following specifies the number of connections in a connection pool?
- pool_size
- encoding
- isolation_level
- max_overflow
- echo
8.Which of the following is used to load a file?
- json.dumps
- json.loads
- None of the options
- json.load
9.Which of the following is used to get named entries into a tuple?
- deque
- counter
- OrderedDict
- namedtuple
- chainmap
10.In SQLAlchemy Raw SQL, CRUD operations are performed by using?
- Raw statements
- None of the options
- SQL syntax
- Python statements
11.Which of the following parameter is not present in datetime.time?
- Second
- Hour
- Microsecond
- Millisecond
- Minute
12.Which of the following enables “.” that matches newline?
- re.S
- re.M
- re.I
- re.U
- re.L
13.Which of the following is used to request data from a server?
- Cookies
- Session objects
- Headers
- GET
- POST
14.You can overwrite a file despite moving a file from one folder to another.
- FALSE
- TRUE
15.Which of the following command is used to combine both date and time?
- datetime.date.combine
- combine
- date
- datetime.datetime.combine
- time
16.Which of the following command is used to change the location of a file from one folder to another?
- shutil.copy
- shutil.overwrite
- None of the options
- shutil.move
17.Which of the following enables to rename a directory?
- getcwd
- mkdir
- rename
- rmdir
- os.rename
18.Psycopg2 and pg80000 are the drivers for ______________.
- MySQL
- None of the options
- MSSQL
- PostgreSQL
19.Which of the following command is used to print error text?
- None of the options
- sys.stderr
- stderr
- sys.stdout
- sys.argv
20.Which of the following is used to pass arguments to a Python file by using command line?
- os.mkdir
- os.getcwd
- sys.argv
- sys.stderr
- os.rename
21.Which of the following provides a pipe to access a file directly?
- os.error
- os.popen
- os.close
- os.name
22.What are the major benefits of using SQLAlchemy?
- Simple logic
- Cleaner code
- All the options
- Secure code
23.Which of the following is considered an optimized list?
- OrderedDict
- namedtuple
- counter
- deque
- chainmap
24.Pickle cannot store class objects.
- FALSE
- TRUE
25.os.mkdir enables to create a new file.
- TRUE
- FALSE
26.In SQLAlchemy, performing operations using Raw SQL is easier.
- TRUE
- FALSE
1 comment