100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

COMP 2131 Module 3A Exam Questions with Verified Solutions Graded A+

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
15-11-2025
Written in
2025/2026

COMP 2131 Module 3A Exam Questions with Verified Solutions Graded A+ Who designed the C programming language and when? - Answers Dennis Ritchie at Bell Laboratories in the early 1970s. What languages influenced the design of C? - Answers ALGOL 60 (1960), CPL (Cambridge, 1963), BCPL (Martin Richard, 1967), B (Ken Thompson, 1970). What is the traditional use of the C programming language? - Answers Systems programming. What book is referred to as K&R in the context of C programming? - Answers The C Programming Language by Brian Kernighan and Dennis Ritchie, 2nd Edition. When was C standardized by ANSI and what is it known as? - Answers Standardized in 1989 and known as ANSI C. When was the international standard for C adopted by ANSI and what is it known as? - Answers In 1990, known as C89. How was the C standard updated over time? - Answers The standard was updated in 1995 (C95) and 1999 (C99). How does C++ relate to C? - Answers C++ extends C to include support for Object Oriented Programming and other features, but C is not strictly a subset of C++. What are the elements of a C development environment? - Answers System libraries and headers, application source and header files, compiler, and linker. What is required in a C program's structure? - Answers There must be one main function where execution begins, additional local and external functions, and variables. How is C different from Java in terms of programming approach and data handling? - Answers C is procedural with no classes and uses global variables and structs/unions for abstract data types, while Java is object-oriented with classes and instance variables. How do you compile and run a simple C program using gcc? - Answers Compile using gcc hello.c -o hello and run with ./hello. What is GCC and its significance? - Answers GCC is the GNU Compiler Collection, used for compiling C programs and other major programming languages. What are some features of GCC? - Answers Language-independence and code optimization with various optimization levels. What is the learning environment for C and Assembly in the course? - Answers Students work on TRU's Linux server using provided username and password, and connect remotely to the server. What is the purpose of standard headers in C? - Answers To provide function prototypes, data types, macros, inline functions, and other common declarations. What is the purpose of the C preprocessor (cpp)? - Answers To insert common definitions into source files and perform other pre-processing tasks. Give examples of some C standard header files and their uses. - Answers -stdio.h for file and console I/O -stdlib.h for common utility functions

Show more Read less
Institution
COMP 2131
Module
COMP 2131









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
COMP 2131
Module
COMP 2131

Document information

Uploaded on
November 15, 2025
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

COMP 2131 Module 3A Exam Questions with Verified Solutions Graded A+

Who designed the C programming language and when? - Answers Dennis Ritchie at Bell
Laboratories in the early 1970s.

What languages influenced the design of C? - Answers ALGOL 60 (1960), CPL (Cambridge,
1963), BCPL (Martin Richard, 1967), B (Ken Thompson, 1970).

What is the traditional use of the C programming language? - Answers Systems programming.

What book is referred to as K&R in the context of C programming? - Answers The C
Programming Language by Brian Kernighan and Dennis Ritchie, 2nd Edition.

When was C standardized by ANSI and what is it known as? - Answers Standardized in 1989 and
known as ANSI C.

When was the international standard for C adopted by ANSI and what is it known as? - Answers
In 1990, known as C89.

How was the C standard updated over time? - Answers The standard was updated in 1995 (C95)
and 1999 (C99).

How does C++ relate to C? - Answers C++ extends C to include support for Object Oriented
Programming and other features, but C is not strictly a subset of C++.

What are the elements of a C development environment? - Answers System libraries and
headers, application source and header files, compiler, and linker.

What is required in a C program's structure? - Answers There must be one main function where
execution begins, additional local and external functions, and variables.

How is C different from Java in terms of programming approach and data handling? - Answers
C is procedural with no classes and uses global variables and structs/unions for abstract data
types, while Java is object-oriented with classes and instance variables.

How do you compile and run a simple C program using gcc? - Answers Compile using gcc
hello.c -o hello and run with ./hello.

What is GCC and its significance? - Answers GCC is the GNU Compiler Collection, used for
compiling C programs and other major programming languages.

What are some features of GCC? - Answers Language-independence and code optimization with
various optimization levels.

What is the learning environment for C and Assembly in the course? - Answers Students work
on TRU's Linux server using provided username and password, and connect remotely to the
server.

, What is the purpose of standard headers in C? - Answers To provide function prototypes, data
types, macros, inline functions, and other common declarations.

What is the purpose of the C preprocessor (cpp)? - Answers To insert common definitions into
source files and perform other pre-processing tasks.

Give examples of some C standard header files and their uses. - Answers -stdio.h for file and
console I/O



-stdlib.h for common utility functions



-string.h for string and byte manipulation



-ctype.h for character types



-errno.h for system error reporting



-math.h for math functions



-signal.h for signal handling



-stdint.h for standard integer types



-time.h for time-related functions.

Compare malloc and calloc functions in C. - Answers -malloc allocates size bytes of memory.



-calloc allocates a region to hold n elements of n size.



-malloc syntax: void *malloc(size_in_bytes)

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.
joshuawesonga22 Liberty University
Follow You need to be logged in order to follow users or courses
Sold
24
Member since
7 months
Number of followers
1
Documents
9660
Last sold
1 day ago
Tutor Wes

Hi there! I'm Tutor Wes, a dedicated tutor with a passion for sharing knowledge and helping others succeed academically. All my notes are carefully organized, detailed, and easy to understand. Whether you're preparing for exams, catching up on lectures, or looking for clear summaries, you'll find useful study materials here. Let’s succeed together!

3.0

1 reviews

5
0
4
0
3
1
2
0
1
0

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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions