• ¿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 & Answers

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

CSCE 3600 FINAL EXAM QUESTIONS & ANSWERS

Vista previa del contenido

CSCE 3600 FINAL EXAM QUESTIONS & ANSWERS

Compilation Process - Answers - Preprocessor -> Compiler -> Assembler -> Linker ->
Loader

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

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

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

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

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

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

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

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

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

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

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

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

To Run: - Answers - ./hello

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

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

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

Compilation Stages - Answers - 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) - Answers - recognizes tokens (keywords, operators,
identifiers, numbers) of a program, outputs sequence of tokens to syntax analyzer

Lexical Analysis Process - Answers - 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* - Answers - zero or more occurrence of x. i.e., it can generate { e, x, xx, xxx, xxxx, ...
}

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

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

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

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

Write all strings of 0s and 1s containing at least two consecutive 1s in regex - Answers -
( 0 | 1 )* 1 1( 0 | 1 )*

Write all strings of alternating 0s and 1s in regex - Answers - ( e | 1 ) ( 0 1 )* ( e | 0 )

x+= x x* - Answers - denotes L(x)+

x? = x | e - Answers - denotes L(x) U {e}

[abc] = a | b | c - Answers - matches one character in the square bracket

a-z = a | b | c | ... | z - Answers - range

[^abc] - Answers - ^ means negation

. - Answers - (dot) matches any character except the newline

Información del documento

Subido en
28 de noviembre de 2024
Número de páginas
7
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$11.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.
GEEKA
3.8
(373)
Vendido
2212
Seguidores
1450
Artículos
62502
Última venta
8 horas 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