Computer Science > EXAM > CS 1101 Programming Fundamentals - Term 1, 2018-2019. Exam Review | Contains 80 Questions & Answers (All)
CS 1101 Programming Fundamentals - Term 1, 2018-2019. Exam Review | Contains 80 Questions & Answers The statements inside of a loop are known as the ____ of the loop. Select one: a. body b. expres... sion c. counter d. block What does the following symbol mean when used in a owchart? Select one: a. Start/End of process b. Input/output c. Sub-routine process d. Decision CS 1101 Programming Fundamentals - Term 1, 2018-2019 Question 3 Correct Mark 1.00 out of 1.00 Question 4 Correct Mark 1.00 out of 1.00 Question 5 Correct Mark 1.00 out of 1.00 In the following segment of code what do we call the portion of the statement that follows the dot (capitalize)? string.capitalize('maryland') Select one: a. Module b. Method c. Attribute d. Function name The set of modules that are included in the default installation of python are known as the: Select one: a. Standard Library b. API (Application Programming Interface) c. Module Library d. Python Library One of the advantages of a function is that it allows the programmer to alter the ow of execution in the program. Select one: True False Question 6 Correct Mark 1.00 out of 1.00 Question 7 Correct Mark 1.00 out of 1.00 Question 8 Correct Mark 1.00 out of 1.00 Question 9 Correct Mark 1.00 out of 1.00 : A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the function call is called an optional parameter. Select one: True False A program is a sequence of instructions that species how to perform a computation. Select one: True False What does function subroutine do? def subroutine( n ): while n > 0: print (n,) n -= 1 Select one: a. Counts from 10 down to 0 and displays each number b. Counts from n down to 1 and displays each number c. Calculates the sum of n numbers greater than 0 d. Calculates the mean of n The C language was developed at Bell Labs with the objective of being the rst object-oriented language Select one: True False Question 10 Correct Mark 1.00 out of 1.00 Question 11 Correct Mark 1.00 out of 1.00 Question 12 Correct Mark 1.00 out of 1.00 Which of the following is NOT one of the computer languages developed in the 1950s. Select one: a. COBOL b. Fortran c. BASIC (Beginners All Purpose Symbolic Instruction Code) d. LISP 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. now four is score the and seven time years for [Show More]
Last updated: 6 months ago
Preview 5 out of 33 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 07, 2021
Number of pages
33
Written in
This document has been written for:
Uploaded
Jun 07, 2021
Downloads
0
Views
128
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·