WGU D684 intro to computer
science Exam Questions with
Correct Answers 100% Solved
Field - CORRECT ANSWER-A named memory location that is part of a record
or object and stores data values.
Instance - CORRECT ANSWER-A specific occurrence of a class; the object
created when a class is instantiated.
Object - CORRECT ANSWER-An entity that contains both data (fields) and the
procedures (methods) that operate on that data.
Method - CORRECT ANSWER-A function that belongs to a class or object and
defines its behavior.
Inheritance - CORRECT ANSWER-A mechanism that allows one class to acquire
the attributes and behaviors of another class.
Record - CORRECT ANSWER-A composite data type that groups multiple
related fields under one name.
, Argument - CORRECT ANSWER-A value provided to a function or method
when it is called.
Parameter - CORRECT ANSWER-A variable defined in a function or method
that receives an argument value.
Pass-by-Value - CORRECT ANSWER-A parameter passing method where a copy
of the argument's value is passed to the function.
Pass-by-Reference - CORRECT ANSWER-A parameter passing method where
the address of the variable is passed, allowing direct modification of the original.
For Loop - CORRECT ANSWER-A count-controlled loop that repeats a set
number of times.
While Loop - CORRECT ANSWER-A condition-controlled loop that continues
as long as its condition is true.
Do-While Loop - CORRECT ANSWER-A loop that executes its body at least
once and repeats while its condition remains true.
If-Else Statement - CORRECT ANSWER-A control structure that executes one
block of code if a condition is true and another if it is false.
Select/Case Statement - CORRECT ANSWER-A decision structure that chooses
one of several code blocks based on the value of an expression.
Bubble Sort - CORRECT ANSWER-A simple sorting algorithm that repeatedly
compares and swaps adjacent elements until the list is sorted.
COPYRIGHT ALL RIGHTS RESERVED ©️ 2025
science Exam Questions with
Correct Answers 100% Solved
Field - CORRECT ANSWER-A named memory location that is part of a record
or object and stores data values.
Instance - CORRECT ANSWER-A specific occurrence of a class; the object
created when a class is instantiated.
Object - CORRECT ANSWER-An entity that contains both data (fields) and the
procedures (methods) that operate on that data.
Method - CORRECT ANSWER-A function that belongs to a class or object and
defines its behavior.
Inheritance - CORRECT ANSWER-A mechanism that allows one class to acquire
the attributes and behaviors of another class.
Record - CORRECT ANSWER-A composite data type that groups multiple
related fields under one name.
, Argument - CORRECT ANSWER-A value provided to a function or method
when it is called.
Parameter - CORRECT ANSWER-A variable defined in a function or method
that receives an argument value.
Pass-by-Value - CORRECT ANSWER-A parameter passing method where a copy
of the argument's value is passed to the function.
Pass-by-Reference - CORRECT ANSWER-A parameter passing method where
the address of the variable is passed, allowing direct modification of the original.
For Loop - CORRECT ANSWER-A count-controlled loop that repeats a set
number of times.
While Loop - CORRECT ANSWER-A condition-controlled loop that continues
as long as its condition is true.
Do-While Loop - CORRECT ANSWER-A loop that executes its body at least
once and repeats while its condition remains true.
If-Else Statement - CORRECT ANSWER-A control structure that executes one
block of code if a condition is true and another if it is false.
Select/Case Statement - CORRECT ANSWER-A decision structure that chooses
one of several code blocks based on the value of an expression.
Bubble Sort - CORRECT ANSWER-A simple sorting algorithm that repeatedly
compares and swaps adjacent elements until the list is sorted.
COPYRIGHT ALL RIGHTS RESERVED ©️ 2025