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)

CS 1101 Final Exam University of the People 2024/2025

Beoordeling
-
Verkocht
-
Pagina's
20
Cijfer
A+
Geüpload op
03-09-2024
Geschreven in
2024/2025

CS 1101 Final Exam University of the People/CS 1101 Final Exam University of the People/CS 1101 Final Exam University of the People/CS 1101 Final Exam University of the People/CS 1101 Final Exam University of the People

Instelling
Vak

Voorbeeld van de inhoud

UNIVERSITY OF THE PEOPLE
CS 1101 PROGRAMMING FUNDAMENTALS
FINAL EXAM
Question 1
Correct
Mark 1.00 out of 1.00

Flag question
Question text
What is the output of the following Python program?
mylist = [ [2,4,1], [1,2,3], [2,3,5] ]
total = 0
for sublist in mylist:
total += sum(sublist)
print(total)
Select one:

a.
14


b.
23


c.
0


d.
13
Feedback
Your answer is correct.
The correct answer is: 23
Question 2
Correct
Mark 1.00 out of 1.00

Flag question
Question text
Match concepts with their definition!

,Any one of the languages that people have designed for specific Answer 1
purposes, such as representing mathematical ideas or computer formal language
programs; all programming languages are this kind of languages.
Answer 2
Any one of the languages that people speak that evolved naturally. natural language


An error that does not occur until the program has started to execute Answer 3
but that prevents the program from continuing. runtime error


An error in a program that makes it do something other than what the Answer 4
semantic error
programmer intended.
Answer 5
The meaning of a program. semantics

Answer 6
The structure of a program. syntax


An error in a program that makes it impossible to parse — and Answer 7
therefore impossible to interpret. syntax error


One of the basic elements of the syntactic structure of a program, Answer 8
token
analogous to a word in a natural language.
Feedback
The correct answer is: Any one of the languages that people have designed
for specific purposes, such as representing mathematical ideas or computer
programs; all programming languages are this kind of languages. → formal
language, Any one of the languages that people speak that evolved
naturally. → natural language, An error that does not occur until the program
has started to execute but that prevents the program from continuing. →
runtime error, An error in a program that makes it do something other than
what the programmer intended. → semantic error, The meaning of a
program. → semantics, The structure of a program. → syntax, An error in a
program that makes it impossible to parse — and therefore impossible to
interpret. → syntax error, One of the basic elements of the syntactic
structure of a program, analogous to a word in a natural language. → token
Question 3
Correct
Mark 1.00 out of 1.00

Flag question
Question text
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'>
Feedback
Your answer is correct.
The correct answer is: <class 'float'>
Question 4
Correct
Mark 1.00 out of 1.00

Flag question
Question text
Given the following code, what will the output be?

mylist = ["now", "four", "is", "score", "the", "and seven", "time", "years",
"for"]
a=0
while a < 7:
print (mylist[a],)
a += 2
Select one:

a.
now is the time

b.
now is the time for

c.
for score and seven years

d.

Geschreven voor

Instelling
Studie
Onbekend
Vak

Documentinformatie

Geüpload op
3 september 2024
Aantal pagina's
20
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$26.49
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.
VEVA2K Self
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
2860
Lid sinds
5 jaar
Aantal volgers
2413
Documenten
4449
Laatst verkocht
1 dag geleden
Affordable, Up-to-date-Quality Nursing Papers

Here, you'll find a wide range of Nursing Papers at an affordable rate. Every student deserves a friendly environment for study. Always message me for any concern and help. My email is

4.1

690 beoordelingen

5
378
4
128
3
102
2
24
1
58

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