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

CSE 240 UPDATED ACTUAL Exam Questions and CORRECT Answers

Puntuación
-
Vendido
-
Páginas
52
Grado
A+
Subido en
20-08-2025
Escrito en
2025/2026

CSE 240 UPDATED ACTUAL Exam Questions and CORRECT Answers True or false: Learning the concepts, logic and problem solving of programming unlocks our ability to learn knew languages. - CORRECT ANSWER - True Reliability speaks to how easily a programmer can express themselves reliably within the language. - CORRECT ANSWER - False Is sort orthogonality one-to-many, many-to-many, or a general lack of restriction? - CORRECT ANSWER - One-to-many

Mostrar más Leer menos
Institución
CSE 240
Grado
CSE 240











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

Escuela, estudio y materia

Institución
CSE 240
Grado
CSE 240

Información del documento

Subido en
20 de agosto de 2025
Número de páginas
52
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

CSE 240 UPDATED ACTUAL Exam
Questions and CORRECT Answers
True or false: Learning the concepts, logic and problem solving of programming unlocks our
ability to learn knew languages. - CORRECT ANSWER - True


Reliability speaks to how easily a programmer can express themselves reliably within the
language. - CORRECT ANSWER - False


Is sort orthogonality one-to-many, many-to-many, or a general lack of restriction? - CORRECT
ANSWER - One-to-many


Is compositional orthogonality one-to-many, many-to-many, or a general lack of restriction? -
CORRECT ANSWER - Many-to-many


Is number orthogonality one-to-many, many-to-many, or a general lack of restriction? -
CORRECT ANSWER - General lack of restriction on reproducing features in your code



What does one-to-many mean? - CORRECT ANSWER - if you can combine one command in
a set of command with another command in another


What does many-to-many mean? - CORRECT ANSWER - if you can combine all the
commands in one set with all commands in another set


If I have set of commands S1 that describe data types in my language and a set of commands S2
that describe creation of variables:


S1: int, decimal, bool
S2: <type> <name>, <type> <name> = <value>, constant <type> <name> = <value>

,The set S3: int <name>, int <name> = <value>, constant int <name> = <value> -- demonstrates
what kind of orthogonality? - CORRECT ANSWER - Sort orthogonality



Sort Orthogonality is _ - CORRECT ANSWER - one-to-many



Compositional Orthogonality is: - CORRECT ANSWER - many-to-many



Number orthogonality is: - CORRECT ANSWER - General lack of restriction on reproducing
features in your code


Syntax Error asks what? - CORRECT ANSWER - Is the statement built correctly?



Context Error asks what? - CORRECT ANSWER - Is the statement built from the right stuff?



Semantic Error asks what? - CORRECT ANSWER - Is the program doing the right things?



PEBCAK Error is what? - CORRECT ANSWER - When the user/programmer is being stupid


True or False: In Backus Naur Form, non-terminals contained in () are required in the syntax. -
CORRECT ANSWER - False


True or False: Backus Naur Form allows for recursive definitions of non-terminal symbols. The
definitions are usually separated with a | (aka a "pipe"). - CORRECT ANSWER - True


Which command will have a loop when expressed in a syntax graph?
1. while-loop
2. if-then-else
3. switch

,4. if-then - CORRECT ANSWER - switch


Which of the following cannot be checked by an imperative or object-oriented compiler. (Check
all that applies.)
1. Lexical
2. Semantics
3. Contextual

4. Syntactic - CORRECT ANSWER - Semantics


If your program was designed to print "Hello World" ten (10) times, but during execution, it
printed eleven (11) times. What type of error is it? - CORRECT ANSWER - Semantics error


Which commands (constructs) do NOT have a loop when expressed in syntax graphs? Select all
that apply


1. if-then-else
2. while (condition) do {statements;}
3. switch (expr) { case value: statements ;}
4. for ( <init-expr>; <test-expr>; <increment-expr> ) {<statements>} - CORRECT
ANSWER - 1, 2, 4


Given Very Simple Programming Language (VSPL):


<char> ::= a | b | c | ... | z | 0 | 1 | ... | 9
<operator> ::= + | - | * | / | % | < | > | == | >= | <=
<variable> ::= <char> | <char> <variable>
<expr> ::= <variable> <operator> <variable> | ( <expr> ) <operator> ( <expr> )
<assign> ::= <variable> = <expr>;
<statements> ::= <assign> | <assign> <statements>

, Is the following valid?

my_int = int1 + int2; - CORRECT ANSWER - No, not valid because of the underscore. To be
valid, the underscore would have to be in the VSPL symbols


Given Very Simple Programming Language (VSPL):


<char> ::= a | b | c | ... | z | 0 | 1 | ... | 9
<operator> ::= + | - | * | / | % | < | > | == | >= | <=
<variable> ::= <char> | <char> <variable>
<expr> ::= <variable> <operator> <variable> | ( <expr> ) <operator> ( <expr> )
<assign> ::= <variable> = <expr>;
<statements> ::= <assign> | <assign> <statements>


Is the following valid?

myvar = (x + y) * (a - c); - CORRECT ANSWER - Yes. variable = expression (operator)
expression. (Reminder: | means or)


Given Very Simple Programming Language (VSPL):


<char> ::= a | b | c | ... | z | 0 | 1 | ... | 9
<operator> ::= + | - | * | / | % | < | > | == | >= | <=
<variable> ::= <char> | <char> <variable>
<expr> ::= <variable> <operator> <variable> | ( <expr> ) <operator> ( <expr> )
<assign> ::= <variable> = <expr>;
<statements> ::= <assign> | <assign> <statements>


Is the following valid?

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.
MGRADES Stanford University
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
1069
Miembro desde
1 año
Número de seguidores
102
Documentos
68976
Última venta
1 día hace
MGRADES (Stanford Top Brains)

Welcome to MGRADES Exams, practices and Study materials Just think of me as the plug you will refer to your friends Me and my team will always make sure you get the best value from the exams markets. I offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

169 reseñas

5
73
4
30
3
44
2
8
1
14

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