CSC 230 - Exam 1 Study Review Test.
CSC 230 - Exam 1 Study Review Test. What do imperative languages do? - CORRECT ANSWER They focus on how a computation should be performed What is a procedural language? - CORRECT ANSWER One that focuses on the actions performed by a collection of procedures (functions) What is an object-oriented language? - CORRECT ANSWER One that is comprised of a collection of objects, which have both state and operations. Object-oriented languages focus on the state of the objects. What is the general flowchart of the history of C? - CORRECT ANSWER Algol 66 - BCPL - B - C -(((C++ - Java) - C#), Perl)) Why was C used instead of assembly? - CORRECT ANSWER It is more portable and maintainable than assembly Who wrote the book "The C Programming Language"? - CORRECT ANSWER Kernighan and Ritchie What are some benefits to C? - CORRECT ANSWER - Able to do somethings we couldn't do in a higher level language - Fast How much faster is C at nothing? - CORRECT ANSWER 70 times Why is C faster than Java? - CORRECT ANSWER C is compiled down to the hardware's native machine language What are software tools? - CORRECT ANSWER Applications that help write, build, analyze and maintain software What are some examples of software tools? - CORRECT ANSWER Editors, compilers, debuggers, code generators, performance analyzers What does the -Wall flag do? - CORRECT ANSWER Pushes all warnings from the compiler to the user What does the -std=c99 flag do? - CORRECT ANSWER Tells the compiler to use the C99 standard What does the -o flag do? - CORRECT ANSWER It tells the compiler to not use the default output file name What primitive types does C not have in comparison to Java? - CORRECT ANSWER Byte and boolean Rather than a class, what are C functions a part of? - CORRECT ANSWER The file scope What command can be used to report the exit status? - CORRECT ANSWER echo $? Does C force you to initialize your local variables? - CORRECT ANSWER No. How is I/O provided in C? - CORRECT ANSWER By functions in the standard library As part of the C standard, is the standard library expected on all platforms? - CORRECT ANSWER Yes What are preprocessor directives and what do they look like? - CORRECT ANSWER They are parts of a file that tell the preprocessor to get other files and compile them along with the source code. They look like the following: #include stdio.h #include stdlib.h What is a stream? - CORRECT ANSWER A file or device from which we can read or to which we can write.
Written for
- Institution
-
Liberty University
- Module
-
CSCN 230
Document information
- Uploaded on
- July 4, 2024
- Number of pages
- 27
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
- cscn 230
-
csc 230 exam 1 study review test
Also available in package deal