Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

COMP CS 1101 Quiz All Units with Answers- University of the People

Beoordeling
-
Verkocht
-
Pagina's
67
Cijfer
A
Geüpload op
16-08-2022
Geschreven in
2022/2023

COMP CS 1101 Quiz All Units with Answers- University of the People/COMP CS 1101 Quiz All Units with Answers- University of the People/COMP CS 1101 Quiz All Units with Answers- University of the People/COMP CS 1101 Quiz All Units with Answers- University of the People/COMP CS 1101 Quiz All Units with Answers- University of the People

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

Quiz unit 1

What is Python’s response to the command: type(123)
Select one:
a. <class 'float'>
b. <class 'bool'>
c. SyntaxError: invalid syntax
d. <class 'int'>


e. <class 'str'>
Consider the following text from a Python interpreter.
>>> print(2 + 2)
4
What is the text ">>>" called?

Select one:
a. a function
b. an operator
c. a prompt


d. a statement
e. a value
Which one of the following words best describes formal languages?
Select one:
a. ambiguity
b. literalness
c. poetry
d. prose
e. redundancy


Feedback
Your answer is incorrect.
The correct answer is: literalness
Consider the following text from a Python interpreter.
>>> print(2 + 2)
4
What is the text "print(2 + 2)" called?

Select one:

,a. a function
b. an operator
c. a prompt
d. a statement


e. a value
Which one of the following Python expressions computes the number of miles in 5 km, where
one mile is 1.61 km?
Select one:
a. 5 * 1.61
b. .61


c. 1.
d. 1.61 + 5
e. miles = "5 km"
What is python’s response to the command: type("0.123")
Select one:
a. <class 'float'>
b. <class 'bool'>
c. SyntaxError: invalid syntax
d. <class 'int'>
e. <class 'str'>


Which one of the following Python expressions computes the total number of seconds in 21
minutes and 21 seconds?
Select one:
a. 21 + 21
b. 21 + 60
c. "21 minutes" + "21 seconds"
d. 21 * 60 + 21


e. seconds = 21 + "21 minutes"
string is a Python type that represents sequences of numeric values.
Select one:
True
False


What does the Python interpreter output for the following input?

,>>> 1,234.567,890

Select one:
a. 1234
b. 1234.6
c. 1234.56789
d. (1, 234.567, 890)


e. SyntaxError: invalid token
True or False: Learning to debug can be frustrating, but it is a valuable skill that is useful for
many activities beyond programming.
Select one:
True


False
Which of the following is not a valid Python numeric literal:
Select one:

a. 123

b. 0123



c. 0.00

d. 12.3

e. 0.75

Consider the following text from a Python interpreter.
>>> print(2 + 2)
4
What is the text "+" called?


Select one:

a. a function

b. an operator



c. a prompt

d. a statement

, e. a value

Consider the following text from a Python interpreter.
>>> print(2 + 2)
4
What is the text "4" called?


Select one:

a. a function

b. an operator

c. a prompt

d. a statement

e. a value



Which one of the following Python expressions has the value 64?
Select one:

a. 8 ^ 2

b. 8 ** 2



c. 8 +- 2

d. 8 += 2

e. 8 -+ 2

What is Python’s response to the command: type(0.123)
Select one:

a. <class 'float'>



b. <class 'bool'>

c. SyntaxError: invalid syntax

d. <class 'int'>

e. <class 'str'>

Match concepts with their definition!

Geschreven voor

Vak

Documentinformatie

Geüpload op
16 augustus 2022
Aantal pagina's
67
Geschreven in
2022/2023
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$23.48
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Millenialnurse Freelance Tutor
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
251
Lid sinds
4 jaar
Aantal volgers
147
Documenten
1482
Laatst verkocht
2 weken geleden
Genuine Study Guides 2024

Holla me for assistance 24/7.

3.4

37 beoordelingen

5
17
4
4
3
4
2
2
1
10

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen