COP 3223C Final Exam Questions and
Answers Latest Update
Who developed the C programming language? - Answer-Dennis M. Ritchie
When was C first implemented? - Answer-1972
Why is C widely used? Select all that apply - Answer--Easy to learn
-Structured language
-It can be compiled on a variety of computer platforms
-It can handle low-level activities
Which language is C the successor of? - Answer-B
C runs nearly as fast as which other language? - Answer-Assembly language
What is the file extension of a C language source code file? - Answer-.c
What tools are required to set up an environment in order to write, compile, and run a
program written in the C language? Select all that apply - Answer--C compiler
-Text editor
What type of file contains the source code? - Answer-source files
What is source code compiled into? - Answer-machine language
Match the parts of the program with its definition.
int main()
{
/* my first program in C */
printf("Hello, World! \n");
return 0;
}
return 0; - Answer-terminates the main() function
Given the source code below, how many tokens make up the statement?
printf("Hello COP 3223!"); - Answer-5
In a C program, an individual statement must be ended with a semicolon. - Answer-True
There are multiple formats of an acceptable comment in C, select all that apply. -
Answer--// comment
-/* comment */
Regarding identifiers for variables, functions, or any other user-defined item, which of
the following are acceptable? Select all that apply. - Answer--variable
-_variable
-VARIABLE
-var23iable
Regarding keywords in the C programming language and creating identifiers. Keywords
are reserved in all lowercase AND all uppercase. - Answer-False
Regarding whitespace in the C programming language, spaces are required between
the operators in the following source code in order to compile, run, and provide the
correct output.
int sum=2+3/2-12*15; - Answer-False
Match the data type to its definition.
Basic Types - Answer-Arithmetic types and are further classified into integer and
floating-point types
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 lectknancy. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $16.49. You're not tied to anything after your purchase.