• ¿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 7 páginas
Examen

Csce 3600 Final Exam Questions And Answers 100% Correct

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

CSCE 3600 FINAL EXAM QUESTIONS AND ANSWERS 100% CORRECTCSCE 3600 FINAL EXAM QUESTIONS AND ANSWERS 100% CORRECTCSCE 3600 FINAL EXAM QUESTIONS AND ANSWERS 100% CORRECT Compilation Process - ANSWER-Preprocessor - Compiler - Assembler - Linker - Loader Preprocessor Directive - ANSWER-lines begin with # (like #include or #define) Preprocessing - ANSWER-before a program is compiled, definition of constants and macros, conditional compilation of program code #include - ANSWER-copy of a specified file included, used for programs with multiple source files compiled together or libraries

Vista previa del contenido

CSCE 3600 FINAL EXAM QUESTIONS
AND ANSWERS 100% CORRECT
Compilation Process - ANSWER-Preprocessor -> Compiler -> Assembler -> Linker ->
Loader

Preprocessor Directive - ANSWER-lines begin with # (like #include or #define)

Preprocessing - ANSWER-before a program is compiled, definition of constants and
macros, conditional compilation of program code

#include - ANSWER-copy of a specified file included, used for programs with multiple
source files compiled together or libraries

#define - ANSWER-when program compiled, all occurrences of symbolic constant
replaced with replacement text

#undef - ANSWER-undefines a symbolic constant or macro (#define WIDTH
80 ........#undef WIDTH)

gcc - ANSWER-GNU Compiler Collection, standard Linux C compiler, translates C to
assembly

Assembler - ANSWER-assembles, but doesn't link, source code to generate relocatable
object code

Linker - ANSWER-combines compiled and assembled object code to make executable
file

Loader - ANSWER-ensures that object programs are placed in memory in executable
form

Only Compiling: - ANSWER-gcc -c hello.c

Only Linking: - ANSWER-gcc hello.o -o hello

Compiling and Linking: - ANSWER-gcc hello.c -o hello

To Run: - ANSWER-./hello

Compiler - ANSWER-system software that translates high level language to machine
language

, Intermediate Code - ANSWER-produces a program in a different language, between
source code and machine code levels

Semantic Analyzer - ANSWER-takes its input from the syntax analysis phase in the
form of a parse tree and a symbol table, determines if the input has a well-defined
meaning

Symbol Table - ANSWER-built and maintained by the semantic analyzer, contains
information about each identifier in a program, such as identifier type, scope of
identifier, etc

Lexical Error - ANSWER-a mistake in lexeme like misspelling or missing one of the
quotes in a string

Static Semantics - ANSWER-semantics rules that can be checked at compile time

Runtime Semantics - ANSWER-semantics rules that can be checked only at runtime

Compilation Stages - ANSWER-lexical analysis (scanner) -> syntax analysis (parser) ->
semantic analysis -> intermediate code generation -> machine independent
improvement (optional) -> target code generation -> machine specific improvement
(optional)

Lexical Analysis (Scanner) - ANSWER-recognizes tokens (keywords, operators,
identifiers, numbers) of a program, outputs sequence of tokens to syntax analyzer

Lexical Analysis Process - ANSWER-1. discard blanks, tabs
2. put characters together
3. repeat step 2 until end of token
4. classify and save token
5. repeat steps 1-4 until end of statement
6. repeat steps 1-5 until end of source code

x* - ANSWER-zero or more occurrence of x. i.e., it can generate { e, x, xx, xxx,
xxxx, ... }

x+ - ANSWER-one or more occurrence of x. i.e., it can generate { x, xx, xxx, xxxx ... } or
x.x*

x? - ANSWER-at most one occurrence of x i.e., it can generate either {x} or {e}.

Write all strings of 1s and 0s in regex - ANSWER-( 0 | 1 )*

Write all strings of 1s and 0s beginning with a 1 in regex - ANSWER-1 ( 0 | 1 )*

Información del documento

Subido en
6 de diciembre de 2024
Número de páginas
7
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$12.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.
NursingTutor1
3.9
(460)
Vendido
1707
Seguidores
1073
Artículos
18604
Última venta
4 días 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