100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten
logo-home
COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People $16.98
In winkelwagen

Tentamen (uitwerkingen)

COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People

 0 keer verkocht
  • Vak
  • Instelling

COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People/COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People/COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People/COMP CS 1101 Review Quiz CS 1101 Final Exam- University of the People/COMP CS 1101 Review...

[Meer zien]

Voorbeeld 3 van de 21  pagina's

  • 16 augustus 2022
  • 21
  • 2022/2023
  • Tentamen (uitwerkingen)
  • Vragen en antwoorden
avatar-seller
Question 1

Correct
Mark 1.00 out of 1.00




Flag question

Question text

When a Python function is called, inside the function, the arguments are assigned to variables
called parameters.

Select one:
True


False

Feedback

The correct answer is 'True'.

Question 2

Correct
Mark 1.00 out of 1.00




Flag question

Question text

What output will the following code produce?

n = 10
while n != 1:
print (n,end=' ')
if n % 2 == 0: # n is even
n = n // 2

, else: # n is odd
n=n*3+1
Select one:
a. 10 5 16 8 4 2


b. None an error will be displayed
c. 8 4 2
d. 9 28 14 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2

Feedback

The correct answer is: 10 5 16 8 4 2

Question 3

Correct
Mark 1.00 out of 1.00




Flag question

Question text

What is the output of the following Python program?

mylist = ["now", "four", "is", "score", "the", "and seven", "time", "years", "for"]
print(" ".join(mylist[1::2]))

Select one:
a. now is the time
b. now is the time for
c. four score and seven years


d. now four is score the and seven time years for

Feedback

Your answer is correct.
The correct answer is: four score and seven years

, Question 4

Correct
Mark 1.00 out of 1.00




Flag question

Question text

In Python, a list of characters is the same as a string.

Select one:
True
False



Feedback

The correct answer is 'False'.

Question 5

Correct
Mark 1.00 out of 1.00




Flag question

Question text

Which one of the following Python expressions has the value 10?

Select one:
a. 8 ^ 2


b. 8 ** 2
c. 8 +- 2

Dit zijn jouw voordelen als je samenvattingen koopt bij Stuvia:

Bewezen kwaliteit door reviews

Bewezen kwaliteit door reviews

Studenten hebben al meer dan 850.000 samenvattingen beoordeeld. Zo weet jij zeker dat je de beste keuze maakt!

In een paar klikken geregeld

In een paar klikken geregeld

Geen gedoe — betaal gewoon eenmalig met iDeal, creditcard of je Stuvia-tegoed en je bent klaar. Geen abonnement nodig.

Direct to-the-point

Direct to-the-point

Studenten maken samenvattingen voor studenten. Dat betekent: actuele inhoud waar jij écht wat aan hebt. Geen overbodige details!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper Millenialnurse. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor $16.98. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 64670 samenvattingen verkocht

Opgericht in 2010, al 15 jaar dé plek om samenvattingen te kopen

Begin nu gratis

Laatst bekeken door jou


$16.98
  • (0)
In winkelwagen
Toegevoegd