INSY 3300 - Final Exam T and F and MC 75 Questions & Answers 2024/2025
13 views 0 purchase
Course
INSY 3300 -
Institution
INSY 3300 -
INSY 3300 - Final Exam T and F and MC 75 Questions & Answers 2024/2025
When working with a sequential access file, you can jump directly to any piece of data in the file without reading the data that comes before it. - ANSWERSF
When you open a file that file already exists on the disk using...
INSY 3300 - Final Exam T and F and MC
75 Questions & Answers 2024/2025
When working with a sequential access file, you can jump directly to any piece of data in the file without
reading the data that comes before it. - ANSWERSF
When you open a file that file already exists on the disk using the 'w' mode, the contents of the existing
file will be erased. - ANSWERST
The process of opening a file is only necessary with input files. Output files are automatically opened
when data is written to them. - ANSWERSF
When an input file is opened, its read position is initially set to the first item in the file - ANSWERST
When a file that already exists is opened in append mode, the file's existing contents are erased. -
ANSWERSF
If you do not handle an exception, it is ignored by the Python interpreter, and the program continues to
execute. - ANSWERSF
You can have more than one except clause in a try/except statement. - ANSWERST
The else suite in a try/except statement executes only if a statement in the try suite raises an
exception. - ANSWERSF
The finally suite in a try/except statement executes only if no exceptions are raised by statements in the
try suite. - ANSWERSF
What will the following code display?
, try:
x = float('abc123')
print('The conversion is complete.')
except IOError:
print('This code caused an IOError.')
except ValueError:
print('This code caused a ValueError.')
print('The end.') - ANSWERSThis Code caused a Value Error. \n The end.
What will the following code display?
try:
x = float('abc123')
print(x)
except IOError:
print('This code caused an IOError.')
except ZeroDivisionError:
print('This code caused a ZeroDivisionError.')
except:
print('An error happened.')
print('The end.') - ANSWERSAn error happened. \n The end.
Lists in Python are immutable. - ANSWERSF
Tuples in Python are immutable. - ANSWERST
The del statement deletes an item at a specified index in a list. - ANSWERST
Assume list1 references a list. After the following statement executes, list1 and list2 will reference two
identical but separate lists in memory:
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Bensuda. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $8.49. You're not tied to anything after your purchase.