CSE 240 EXAM QUESTIONS AND
ANSWERS 100% SOLVED (Newest 2025)
True or false: Learning the concepts, logic and problem
solving of programming unlocks our ability to learn knew languages. - Correct Answers ✅True Reliability speaks to how easily a programmer can express themselves reliably within the language. - Correct Answers ✅False Is sort orthogonality one-to-many, many-to-many, or a general lack of restriction? - Correct Answers ✅One-to- many Is compositional orthogonality one-to-many, many-to-many, or a general lack of restriction? - Correct Answers ✅Many- to-many Is number orthogonality one-to-many, many-to-many, or a general lack of restriction? - Correct Answers ✅General lack of restriction on reproducing features in your code What does one-to-many mean? - Correct Answers ✅if you can combine one command in a set of command with another command in another What does many-to-many mean? - Correct Answers ✅if you can combine all the commands in one set with all commands in another set 1 / 4
CSE 240 EXAM QUESTIONS AND
ANSWERS 100% SOLVED (Newest 2025) 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:
The set S3: int , int = , constant
int
Compositional Orthogonality is: - Correct Answers ✅many-
to-many
Number orthogonality is: - Correct Answers ✅General lack
of restriction on reproducing features in your code Syntax Error asks what? - Correct Answers ✅Is the statement built correctly? 2 / 4
CSE 240 EXAM QUESTIONS AND
ANSWERS 100% SOLVED (Newest 2025) Context Error asks what? - Correct Answers ✅Is the statement built from the right stuff?Semantic Error asks what? - Correct Answers ✅Is the program doing the right things?PEBCAK Error is what? - Correct Answers ✅When the user/programmer is being stupid
True or False: In Backus Naur Form, non-terminals contained
in () are required in the syntax. - Correct Answers ✅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 Answers ✅True Which command will have a loop when expressed in a syntax graph?
- while-loop
- if-then-else
- switch
- if-then - Correct Answers ✅switch 3 / 4
CSE 240 EXAM QUESTIONS AND
ANSWERS 100% SOLVED (Newest 2025) Which of the following cannot be checked by an imperative or object-oriented compiler. (Check all that applies.)
- Lexical
- Semantics
- Contextual
- Syntactic - Correct Answers ✅Semantics
- if-then-else
- while (condition) do {statements;}
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 Answers ✅Semantics error Which commands (constructs) do NOT have a loop when expressed in syntax graphs? Select all that apply
3. switch (expr) { case value: statements ;}
- for (
; ; )
{
Given Very Simple Programming Language (VSPL):
- / 4