• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 5 páginas
Examen

PYTHON Exam 1 Review Practice Test.

Document preview thumbnail
Vista previa 2 fuera de 5 páginas

PYTHON Exam 1 Review Practice Test. d rwx rwx rwx (file type, user, group, other) - CORRECT ANSWER Permission classes mv - CORRECT ANSWER Rename file in bash mv ~/projects/ - CORRECT ANSWER Move a file into projects folder in bash cp - CORRECT ANSWER copies the file to a new name, leaving the old one. cp -v - CORRECT ANSWER copy verbose rm - CORRECT ANSWER Removes the file Insert, vi, command (i, esc, :) - CORRECT ANSWER Vim modes import pdb; _trace() - CORRECT ANSWER Python Debugger Commands scp [destination] [source] (scp :/home/u0669999/ ./) - CORRECT ANSWER SCP protocol from server scp [source] [destination] (scp ./ :/home/u0669999/) - CORRECT ANSWER SCP protocol to server history 100 - CORRECT ANSWER Display last 100 lines of history ['cumulus','cirrus','asperitas'] - CORRECT ANSWER What is the result of the following code: clouds = 'cumulus,cirrus,asperitas'

Vista previa del contenido

PYTHON Exam 1 Review Practice Test.

d rwx rwx rwx (file type, user, group, other) - CORRECT ANSWER Permission classes



mv oldfile.txt newfile.txt - CORRECT ANSWER Rename file in bash



mv newfile.txt ~/projects/ - CORRECT ANSWER Move a file into projects folder in bash



cp newfile.txt newfile.bak - CORRECT ANSWER copies the file to a new name, leaving the old one.



cp -v - CORRECT ANSWER copy verbose



rm newfile.bak - CORRECT ANSWER Removes the newfile.bak file



Insert, vi, command (i, esc, :) - CORRECT ANSWER Vim modes



import pdb; pdb.set_trace() - CORRECT ANSWER Python Debugger Commands



scp [destination] [source] (scp u0669999@155.97.58.66:/home/u0669999/myfile.py ./myfile.py) -
CORRECT ANSWER SCP protocol from server



scp [source] [destination] (scp ./myfile.py u0669999@155.97.58.66:/home/u0669999/myfile.py) -
CORRECT ANSWER SCP protocol to server



history 100 - CORRECT ANSWER Display last 100 lines of history



['cumulus','cirrus','asperitas'] - CORRECT ANSWER What is the result of the following code:

>>> clouds = 'cumulus,cirrus,asperitas'

, >>> print clouds.split(',')



Identify the topic you want to explore - CORRECT ANSWER What is the first step in telling a story with
data?



<type 'str'> - CORRECT ANSWER What is the result of the following code:

>>> print type('Thistle,Fern,Milkwood')



dir (python) - CORRECT ANSWER Returns a list of methods of the object that is passed as a parameter. A
list of everything that can be pulled from a library.



- They are sortable

- They are similar to arrays in Java - CORRECT ANSWER Which of the following is true about lists in
python (mark all that apply):

- Individual elements cannot be modified

- They are sortable

- They are similar to arrays in Java

- All items must be the same type



Any number less than but not equal to 18 - CORRECT ANSWER The code below would print the text
'undefined parameter' when the variable gable equaled what?

if int(gable) >= 20:

print 'too high'

elif int(gable) >= 18 and gable < 20:

print 'too low'

else:

print 'undefined parameter'



Paradontax - CORRECT ANSWER toothpaste_list = ['Colgate','Parodontax','Sozodont']

Información del documento

Subido en
6 de abril de 2025
Número de páginas
5
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$13.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
ROSEGRADES
3.4
(35)
Vendido
236
Seguidores
87
Artículos
12121
Última venta
3 semanas hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes