• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 8 pages
Exam (elaborations)

Asu Cse 240 Midterm Exam (Quizzes Questions With Complete Solutions

Document preview thumbnail
Preview 2 out of 8 pages

Asu Cse 240 Midterm Exam (Quizzes Questions With Complete Solutions

Content preview

ASU CSE 240 MIDTERM EXAM (QUIZZES QUESTIONS WITH
COMPLETE SOLUTIONS




Event-driven computing paradigm is to - ans- d d d d d dd




define a set of events and write a handler for each event
d d d d d d d d d d d




In contrast to Web 1.0, what is the key function of Web 2.0? - ans-
d d d d d d d d d d d d d dd




Web is the computing platformd d d d




What programming language impacts the readability of the programs written in this language
d d d d d d d d d d d d




? - ans-Control Structures
d dd d




Syntax Design d




Data Structures d




What is a feature of object-oriented computing? - ans-encapsulation of states
d d d d d d d dd d d




Which command will have a loop expressed in a syntax graph? - ans-switch
d d d d d d d d d d d dd




If your program was designed to print "Hello World" ten (10) times, but during execution, it print
d d d d d d d d d d d d d d d d




ed eleven (11) times. What typeof error is it? - ans-Semantics Error
d d d d d d d d d dd d




A computer program can be broke down into several structural layers. Which of the followings
d d d d d d d d d d d d d d d




belong to these structural layers. Select all that applies. - ans-Synctatic
d d d d d d d d d dd




Contextual
Semantics

For the following BNF ruleset, which are terminal symbols? Select all that apply.
d d d d d d d d d d d d




<char> ::= a | b | c | ... | x | y | z d d d d d d d d d d d d d d




<identifier> ::= <char> | <char> <identifier> - ans-y d d d d d d dd




a

What does the I (pipe) symbol in a BNF rule mean? - ans-It is an "or" operation
d d d d d d d d d d d dd d d d d




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




<char> ::= a | b | c | ... | s | ... | x | y | z d d d d d d d d d d d d d d d d d d




<identifier> ::= <char> | <char> <identifier> - ans-No - d d d d d d dd d




there is an underscore in the identifier name that cannot be generated.
d d d d d d d d d d d d




What is the main reason of applying two-
d d d d d d d




step translation of high level programming language? - ans-One compiler for all machines
d d d d d d d dd d d d d




If you like to see accurate debugging information, which of the following program processing
d d d d d d d d d d d d d d




would you recommend? - ans-interpretationd d d dd

, A final method in java defines - ans-an inline function
d d d d d d dd d d




Macros-Processing in C takes place during which phase? - ans-Pre-processing d d d d d d d d dd




What is "func" in this C program example? d d d d d d d




#include <stdio.h> d




#define func(x, y) (x > y) ? y : x d d d d d d d d d




int main() d




{
int x = 10;
d d d d




int y = 9;
d d d d




int z = func(x, y);
d d d d d




} - ans-A macro
d dd d




Explicit type conversion is commonly refer to as - ans-Casting d d d d d d d d dd




Converting an integer value 5 to a float number 5.0 takes - ans- d d d d d d d d d d d dd




more than two machine instructions d d d d




Implicit type conversion is commonly referred to as - ans-Coercion d d d d d d d d dd




Which language will report a compilation error for the following snippet of code?
d d d d d d d d d d d d




int i = 3; d d d




double n, j = 3.0; d d d d




n = i + j; - ans-Java
d d d d d dd




Which of the following orthogonality describe this example: If a block allows one statement, it s
d d d d d d d d d d d d d d d




hould allow zero or more statements within that same block. - ans-Number orthogonality
d d d d d d d d d d dd d




Why do we need to flush the input buffer? - ans-
d d d d d d d d d dd




An unformatted input can read the newline character left from the previous input operation.
d d d d d d d d d d d d d




The imperative programming paradigm is popular and is a part of object oriented computing p
d d d d d d d d d d d d d d




aradigm, because it - ans-matches the culture of doing things by following the step- d d d dd d d d d d d d d d




wise instructions. d




is based on computer organization and thus is efficient to execute on hardware.
d d d d d d d d d d d d




A data type is defined by - ans-the operations allowed
d d d d d d dd d d




the values allowed d d




A variable declaration can involve the following attributes: - ans-scope
d d d d d d d d dd




type

Document information

Uploaded on
October 11, 2026
Number of pages
8
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
CA$21.85

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
VICTORYSUCCESS
3.0
(2)
Sold
20
Followers
0
Items
2306
Last sold
3 weeks ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions