100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CSE 240 FINAL QUESTIONS & ANSWERS

Rating
-
Sold
-
Pages
25
Grade
A+
Uploaded on
18-06-2025
Written in
2024/2025

CSE 240 FINAL QUESTIONS & ANSWERS

Institution
CSE 240
Course
CSE 240










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CSE 240
Course
CSE 240

Document information

Uploaded on
June 18, 2025
Number of pages
25
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CSE 240 FINAL QUESTIONS & ANSWERS
letter ::= a | b | c | d | e
LETTER ::= V | W | X | Y | Z
number ::= 1 | 3 | 5 | 7 | 9
letters ::= <letter> | <letter><letters>
LETTERS ::= <LETTER> | <LETTER><LETTERS>
numbers ::= <number> <number> | <number> <numbers>
sequence ::= <letters> (LETTERS) <numbers> |
<LETTERS> (letters) <numbers>

Is CSE240 valid? - Answers :no

letter ::= a | b | c | d | e
LETTER ::= V | W | X | Y | Z
number ::= 1 | 3 | 5 | 7 | 9
letters ::= <letter> | <letter><letters>
LETTERS ::= <LETTER> | <LETTER><LETTERS>
numbers ::= <number> <number> | <number> <numbers>
sequence ::= <letters> (LETTERS) <numbers> |
<LETTERS> (letters) <numbers>

Is abc135 valid? - Answers :yes

letter ::= a | b | c | d | e
LETTER ::= V | W | X | Y | Z
number ::= 1 | 3 | 5 | 7 | 9
letters ::= <letter> | <letter><letters>
LETTERS ::= <LETTER> | <LETTER><LETTERS>
numbers ::= <number> <number> | <number> <numbers>
sequence ::= <letters> (LETTERS) <numbers> |
<LETTERS> (letters) <numbers>

Is bWX13 valid? - Answers :yes

letter ::= a | b | c | d | e
LETTER ::= V | W | X | Y | Z
number ::= 1 | 3 | 5 | 7 | 9
letters ::= <letter> | <letter><letters>
LETTERS ::= <LETTER> | <LETTER><LETTERS>
numbers ::= <number> <number> | <number> <numbers>
sequence ::= <letters> (LETTERS) <numbers> |
<LETTERS> (letters) <numbers>

Is ZYA85 valid? - Answers :no

,letter ::= a | b | c | d | e
LETTER ::= V | W | X | Y | Z
number ::= 1 | 3 | 5 | 7 | 9
letters ::= <letter> | <letter><letters>
LETTERS ::= <LETTER> | <LETTER><LETTERS>
numbers ::= <number> <number> | <number> <numbers>
sequence ::= <letters> (LETTERS) <numbers> |
<LETTERS> (letters) <numbers>

Is eY11 valid? - Answers :yes

Given:

letter ::= a | b | c | d | e
LETTER ::= V | W | X | Y | Z
number ::= 1 | 3 | 5 | 7 | 9
letters ::= <letter> | <letter><letters>
LETTERS ::= <LETTER> | <LETTER><LETTERS>
numbers ::= <number> <number> | <number> <numbers>
sequence ::= <letters> (LETTERS) <numbers> |
<LETTERS> (letters) <numbers>

Is the following sequence valid?

abcSWX246 - Answers :no

There was an early focus on efficiency due to early programmable computers being
themselves fairly inefficient being limited in power and storage.

t/f - Answers :true

"When piloting a helicopter - changing speed can/will change you r direction and
possible vice versa"

This quote demonstrates that changing speed and/or direction is Orthogonal

t/f - Answers :false

von Neummann Architecture is - Answers :a state based programming structure which
loads and interprets instructions from memory into action

C++ was designed to bring Object Orientation to C. In fact it was originally released with
the unimaginative name "C with Classes"

t/f - Answers :true

, This concept asks how tied down a language is to a particular platform, can code be
distributed easily and can libraries be made and shared. - Answers :Resusability

What is a feature of object-oriented programming? - Answers :encapsulation of states

What computing paradigm enforces stateless (no variables allowed) programming? -
Answers :functional

What programming language characteristics impact the readability of the programs
written in this language?

Data structures
Type checking
Control structures
Syntax design - Answers :Data structures,
control structures,
syntax design

What is the major improvement of structured programming languages over the earlier
programming languages? - Answers :removing Goto statements from the language

Which command will have a loop when expressed in a syntax graph? - Answers :switch

Given this snippet of code in C,

char alpha = 'a';
int numeric = alpha + 10;

which of the following statements is correct:

A. syntactically correct, but contextually incorrect
B. syntactically incorrect, but contextually correct
C. syntactically correct, and contextually correct
D. Syntactically incorrect, and contextually incorrect. - Answers :A. Syntactically correct,
but contextually incorrect

What cannot be checked by an imperative or object-oriented compiler - Answers
:Semantics

Can the identifier "base_variable" be created from the following BNF ruleset?

<char> ::= a | b | c | ... | s | ... | x | y | z
<identifier> ::= <char> | <char> <identifer> - Answers :No - there is an underscore in the
identifier name that cannot be generated

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Greaterheights Birkbeck, University of London
View profile
Follow You need to be logged in order to follow users or courses
Sold
1120
Member since
3 year
Number of followers
880
Documents
18226
Last sold
1 day ago

4.0

210 reviews

5
114
4
41
3
24
2
10
1
21

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions