100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 240 - Midterm Study Questions and Answers | 100% Pass $9.99   Add to cart

Exam (elaborations)

CSE 240 - Midterm Study Questions and Answers | 100% Pass

 1 view  0 purchase
  • Course
  • 2024/2025
  • Institution
  • 2024/2025

CSE 240 - Midterm Study Questions and Answers | 100% Pass What is a programming paradigm? - Answer-A set of principles, concepts, and methods that is commonly accepted by members of a group or community. A programming language can belong to multiple paradigms - Answer-True Prolog is a function...

[Show more]

Preview 3 out of 18  pages

  • October 3, 2024
  • 18
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • 2024/2025
  • 2024/2025
avatar-seller
EmillyCharlotte
EMILLYCHARLOTTE 2024/2025 ACADEMIC YAER
©2024 EMILLYCHARLOTTE. ALL RIGHTS RESERVED
FIRST PUBLISH SEPTEMBER 2024

CSE 240 - Midterm Study Questions and
Answers | 100% Pass

What is a programming paradigm? - Answer✔✔-A set of principles, concepts, and

methods that is commonly accepted by members of a group or community.


A programming language can belong to multiple paradigms - Answer✔✔-True

Prolog is a functional programming language - Answer✔✔-False

Features of the functional paradigm includes - Answer✔✔-1) simpler semantics



2) expresses computations in terms of mathematical functions

Features of the logic paradigm includes - Answer✔✔-expressing computation in

terms of logic predicates

Features of the object-oriented paradigm includes - Answer✔✔-1) inheritance



2) classes and objects

Features of the imperative or procedural paradigm includes - Answer✔✔-1)

conditional statements



2) manipulation of named data (variables)

The compiler execute the program - Answer✔✔-False



1/18

,EMILLYCHARLOTTE 2024/2025 ACADEMIC YAER
©2024 EMILLYCHARLOTTE. ALL RIGHTS RESERVED
FIRST PUBLISH SEPTEMBER 2024
What is a data type? - Answer✔✔-a set of primary values and the operations defined

on these values

Compilation of a program is to execute all the statements of the program completely. -

Answer✔✔-False

The lexical structure of all programming languages are similar and normally include

which of the following units - Answer✔✔-1) keywords



2) operators



3) literals



4) identifiers

Functional programming languages are low-level languages - Answer✔✔-False

Interpretation of a program is the direct execution of one statement at a time

sequentially. - Answer✔✔-True

During compilation, all the statements of a program in a high-level language are

converted (translated) to a low-level language (such as assembly language). -

Answer✔✔-True

The syntactic structure of imperative programming languages normally include which of

the following units - Answer✔✔-1) loop statements




2/18

, EMILLYCHARLOTTE 2024/2025 ACADEMIC YAER
©2024 EMILLYCHARLOTTE. ALL RIGHTS RESERVED
FIRST PUBLISH SEPTEMBER 2024
2) conditional statements



3) variable declaration

The semantic structure of imperative programming languages normally include which of

the following validations - Answer✔✔-1) parameters type in a function declaration

should match these in the function call.



2) unicity



3) type matching

This programming language uses two-step translation with intermediate codes for

execution. - Answer✔✔-Java

What kind of error is in the following line:-



int a = ((2 '*' 45)*(6/2) hello (4+90)); - Answer✔✔-Syntactic error

char, unsigned char, signed char and int are all numeric (integer) types in C

programming. - Answer✔✔-True

printing format for integer values - Answer✔✔-%d

printing format for floating point values - Answer✔✔-%f

printing format for characters - Answer✔✔-%c

printing format for strings of characters - Answer✔✔-%s


3/18

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 EmillyCharlotte. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79064 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.99
  • (0)
  Add to cart