Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Examen

INF1511 EXAM PACK 2026

Note
-
Vendu
1
Pages
200
Grade
A+
Publié le
16-12-2024
Écrit en
2024/2025

Visual Programming I - INF1511 Latest exam pack questions and answers and summarized notes for exam preparation. Updated for 2025. For assistance call or W.h.a.t.s.a.p.p us on +/ 2/ 5/ 4 /7 /7 /9 /5 /4 /0 /1 /3 /2 .

Établissement
Cours








Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

Livre connecté

École, étude et sujet

Établissement
Cours

Infos sur le Document

Publié le
16 décembre 2024
Nombre de pages
200
Écrit en
2024/2025
Type
Examen
Contient
Questions et réponses

Sujets

Aperçu du contenu

INF1511
EXAM PACK

, lOMoARcPSD|21997160




Assessment 1

Question 1




Question text

The command line is used to execute Python code ____ .

a.

each line dynamically

b.

one line at a time

c.

multiple lines simultaneously

d.

multiple lines sequentially

Question 2




Question text

If the data type of a value in a variables does not match the format code,
then ____ will occur.

a.

an exception

b.

an event handler

, lOMoARcPSD|21997160




c.

an auto conversion

d.

an error message

Question 3




Question text

For the provided input, what is the output?


#This is the input
a=int(input('Please enter the number of masks issued to the school : '))
b=int(input('Please enter the number of learners in the school: '))
#this is the processing
thetotal=a//b
theremain=a%b
#this is the output
print('Each learner receives : ', thetotal)
print('The remainder is:', theremain)

a.

Please enter the number of masks issued to the school : 300
Please enter the number of learners in the school: 900
Each learner receives : 0
The remainder is: 300

b.

Please enter the number of masks issued to the school : 300
Please enter the number of learners in the school: 900
Each learner receives : 30
The remainder is: 3

c.

Please enter the number of masks issued to the school : 300
Please enter the number of learners in the school: 900




Downloaded by Thomas Mboya ()

, lOMoARcPSD|21997160




Each learner receives : 3
The remainder is: 0

d.

Please enter the number of masks issued to the school : 300
Please enter the number of learners in the school: 900
Each learner receives : 300
The remainder is: 0

Question 4




Question text

The print() function prints a new line. Which one of the following print()
commands includes characters that will supress the printing of a new line?

a.

print (‘Good luck’, end == ‘ ’ )

b.

print (‘Good luck’, end = ‘ ’ )

c.

print (‘Good luck’, nl/// )

d.

print (‘Good luck’, end )

Question 5




Question text

What is the output from the code executed?


#add 2 numbers and show the result
$2.71
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
LIBRARYpro University of South Africa (Unisa)
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
10599
Membre depuis
2 année
Nombre de followers
4904
Documents
4857
Dernière vente
1 jours de cela
LIBRARY

On this page, you find all documents, Package Deals, and Flashcards offered by seller LIBRARYpro (LIBRARY). Knowledge is Power. #You already got my attention!

3.7

1469 revues

5
690
4
237
3
243
2
79
1
220

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions