100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

PRP201c FE Computer science Exam With Complete Questions and Answers

Rating
-
Sold
-
Pages
50
Grade
A+
Uploaded on
08-12-2022
Written in
2022/2023

PRP201c FE 1. When Python is running in the interactive mode and displaying the chevron prompt (>>>) - what question is Python asking you? A. What Python script would you like me to run? B. What is your favourite color? C. What would you like to do? D. What is the next machine language instruction to run? - correct answer C 2. What will the following program print out: >>> x = 15 >>> x = x + 5 >>> print(x) A. 20 B. 5 C. 15 D. "print x" E. x + 5 - correct answer A 3. Python scripts (files) have names that end with: A) .py B) .exe C) .png D) .doc - correct answer A 4. Which of these words is a reserved word in Python ? A. while B. payroll C. names D. pizza - correct answer A 5. What is the proper way to say "good-bye" to Python? A. while B. // stop C. #EXIT D. quit() - correct answer D 6. Which of the parts of a computer actually executes the program instructions? A. Main Memory B. Central Processing Unit C. Input/Output Devices D. Secondary Memory - correct answer B 7. What is "code" in the context of this course? A. A password we use to unlock Python features B. A sequence of instructions in a programming language C. A way to encrypt data during World War II D. A set of rules that govern the style of programs - correct answer B 8. A USB memory stick is an example of which of the following components of computer architecture? A. Central Processing Unit B. Main Memory C. Output Device D. Secondary Memory - correct answer D 9. What is the best way to think about a "Syntax Error" while programming? A. The computer is overheating and just wants you to stop to let it cool down B. The computer has used GPS to find your location and hates everyone from your town C. The computer did not understand the statement that you entered D. The computer needs to have its software upgraded - correct answer C 10. Which of the following is not one of the programming patterns covered in Chapter 1? A. Random steps B. Sequential Steps C. Conditional Steps D. Repeated Steps - correct answer A 11. Which of the following is a comment in Python? A. // This is a test B. * This is a test C. /** This is a test **/ D. # This is a test - correct answer D 12. What does the following code print out? print("123" + "abc") A. 123+abc B. This is a syntax error because you cannot add strings C. 123abc D. hello world - correct answer C 13. Which of the following variables is the "most mnemonic"? A. x B. x1q3z9ocd C. hours D. variable_173 - correct answer C 14. Which of the following is not a Python reserved word? A. spam B. break C. continue D. for - correct answer A 15. Assume the variable x has been initialized to an integer value (e.g., x = 3). What does the following statement do? x = x + 2 A. Create a function called "x" and put the value 2 in the function B. Produce the value "false" because "x" can never equal "x+2" C. This would fail as it is a syntax error D. Retrieve the current value for x, add two to it and put the sum back into x - correct answer D 16. Which of the following elements of a mathematical expression in Python is evaluated first? A. Addition + B. Subtraction - C. Parentheses ( ) D. Multiplication * - correct answer C 17. What is the value of the following expression 42 % 10 Hint - the "%" is the remainder operator A. 4210 B. 2 C. 0.42 D. 10 - correct answer B 18. What will be the value of x after the following statement executes: x = 1 + 2 * 3 - 8 / 4 A. 2.0 B. 5.0 C. 8 D. 4 - correct answer B 19. What will be the value of x when the following statement is executed: x = int(98.6) A. 98 B. 6 C. 100 D. 99 - correct answer A 20. What does the Python input() function do? A. Pause the program and read data from the user B. Connect to the network and retrieve a web page. C. Read the memory of the running program D. Take a screen shot from an area of the screen - correct answer A 21. What do we do to a Python statement that is immediately after an if statement to indicate that the statement is to be executed only when the if statement is true? A. Indent the line below the if statement B. Underline all of the conditional code C. Start the statement with a "#" character D. Begin the statement with a curly brace { - correct answer A.......................................................................

Show more Read less











Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
December 8, 2022
Number of pages
50
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • prp201c fe

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
StudySet Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
2561
Member since
5 year
Number of followers
1735
Documents
17032
Last sold
1 day ago
STUDYSET WILL HELP YOU EARN A TOP SCORE ON YOUR EXAMS

avoid resits and achieve higher grades with Aplus satisfying exams,study guide,class notes and textbook notes

4.0

609 reviews

5
313
4
107
3
99
2
26
1
64

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions