APPLICATIONS: COMPREHENSIVE PRACTICE
EXAMINATION STUDY GUIDE | LATEST UPDATE
2026/2027 | ACTUAL EXAM PRACTICE QUESTIONS
AND ANSWERS | EXAM REVIEW | 100% CORRECT
ANSWERS | VERIFIED SOLUTIONS|A+ GRADED.
This comprehensive practice examination is designed for students
preparing for the WGU C867 Scripting and Programming – Applications
Objective Assessment. The course covers the various aspects of the C++
programming language by examining its syntax, the development
environment, and tools and techniques to solve real-world problems.
The course teaches C++ for applications and is foundational for software
development. Competencies include: Introduction to Programming,
Variables and Data Types, Control Structures, Arrays, Pointers and
Memory, Functions, and the Object-Oriented Paradigm. The assessment
is a Performance Assessment (PA) where students develop a C++
application. This resource is intended to help candidates assess their
readiness, identify knowledge gaps, and strengthen their preparation
for the certification examination.
Table of Contents
1. Introduction to C++ Programming and Development Environment
2. Variables, Data Types, and Operators
3. Control Structures (Decision and Loop Constructs)
4. Arrays and Data Structures
5. Pointers and Memory Management
, 6. Functions and File Manipulation
7. Object-Oriented Paradigm: Classes and Objects
8. Object-Oriented Paradigm: Inheritance and Polymorphism
9. Comprehensive Performance Assessment (PA) Scenario Practice
10. Final Exam Review and Key Concepts
1. Which of the following best describes C++ as a programming
language?
A) An interpreted, dynamically typed language focused on
web development
B) A compiled, statically typed language supporting both
procedural and object-oriented paradigms
C) A purely functional programming language with automatic
memory management
D) A scripting language designed for rapid application
development
Correct Answer: B
Rationale: C++ is a compiled language, meaning code is translated into
machine language by a compiler. It is statically typed, so every variable
must have its type specified at compile time. C++ supports both
procedural and object-oriented paradigms, making it versatile for
system and application programming.
, 2. Which of the following is NOT a characteristic of C++?
A) Low-level memory management capabilities
B) Support for classes and inheritance
C) Automatic garbage collection
D) Compiled language
Correct Answer: C
Rationale: C++ does not have automatic garbage collection; memory
management is the responsibility of the programmer through the use of
constructors, destructors, and manual allocation/deallocation
(new/delete). C++ does provide low-level memory management (A),
supports classes and inheritance (B), and is a compiled language (D).
3. What is the correct file extension for a C++ source code file?
A) .c
B) .cpp
C) .java
D) .py
Correct Answer: B
Rationale: C++ source code files typically use the .cpp extension (or .cc,
.cxx). .c is for C source files, .java is for Java, and .py is for Python.
4. The code #include <iostream> is an example of a:
A) Variable declaration
B) Function definition
C) Preprocessor directive
D) Loop construct
Correct Answer: C
Rationale: The #include directive is a preprocessor command that tells
the compiler to include the contents of a specified header file (in this
, case, iostream) before compilation. This is not a variable declaration (A),
function definition (B), or loop construct (D).
5. What is the purpose of the using namespace std; statement in a
C++ program?
A) It creates a new namespace called std
B) It allows the program to use standard library entities without
the std:: prefix
C) It defines the standard input/output streams
D) It declares a new variable in the std namespace
Correct Answer: B
Rationale: The using namespace std; statement allows the program to
use names from the standard library (like cout, cin, endl) without
prefixing them with std::. It does not create a new namespace (A),
define streams (C), or declare a variable (D).
6. Which of the following is the correct syntax to output "Hello
World" to the console in C++?
A) print("Hello World");
B) System.out.println("Hello World");
C) cout << "Hello World" << endl;
D) echo "Hello World";
Correct Answer: C
Rationale: cout is the standard output stream in C++, and << is the
insertion operator. endl is used to insert a newline and flush the output
buffer. Option A is Python syntax, B is Java, and D is a shell command.
7. Which of the following data types would you use to store a whole
number like -5, 0, or 42?
A) float