Computer Science > EXAM > PROGRAMMING CS1101 Final Exam Review Quiz | 30 CORRECT ANSWERS. (All)
PROGRAMMING CS1101 Final Exam Review Quiz | 30 CORRECT ANSWERS. Match concepts with their definition! The correct answer is: Any one of the languages that people have designed for specific purpose... s, 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 2 What output will the following code produce? print ("%s %d %f" % (5, 5, 5)) Select one: a. 5 5 5.000000 b. 5 5 5 c. 5 5.000000 d. 0 5 5.0 The correct answer is: 5 5 5.000000 Question 3 A loop where the terminating condition is never achieved is called an _______ Select one: a. infinite loop b. universal loop c. while loop d. for .. ever loop The correct answer is: infinite loop Question 4 Which of the following types are allowed for Python dictionary keys? Select one: a. dictionary b. list c. list of dictionaries d. tuple e. All of the above Your answer is correct. The correct answer is: tuple [Show More]
Last updated: 6 months ago
Preview 5 out of 37 pages
Loading document previews ...
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Jun 06, 2021
Number of pages
37
Written in
This document has been written for:
Uploaded
Jun 06, 2021
Downloads
0
Views
185
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·