100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE240 QUIZ QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED $9.79   Add to cart

Exam (elaborations)

CSE240 QUIZ QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED

 1 view  0 purchase
  • Course
  • Institution

CSE240 QUIZ QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED M1Q1: Features of the imperative or procedural paradigm includes - manipulation of named data (variables) - conditional statements M1Q1: Logic programming languages divide the program into reasonable sized pieces named functio...

[Show more]

Preview 3 out of 21  pages

  • November 5, 2024
  • 21
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
avatar-seller
CSE240 QUIZ QUESTIONS AND ANSWERS WITH

COMPLETE SOLUTIONS VERIFIED


M1Q1: Features of the imperative or procedural paradigm includes

- manipulation of named data (variables)

- conditional statements

M1Q1: Logic programming languages divide the program into reasonable sized

pieces named functions or procedures or modules or subroutines.

False

M1Q1: The compiler executes the program

True

M1Q1: Features of the functional paradigm includes

- simpler semantics

- expresses computations in terms of mathematical functions

M1Q1: Is the following statement true or false?

Prolog is a functional programming language

False

M1Q1: Assembly language translates instructions written in a high-level

programing language to binary code

False

M1Q1: Features of the logic paradigm includes

,- define relationships between components

- a program is a set of facts

M1Q1: Features of the object-oriented paradigm includes

- inheritance

- classes and objects

M1Q1: All high-level programming languages should have a way to define

variables which should always have defined data type.

False

M1Q1: All high-level languages should have control structures such as

conditions and loops

False

M1Q2: If you like to see accurate debugging information, which of the following

program processing would you recommend?

Interpretation because it offers better debugging info

M1Q2: What is the main reason of applying two-step translation of high level

programming language?

One compiler for all machines

M1Q2: Macros-Processing in C takes place during which phase?

Pre-processing, macro is processed in compiler before the actual translation from high

level program to execute

M1Q2: Assume a function requires 20 lines of machine code and will be called 10

times in the main program. You can choose to implement it using a function

, definition or a macro definition. Compared with the function definition, macro

definition will lead the compiler to generate, for the entire program, ______

a longer machine code but with shorter execution time

M1Q2: A final method in Java defines

a constant

M1Q2: Explicit type conversion is commonly refer to as __________ .

casting

M1Q2: Implicit type conversion is commonly refer to as __________ .

coercion

M1Q2: Which of the following statements are correct if a language is strongly

typed. Select all that apply.

- type errors are always reported

- each name in a program has a single type associated with it

M1Q2: Which of the following orthogonality describe this example:

If a block allows one statement, it should allow zero or more statements within

that same block.

Number Orthogonality

M2Q1: Why do we need to flush the input buffer?

An unformatted input can read the newline character left from the previous input

operation.

M2Q1: In the C-Style input function scanf("%d", &i), what does the character "&"

mean?

that the parameter is the address of the variable where the value should be stored.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller LIXAN. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.79. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

82215 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.79
  • (0)
  Add to cart