Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CLR110 INTRODUCTION TO COMPUTER SCIENCE / PROGRAMMING 2026/2027 | 105 Questions with Correct Answers Graded A+ | 100% Verified | Evidence-Based Rationales

Rating
-
Sold
-
Pages
38
Grade
A+
Uploaded on
28-05-2026
Written in
2025/2026

CLR110 INTRODUCTION TO COMPUTER SCIENCE / PROGRAMMING 2026/2027 | 105 Questions with Correct Answers Graded A+ | 100% Verified | Evidence-Based Rationales

Institution
CLR110 INTRODUCTION TO COMPUTER SCIENCE
Course
CLR110 INTRODUCTION TO COMPUTER SCIENCE

Content preview

CLR110 INTRODUCTION TO COMPUTER
SCIENCE / PROGRAMMING 2026/2027 | 105
Questions with Correct Answers Graded A+ |
100% Verified | Evidence-Based Rationales

Instructions
This examination consists of 105 multiple-choice questions covering foundational
computer science and programming competencies across six domains:
Programming Basics, Syntax, and Data Types (25 questions); Control Structures –
Conditionals and Loops (20 questions); Functions, Scope, and Data Structures (20
questions); Object-Oriented Programming and .NET/CLR Concepts (15
questions); Algorithm Design, Debugging, and Software Development Lifecycle
(15 questions); and Advanced Topics & Code Tracing (10 questions). The
recommended time limit is 120–150 minutes. This is an introductory CS course
assessment with emphasis on code tracing, output prediction, and conceptual
understanding. Correct answers are displayed in bold with evidence-based
rationales aligned to standard CS curricula.
Select the single best answer for each question. Each question is worth one point.
A score of 70% (74/105) or higher indicates satisfactory understanding of
introductory computer science and programming concepts.


Section I: Programming Basics, Syntax, and Data Types (Questions 1–25)
Question 1
Which of the following is a valid variable name in most programming languages
(C#, Java, Python)?
A. 2ndPlace
B. my-variable
C. studentName
D. class

,Rationale: Variable names must begin with a letter or underscore, not a digit.
Hyphens are not allowed in identifiers (they are interpreted as the minus
operator). 'class' is a reserved keyword in Java and C#. 'studentName' follows
camelCase convention and is valid.


Question 2
What is the result of the expression in C# when both operands are integers
(int)?
A. 3.4
B. 3
C. 4
D. 2
*Rationale: In C# (and Java, C, C++), integer division truncates toward zero.
= 3 (the fractional part 0.4 is discarded). To get 3.4, at least one operand must be a
floating-point type.*


Question 3
Which data type is most appropriate for storing a person's age (a whole number, 0-
120)?
A. double
B. string
C. float
D. int
Rationale: Age is typically a whole number without decimal places. int stores
integers efficiently and is the standard choice for age. double and float are for
fractional numbers; string is for text.


Question 4
What does the assignment operator = do in most programming languages?
A. Compares two values for equality
B. Stores the value on the right into the variable on the left

,C. Checks if the left operand is greater than the right
D. Performs logical AND
Rationale: The single equals sign is the assignment operator. It copies the value
from the right-hand side into the memory location represented by the left-hand
variable.


Question 5
Which of the following is NOT a primitive data type in Java?
A. int
B. boolean
C. char
D. String
Rationale: String is a reference type (class) in Java, not a primitive. Primitives
include byte, short, int, long, float, double, char, boolean.


Question 6
What is the value of result after executing int result = 10 % 3; in C#?
A. 3
B. 1
C. 0
D. 3.333
Rationale: The modulus operator % returns the remainder of integer division. 10
divided by 3 is 3 with remainder 1.


Question 7
Which of the following correctly declares a constant in C#?
A. const int MAX = 100;
B. constant int MAX = 100;
C. readonly int MAX = 100;
D. int const MAX = 100;
Correct Answer: A. const int MAX = 100;

, Rationale: In C#, the const keyword is used to declare compile-time constants,
with the type followed by the constant name and initializer.


Question 8
What is the output of the following Python code snippet?
python
x=5
y=2
print(x // y)
A. 2.5
B. 2.0
C. 2
D. 3
*Rationale: In Python, // is floor division, which returns the integer part of the
quotient (floor toward negative infinity). 5 // 2 = 2.*


Question 9
Which of the following is a valid comment in Java?
A. <!-- comment -->
B. // comment
C. comment
D. # comment
Rationale: Java supports single-line comments with // and multi-line comments
with /* ... */. <!-- --> is HTML, # is Python/R, backticks are not comment syntax.


Question 10
What is the size of a double data type in C# (in bytes)?
A. 4
B. 8

Written for

Institution
CLR110 INTRODUCTION TO COMPUTER SCIENCE
Course
CLR110 INTRODUCTION TO COMPUTER SCIENCE

Document information

Uploaded on
May 28, 2026
Number of pages
38
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • clr110
$27.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
WorldNurseLibrary

Get to know the seller

Seller avatar
WorldNurseLibrary CHAMBERLAIN COLLEGE OF NURSING
View profile
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 month
Number of followers
0
Documents
175
Last sold
-
WorldNurseLibrary

Welcome to WorldNurseLibrary — your trusted source for high-quality nursing study materials, exam guides, case studies, assignments, notes, and revision resources designed to support nursing students and healthcare learners worldwide. We provide well-organized, reliable, and easy-to-understand academic documents to help you study smarter, save time, and improve your performance in coursework, exams, and clinical practice. Our store regularly updates with resources from various nursing programs and healthcare courses, including: Nursing exams &amp; study guides i-Human case studies SOAP notes &amp; care plans Pharmacology &amp; pathophysiology resources NCLEX-style materials Health assessment documents Research and academic support materials At WorldNurseLibrary, the goal is simple: deliver valuable educational content that helps students succeed confidently and efficiently.

Read more Read less
0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

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

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions