CSE240 MIDTERM EXAM QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED
7 views 0 purchase
Course
CSE240
Institution
CSE240
CSE240 MIDTERM EXAM QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED
imperative and procedural language
C is an ________ in the ALGOL tradition.
static type system
C has a ______
weakly typed.
C is often considered _______
functions (procedures, subroutines).
Code is organized into...
cse240 midterm exam questions and answers with com
Written for
CSE240
All documents for this subject (20)
Seller
Follow
NurseAdvocate
Reviews received
Content preview
CSE240 MIDTERM EXAM QUESTIONS AND ANSWERS
WITH COMPLETE SOLUTIONS VERIFIED
imperative and procedural language
C is an ________ in the ALGOL tradition.
static type system
C has a ______
weakly typed.
C is often considered _______
functions (procedures, subroutines).
Code is organized into _____
passed by value
Function parameters are _______, although arrays are
passed as pointers, i.e. the address of the first item in the array.
Pass-by-reference ; pointers
_______ is simulated in C by explicitly passing _______ to the thing being referenced.
Semicolons
______ terminate statements
,curly braces
______ are used to group statements into blocks.
macro substitution,inclusion of other source files, and conditional compilation.
The C preprocessor performs • • •
Words that have a special meaning predetermined by the programming language
Reserved Word
unique names given to variables, functions...
identifiers
Reserved Word
...
Identifiers
...
represent a fixed value in the source code
literals
literals
...
library functions
I/O, string manipulation, and math are performed with _____
float Pythy(float a, float b); // on the top is considered what?
, function declaration
The function definition for Pythy
The bottom portion of code is consider what?
one-dimensional arrays of characters terminated by a null character '\0'
In C, strings are just_____
the name of the array is the pointer to the array
The firstName in the top scanf means what?
&num is the 'address of' num, or the pointer to it
The &num in the bottom scanf means what?
format specifiers
If format includes ________ (subsequences beginning with %), then the arguments following the string
are converted to characters and inserted into the string.
reads data from stdin and stores them, according to the format specifiers, into the locations pointed to
by the additional arguments.
int scanf ( const char* format, ... );
writes the string (pointed to by format) to the standard output (stdout).
int printf ( const char* format, ... );
support for the null-terminated character arrays,
Functions and macros in the language's standard library provide
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 NurseAdvocate. 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.