100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

CS 101 Terms Review (Midterm 2) Questions and Answers Already Passed

Puntuación
-
Vendido
-
Páginas
2
Grado
A+
Subido en
14-12-2025
Escrito en
2025/2026

CS 101 Terms Review (Midterm 2) Questions and Answers Already Passed + - Answers addition (i.e. 4+5 = 9) - - Answers subtraction (i.e. 9-5 = 4) * - Answers multiplication (3*5 = 15) / and // - Answers division (6/3 = 2.0; 6/4 = 1.5; 6//4 = 1) % - Answers mod/remainder (5%3 = 2) ** - Answers exponentiation (3**2 = 9) + (strings) - Answers concatenation ("ab" + "cd" = "abcd") * (strings) - Answers repeat ("xo"*3 = "xoxoxo") == - Answers is equal to (3 == 3 is True) != - Answers is not equal to (3 != 3 is False) >= - Answers is greater than or equal to (4>=3 is True) <= - Answers is less than or equal to (4<=3 is False) > - Answers is strictly greater than (4>3 is True) < - Answers is strictly less than (4<3 is False) not - Answers negates the value of a bool (not x==5 is False) and - Answers returns True only if both statements are True (x>3 and x<7 is True if x==5) or - Answers returns True if at least one statement is true (x>3 or x>7 is True if x==5) int(x) - Answers makes x an integer --> int(5.8) = 5; int("123") = 123; int("abc") = error float(x) - Answers makes x a decimal --> float("2.46") = 2.46; float(4) = 4.0; float("abc") = error str(x) - Answers makes x a string --> str(432) = "432"; type(x) - Answers returns type of x --> type(1) = int; type(1.2) = float s[x] - Answers returns the index of a character (i.e. colorful: s[0] = 'c', s[-3] = 'f' s[x:y] - Answers splices and returns parts of string between indexes (i.e. colorful: s[4:-1] = 'rfu')

Mostrar más Leer menos
Institución
CS 101
Grado
CS 101








Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
CS 101
Grado
CS 101

Información del documento

Subido en
14 de diciembre de 2025
Número de páginas
2
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

CS 101 Terms Review (Midterm 2) Questions and Answers Already Passed

+ - Answers addition (i.e. 4+5 = 9)

- - Answers subtraction (i.e. 9-5 = 4)

* - Answers multiplication (3*5 = 15)

/ and // - Answers division (6/3 = 2.0; 6/4 = 1.5; 6//4 = 1)

% - Answers mod/remainder (5%3 = 2)

** - Answers exponentiation (3**2 = 9)

+ (strings) - Answers concatenation ("ab" + "cd" = "abcd")

* (strings) - Answers repeat ("xo"*3 = "xoxoxo")

== - Answers is equal to (3 == 3 is True)

!= - Answers is not equal to (3 != 3 is False)

>= - Answers is greater than or equal to (4>=3 is True)

<= - Answers is less than or equal to (4<=3 is False)

> - Answers is strictly greater than (4>3 is True)

< - Answers is strictly less than (4<3 is False)

not - Answers negates the value of a bool (not x==5 is False)

and - Answers returns True only if both statements are True (x>3 and x<7 is True if x==5)

or - Answers returns True if at least one statement is true (x>3 or x>7 is True if x==5)

int(x) - Answers makes x an integer --> int(5.8) = 5; int("123") = 123; int("abc") = error

float(x) - Answers makes x a decimal --> float("2.46") = 2.46; float(4) = 4.0; float("abc") = error

str(x) - Answers makes x a string --> str(432) = "432";

type(x) - Answers returns type of x --> type(1) = int; type(1.2) = float

s[x] - Answers returns the index of a character (i.e. colorful: s[0] = 'c', s[-3] = 'f'

s[x:y] - Answers splices and returns parts of string between indexes (i.e. colorful: s[4:-1] = 'rfu')

.find(str) - Answers finds index of first occurrence, -1 if not there (i.e. s = 'colorful': s.find('o') = 1)
$10.49
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

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.
TutorJosh Chamberlain College Of Nursing
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
347
Miembro desde
1 año
Número de seguidores
16
Documentos
28842
Última venta
1 día hace
Tutor Joshua

Here You will find all Documents and Package Deals Offered By Tutor Joshua.

3.6

55 reseñas

5
19
4
14
3
12
2
0
1
10

Recientemente visto por ti

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