Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Examen

PSU COMPUTER SCIENCE 101 EXAM 1 STUDY QUESTIONS WITH CORRECT ANSWERS!!

Note
-
Vendu
-
Pages
9
Grade
A+
Publié le
26-02-2025
Écrit en
2024/2025

Which term refers to a series of finite steps for solving a problem or carrying out a task? a. pattern b. algorithm c. decomposition d. level of abstraction - ANSWERalgorithm Why are computer scientists interested in algorithm efficiency? a. Efficient algorithms increase the security of computer programs. b. Efficient algorithms always produce a programming blueprint that can easily be applied to any programming language. c. Efficient algorithms produce simple, straightforward computer programs with very few lines of code. d. Efficient algorithms tend to produce computer programs that operate efficiently, quickly, and reliably. - ANSWERd. Efficient algorithms tend to produce computer programs that operate efficiently, quickly, and reliably. An effective algorithm _____. a. applies to only one specific input b. terminates only upon user request c. produces at most one output d. produces one or more outputs - ANSWERd. produces one or more outputs A compiler uses ____ as input and generates ____ as output. a. binary executable files; object files b. object files; binary executable files c. source code; object code d. object code; source code - ANSWERc. source code; object code A(n) ____ is a software utility that begins with the first statement in a program, preprocesses it into a binary instruction, and then executes it. a. preprocessor b. linker c. interpreter d. compiler - ANSWERc. interpreter Which action can cause a runtime error in a program? a. dividing a number by zero b. inserting a keyword in the wrong position c. leaving quotes or brackets unpaired d. using the wrong variable in a calculation - ANSWERa. dividing a number by zero Which action will cause a syntax error? a. accessing a file that does not exist b. leaving a keyword out of a statement c. using the wrong expression for a decision d. forgetting the order of operations - ANSWERb. leaving a keyword out of a statement Which action can cause a logic error in a program? a. inserting a keyword in the wrong position b. forgetting to declare a variable before using it c. using the wrong expression for a decision d. dividing a number by zero - ANSWERc. using the wrong expression for a decision When you install Python, it comes with a built-in, easy-to-use integrated development environment called _____.

Montrer plus Lire moins
Établissement
PSU COMPUTER SCIENCE 101
Cours
PSU COMPUTER SCIENCE 101









Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

École, étude et sujet

Établissement
PSU COMPUTER SCIENCE 101
Cours
PSU COMPUTER SCIENCE 101

Infos sur le Document

Publié le
26 février 2025
Nombre de pages
9
Écrit en
2024/2025
Type
Examen
Contient
Questions et réponses

Sujets

Aperçu du contenu

PSU COMPUTER SCIENCE 101 EXAM 1
STUDY QUESTIONS WITH CORRECT
ANSWERS!!
Which term refers to a series of finite steps for solving a problem or carrying out a
task?
a. pattern
b. algorithm
c. decomposition
d. level of abstraction - ANSWERalgorithm

Why are computer scientists interested in algorithm efficiency?
a. Efficient algorithms increase the security of computer programs.
b. Efficient algorithms always produce a programming blueprint that can easily be
applied to any programming language.
c. Efficient algorithms produce simple, straightforward computer programs with very
few lines of code.
d. Efficient algorithms tend to produce computer programs that operate efficiently,
quickly, and reliably. - ANSWERd. Efficient algorithms tend to produce computer
programs that operate efficiently, quickly, and reliably.

An effective algorithm _____.
a. applies to only one specific input
b. terminates only upon user request
c. produces at most one output
d. produces one or more outputs - ANSWERd. produces one or more outputs

A compiler uses ____ as input and generates ____ as output.
a. binary executable files; object files
b. object files; binary executable files
c. source code; object code
d. object code; source code - ANSWERc. source code; object code

A(n) ____ is a software utility that begins with the first statement in a program,
preprocesses it into a binary instruction, and then executes it.
a. preprocessor
b. linker
c. interpreter
d. compiler - ANSWERc. interpreter

Which action can cause a runtime error in a program?
a. dividing a number by zero
b. inserting a keyword in the wrong position
c. leaving quotes or brackets unpaired
d. using the wrong variable in a calculation - ANSWERa. dividing a number by zero

, Which action will cause a syntax error?
a. accessing a file that does not exist
b. leaving a keyword out of a statement
c. using the wrong expression for a decision
d. forgetting the order of operations - ANSWERb. leaving a keyword out of a
statement

Which action can cause a logic error in a program?
a. inserting a keyword in the wrong position
b. forgetting to declare a variable before using it
c. using the wrong expression for a decision
d. dividing a number by zero - ANSWERc. using the wrong expression for a decision

When you install Python, it comes with a built-in, easy-to-use integrated
development environment called _____.
a. REPL
b. PyPi
c. PyCharm
d. IDLE - ANSWERd. IDLE

When using IDLE, you choose shell mode _____.
a. in order to save your work for future use
b. by saving your file and then pressing F5
c. when you want to quickly test lines of code
d. by closing the IDLE window on your desktop - ANSWERc. when you want to
quickly test lines of code

Which phrase describes character and string literals?
a. words used by a programming language for a specific purpose
b. named memory locations that hold data that is not changed by the statements in a
program
c. data such as letters, symbols, words, and sentences
d. the words True and False not enclosed in single or double quotes - ANSWERc.
data such as letters, symbols, words, and sentences

____ represents a variable created using camel case and ____ represents a variable
created using snake case.
a. red_sox_inventory_count; redSoxInventoryCount
b. redSoxInventoryCount; red_sox_inventory_count
c. redSoxInventoryCount; Red_Sox_Inventory_Count
d. RedSoxInventoryCount; Red_Sox_Inventory_Count - ANSWERb.
redSoxInventoryCount; red_sox_inventory_count

Suppose you create a Python list containing the elements "J", "A", "W", "S", and 3, in
that order. What are the index values of the first and last elements of this list?
a. 1 and 5
b. 0 and 3
c. 0 and 4
d. 1 and 3 - ANSWERc. 0 and 4

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
papersbyjol West Virginia
Voir profil
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
421
Membre depuis
2 année
Nombre de followers
253
Documents
14026
Dernière vente
1 mois de cela

3.8

72 revues

5
27
4
18
3
17
2
2
1
8

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions