WGU - Scripting and Programming Foundations Exam Questions With Solutions
WGU - Scripting and Programming Foundations Exam Questions With Solutions Program - ANS Consists of instructions executing one at a time. Input - ANS A program gets data, perhaps from a file, keyboard, touchscreen, network, etc. Process - ANS A program performs computations on that data, such as adding two values like x + y. Output - ANS A program puts that data somewhere, such as to a file, screen, network, etc. Computational thinking - ANS Creating a sequence of instructions to solve a problem. Algorithm - ANS A sequence of instructions that solves a problem. Statement - ANS Carries out some action and executing one at a time. String literal - ANS Consists of text (characters) within double quotes, as in "Go #57!". Cursor - ANS Indicates where the next output item will be placed in the output. Newline - ANS A special two-character sequence n whose appearance in an output string literal causes the cursor to move to the next output line. The newline exists invisibly in the output. Comment - ANS Text added to a program, read by humans to understand the code, but ignored by the program when executed. Whitespace - ANS Refers to blank spaces (space and tab characters) between items within a statement, and to newlines. Whitespace helps improve readability for humans, but for execution purposes is mostly ignored. Pseudocode - ANS Text that resembles a program in a real programming language but is simplified to aid human understanding. Assignment statement - ANS Assigns a variable with a value, such as x = 5. An assignment statement's left side must be a variable. The right side is an expression.Examples: x = 5, y = a, or z = w + 2. = - ANS In programming, = is an assignment of a left-side variable with a right-side value. It does not represent equality like in mathematics. Variable declaration - ANS Declares a new variable, specifying the variable's name and type. Identifier - ANS A name created by a programmer for an item like a variable or function. An identifier must: be a sequence of letters (a-z, A-Z), underscores (_), and digits (0-9), AND start with a letter or underscore. Reserved word or keyword - ANS A word that is part of the language, like integer, Get, or Put. A programmer cannot use a reserved word as an identifier.
Escuela, estudio y materia
- Institución
- D278 WGU SCRIPTING AND PROGRAMMING FOUNDATIONS
- Grado
- D278 WGU SCRIPTING AND PROGRAMMING FOUNDATIONS
Información del documento
- Subido en
- 4 de junio de 2024
- Número de páginas
- 6
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
wgu scripting and programming foundations
Documento también disponible en un lote