100% Zufriedenheitsgarantie Sofort verfügbar nach Zahlung Sowohl online als auch als PDF Du bist an nichts gebunden 4.2 TrustPilot
logo-home
Prüfung

PRP201c FE Computer science Exam With Complete Questions and Answers

Bewertung
-
Verkauft
-
seiten
50
Klasse
A+
Hochgeladen auf
08-12-2022
geschrieben 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.......................................................................

Mehr anzeigen Weniger lesen











Ups! Dein Dokument kann gerade nicht geladen werden. Versuch es erneut oder kontaktiere den Support.

Dokument Information

Hochgeladen auf
8. dezember 2022
Anzahl der Seiten
50
geschrieben in
2022/2023
Typ
Prüfung
Enthält
Fragen & Antworten

Themen

  • prp201c fe

Lerne den Verkäufer kennen

Seller avatar
Bewertungen des Ansehens basieren auf der Anzahl der Dokumente, die ein Verkäufer gegen eine Gebühr verkauft hat, und den Bewertungen, die er für diese Dokumente erhalten hat. Es gibt drei Stufen: Bronze, Silber und Gold. Je besser das Ansehen eines Verkäufers ist, desto mehr kannst du dich auf die Qualität der Arbeiten verlassen.
StudySet Chamberlain College Of Nursing
Profil betrachten
Folgen Sie müssen sich einloggen, um Studenten oder Kursen zu folgen.
Verkauft
2561
Mitglied seit
5 Jahren
Anzahl der Follower
1735
Dokumente
17032
Zuletzt verkauft
1 Jahren vor
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 rezensionen

5
313
4
107
3
99
2
26
1
64

Kürzlich von dir angesehen.

Warum sich Studierende für Stuvia entscheiden

on Mitstudent*innen erstellt, durch Bewertungen verifiziert

Geschrieben von Student*innen, die bestanden haben und bewertet von anderen, die diese Studiendokumente verwendet haben.

Nicht zufrieden? Wähle ein anderes Dokument

Kein Problem! Du kannst direkt ein anderes Dokument wählen, das besser zu dem passt, was du suchst.

Bezahle wie du möchtest, fange sofort an zu lernen

Kein Abonnement, keine Verpflichtungen. Bezahle wie gewohnt per Kreditkarte oder Sofort und lade dein PDF-Dokument sofort herunter.

Student with book image

“Gekauft, heruntergeladen und bestanden. So einfach kann es sein.”

Alisha Student

Häufig gestellte Fragen