Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CSE240 QUIZ QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED

Rating
-
Sold
-
Pages
21
Grade
A+
Uploaded on
05-11-2024
Written in
2024/2025

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

Show more Read less
Institution
Course

Content preview

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.

Written for

Course

Document information

Uploaded on
November 5, 2024
Number of pages
21
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.29
Get access to the full document:

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

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.
AcademicSuperScores Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
299
Member since
3 year
Number of followers
37
Documents
7648
Last sold
1 week ago
AcademicSuperScores

NURSING, ECONOMICS, MATHEMATICS, BIOLOGY AND HISTORY MATERIALS. BEST TUTORING, HOMEWORK HELP, EXAMS, TESTS AND STUDY GUIDE MATERIALS WITH GUARANTEE OF A+ I am a dedicated medical practitioner with diverse knowledge in matters Nursing and Mathematics. I also have an additional knowledge in Mathematics based courses (finance and economics)

4.6

156 reviews

5
125
4
9
3
11
2
5
1
6

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

Working on your references?

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

Working on your references?

Frequently asked questions