Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Examen

Scripting and Programming - Foundations - C173 Exam Questions And Answers

Puntuación
-
Vendido
-
Páginas
11
Grado
A+
Subido en
15-05-2024
Escrito en
2023/2024

Scripting and Programming - Foundations - C173 Exam Questions And Answers What is an editor? - answerA program that allows you to write code What is a compiler? - answerA program that produces other programs. The compiler does all the work at once and then runs the new program. We're translating the code we wrote to computer code all at once. This is often when we produce an .exe (executable) file. What is an interpreter? - answerA program that runs code one line at a time. Instead of converting all of the code at once it runs each line as it's needed. It interprets that specific line from your code to computer code. What is an operator and what does it do? - answerAn operator takes two operands (values) and does something with them. It is an object capable of manipulating a value. If it is a comparison or logical operator it would compare to see if they are similar or dissimilar. If it is a mathematical operator it would perform mathematical calculations. What is an expression? - answersomething that has a value. What is the difference in a terminal and non-terminal expression? - answerA terminal is a final value, while a non-terminal can be reduced further. What is proper Python grammar for making an expression? - answerExpression → Expression Operator Expression The Expression non-terminal that appears on the left side can be replaced by an Expression, followed by an Operator, followed by another Expression. For example, 1 + 1 is an Expression Operator Expression. What is a variable? - answera name that refers to a value What are the three main types of data covered? How do you declare each one? - answerstring is a sequence of characters surrounded by quotes, either single or double example: myVar = "string data" Integer is a number - answerexample: myVar = 33 Boolean is a true or false value - answerexample: myVar = True What is grammar used for in programming? - answerIn a programming language like Python, the code must match the language grammar exactly. When programming language grammar is not followed the interpreter will return a Syntax Error message. This means that the structure of the code is inconsistent with the rules of the programming language. How do you change the value of a variable with Python? - answerUsing the = character to assign a new value x = 6 x = 9 print x # would print out 9 How to do you join multiple variables together with string data in Python? What is this called? - answerUsing the + sign to concatenate the values What does it mean to index a string? How do you do that with Python code? - answerThis is what we call selecting a sub-sequence of a string. You do this in Python by specifying the character you want to access by its index position. Index position begins at 0. For example, this code would print out the letter J: name = 'John' print name[0] What does it mean to slice a string? How do you do that with Python code? - answerSlicing is simply obtaining a subset of data from a string. You may have also heard this called string extraction. You do this in Python by specifying the index position where you want to begin and where you want to end. Everything from the starting point up until the end point will be extracted. For example, this code would print out "Jo": name = 'John' print name[0:2] + - answerconcatenate or add = - answerassignment * - answermultiply - - answersubtract / - answerdivide % - answerModulos, does division and returns the remainder What does the * operator do when applied to string data? - answerIt writes out the string data multiple times. For example, print '!' * 12 would output !!!!!!!!!!!! (12 exclamation points).

Mostrar más Leer menos
Institución
Scripting And Programming
Grado
Scripting and Programming









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

Escuela, estudio y materia

Institución
Scripting and Programming
Grado
Scripting and Programming

Información del documento

Subido en
15 de mayo de 2024
Número de páginas
11
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$12.99
Accede al documento completo:

¿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

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.
TheStar Florida State University
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
651
Miembro desde
2 año
Número de seguidores
180
Documentos
25536
Última venta
4 días hace
Stuvia Prodigy

Tested, Verified and Updated Study Materials with 100% Guaranteed Success.

3.8

131 reseñas

5
58
4
25
3
25
2
4
1
19

Documentos populares

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