100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
INF1511 Assignment 7 2024|Due 23 September 2024 R50,00   Add to cart

Exam (elaborations)

INF1511 Assignment 7 2024|Due 23 September 2024

1 review
 24 views  1 purchase

Exam of 6 pages for the course Visual Programming I at Unisa (Due 23 September)

Preview 2 out of 6  pages

  • July 29, 2024
  • 6
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
All documents for this subject (27)

1  review

review-writer-avatar

By: nhlelokhumalo19 • 2 months ago

avatar-seller
Falconntutors
INF1511-24-¥: Assessment7 X +

; mymodules.dtls.unisa.ac.za/mod/quiz/view.php?id=853222




USA.2: '5° myAdmin




Attempts allowed: 1

ditional Resources Time limit: 30 mins

sessment 1
Summary of your previous attempts
sessment 2
State Marks/15.00 Grade /100.00 Review
sessment 3

Finished 14.00 93.33
3essment 4
Submitted Monday, 29 July 2024, 9.45 PM

sessment 5

3essment 6 Your final grade for this quiz is 93.33/100.00.
sessment 7 ) No more attempts are allowed
3essment 8
Back to the course
IT 0- Discussion Class

It 1 Python Environment


t 2 Decisions in Python

t 3 Looping in Python Previous activity Next activity
[ )
t 4 Strings < Assessment 6
Jumpto ...
Assessment 8


it 5 Functons and Proce.

, +

isa.ac.za/mod/quiz/attempt.php?attempt=20420645&cmid=853222


.@
2. o....g9 myAdmin



lLi Assessment7
I Qu
Back



Time left 0.21.51

Question 1 The purpose of this code is to _
Not yet
answered
myFile=input('Enter the name of your file : ')
Marked out of f=open(myFile, 'w) Fin
1.00
n=int(input('How many?'))
print('Enter input : ')
for i in range(O,n):
m=input()
f.write("%s\n %m)
f.close0)


0 a. to write to n files
@ b. to write input to a file
0 C. to count the letters in the name of the file
0 d. to count the lines in a file
Clear my choice

X +

rmodules.dtls.unisa.ac.za/mod/quiz/attempt.php?attempt =20420645&cmid = 853222 A Erro
*
myAdmin



]Time left 02145]
Question Z There are three types of files in Python, namely: fles.
Not yet
answered

Marked out of
100

Flag question
@ a
Ob
O c.
text, binary and pickled
encrypted, binary and pickled
text, binary and compressed
I Quiz navigation




O d. encrypted, binary and compressed
ar my .ho



Finish attempt
Question What is the output from the execution of the following code?




-
Not yet
answered
myFile='testfile.txt
Marked out of f= open(myFile, 'r)
1 00
print ('What is the opening mode of file '+ myFile + :', f.mode)
Ela q stion

O a. What is the opening mode of fle testfile.txt: reading
Class
Ob. What is the opening mode of fle testfile.txt: read

nment @ c. What is the opening mode of file testfile.txt: r
Od What is the opening mode of file testfile.txt: ready
Python
ar my .ho

thon

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

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 this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Falconntutors. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R50,00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

60904 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R50,00  1x  sold
  • (1)
  Buy now