Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CSE 240 Midterm Questions and Answers 2023| Complete guide

Beoordeling
-
Verkocht
-
Pagina's
5
Cijfer
A+
Geüpload op
01-02-2024
Geschreven in
2023/2024

CSE 240 Midterm Questions and Answers 2023| Complete guide

Instelling
Vak

Voorbeeld van de inhoud

CSE 240 Midterm 2023/2024

Stored program concept (von Neumann machine) is one of the most fundamental
concepts in computer science. What programming paradigm most closely follows this
concept? ANSW - Imperitive

What computing paradigm can solve a problem by describing the requirements, without
writing code in a step-wise fashion to solve the problem. ANSW - Logic

What computing paradigm enforces stateless (no variable allowed) programming?
ANSW - Functional

What is a feature of object oriented computing? ANSW - State encapsulation

In contrast to Web 1.0 what is the key function of Web 2.0? ANSW - Web is the
computing platform

Because of hardware constraints early programming languages emphasized ANSW -
Efficiency

What factor is generally considered more important in modern programming language
design? ANSW - Readability

The main idea of structured programming is to ANSW - Reduce the types of control
structures

Implicit type conversion is commonly referred to as: ANSW - Coercion

In the following pseudocode which programming language allows the mixed use of data
types?

int i = 1; char c = 'a' ; // declaration & initiali
c = c + I; ANSW - C

In the layers of programming language structure, which layer performs type checking?
ANSW - contextual

Which of the following statement is correct if language is strongly typed select all that
applies.
A. Each variable in a program has a single type associated with it.
B. Variable type can be unknown at compilation time
C. Type errors are always reported.

, D. Coercion is automatically allowed. ANSW - A,C

Which command (construct) has a loop when expressed in syntax graphs? ANSW -
Switch

The contextual structure of a programming language defines ANSW - The static
semantics that will be checked by the compiler

If a program contains an error that divide a number by zero at execution time. This error
is a ANSW - Semantic error

Interpretation is not efficient if ANSW - Multi-module programming is used

What is the difference between an in-line function and a macro in C++? ANSW -
Inlining is a suggestion to the compiler, while a macro definition will be enforced

Macros-processing takes place during which phase? ANSW - Preprocessing

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 leave the compiler
to generate, for the entire program, ANSW - A longer machine code but with shorter
execution time.

Forward declaration in modern programming practice ANSW - Provide a level of
abstraction

C language does not have a Boolean type because ANSW - Boolean values can be
represented as integers

Two functions are said to be mutually recursive if ANSW - They call each other

What is the maximum number of padding bytes that a compiler can add to a structure?
ANSW - More than 3

The enumeration type of values are stored in the memory as ANSW - Int

If we want to store a linked list of structures, with each structure containing different
types of data, into a disk file, what type of file should we choose? ANSW - Binary file

The reason that we need to call fflush() or cin.ignore() is because the previous ANSW -
Input leaves a character in the file buffer.

What parameter passing mechanism cannot change the variable values in the caller?
ANSW - Call-by-values

Geschreven voor

Vak

Documentinformatie

Geüpload op
1 februari 2024
Aantal pagina's
5
Geschreven in
2023/2024
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$11.39
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
smartchoices Chamberlain College Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
36
Lid sinds
5 jaar
Aantal volgers
5
Documenten
4499
Laatst verkocht
1 maand geleden

4.8

9 beoordelingen

5
7
4
2
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen