Computer Science > EXAM > CS 1101 Programming Fundamentals - Term 1, 2018-2019 (All)
The statements inside of a loop are known as the ____ of the loop. Select one: a. body b. expression 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-2019Question 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 FalseQuestion 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 speciÒes 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 FalseQuestion 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 Creating a python script Òle with a .py extension on the Òlename and placing it in the appropriate directory is all that is required to create a module? Select one: True FalseQuestion 13 Correct Mark 1.00 out of 1.00 Question 14 Correct Mark 1.00 out of 1.00 Question 15 Correct Mark 1.00 out of 1.00 Given any real numbers a and b, exactly one of the following relations holds: a < b, a > b, or a = b. Thus when you can establish that two of the relations are false, you can assume the remaining one is true. This principle is known as: Select one: a. trichotomy b. abstraction c. the distributive property d. the transitive property [Show More]
Last updated: 2 years ago
Preview 1 out of 33 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
exam questions and correct answers
By Prof.Pierro 3 years ago
$13
12
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Jun 11, 2021
Number of pages
33
Written in
This document has been written for:
Uploaded
Jun 11, 2021
Downloads
0
Views
104
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·