CS2 Module 1
- Obtener vínculo
- X
- Correo electrónico
- Otras apps
TECH VOCAB
Variables & Functions
In programming, a variable is a container that stores data values. A function is a block of code designed to perform a particular task.
Example: In JavaScript, you might declare a variable and a function like this:
let userName = "Alice"; // variable declaration function greetUser(name) { // function declaration return "Hello, " + name + "!"; } console.log(greetUser(userName)); // Output: Hello, Alice!

Loops & Arrays
A loop is a programming structure that repeats a sequence of instructions until a specific condition is met. An array is a data structure that contains a collection of elements, typically of the same data type.
Example: Using a for loop to iterate through an array:
let colors = ["red", "green", "blue"]; // array declaration for (let i = 0; i < colors.length; i++) { // loop through array console.log("Color " + (i+1) + ": " + colors[i]); }
Objects & Classes
An object is a collection of properties and methods that represent a real-world entity. A class is a blueprint for creating objects with predefined properties and methods.
Example: Creating a class and object in JavaScript:
class Car { // class declaration constructor(brand, model) { this.brand = brand; this.model = model; } displayInfo() { return this.brand + " " + this.model; } } let myCar = new Car("Toyota", "Camry"); // object creation console.log(myCar.displayInfo()); // Output: Toyota Camry

Inheritance & Debug
Inheritance is a mechanism where a new class inherits properties and methods from an existing class. Debug is the process of finding and resolving bugs or defects in software.
Example: Class inheritance and debugging:
class Vehicle { constructor(name) { this.name = name; } } class Car extends Vehicle { // inheritance constructor(name, wheels) { super(name); this.wheels = wheels; } } // Debugging with console.log let myCar = new Car("Tesla", 4); console.log(myCar); // Debug output to check object properties
Source Code & Syntax
Source code is the fundamental component of a computer program that is created by a programmer. Syntax refers to the set of rules that defines the combinations of symbols that are considered to be correctly structured programs in a language.
Example: Source code with correct syntax:
// This is source code in Python def calculate_area(length, width): # Correct syntax """Calculate rectangle area""" area = length * width return area result = calculate_area(5, 3) print("Area:", result) # Output: Area: 15

Compile & IDE
To compile means to convert source code written in a high-level programming language to a lower-level language (e.g., assembly language, machine code). An IDE (Integrated Development Environment) is a software application that provides comprehensive facilities to computer programmers for software development.
Example: Compiling Java code using an IDE like IntelliJ IDEA:
// Java source code public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } } // Compile command: javac HelloWorld.java // Run command: java HelloWorld

Grammar: Simple Present of Be + Adjective
Simple Present of Be + Adjective
The simple present tense of "be" (am, is, are) is used with adjectives to describe states, conditions, or characteristics.
Examples with technical vocabulary:
- The variable is important in programming.
- These functions are useful for calculations.
- I am confused about this syntax.
- The IDE is powerful and user-friendly.
- Debugging tools are essential for developers.
Practice: Complete the sentences with am, is, or are
1. The array ____ empty.
2. I ____ learning about inheritance.
3. These loops ____ complicated.
4. The source code ____ well-organized.
5. You ____ good at debugging.
6. The class ____ defined correctly.
7. We ____ using a new IDE.
8. This object ____ complex.
9. The function ____ not working properly.
10. They ____ experts in compile processes.
Grammar: Compound Sentences with and/but
Compound Sentences with and/but
Compound sentences join two independent clauses with coordinating conjunctions like "and" (for addition) or "but" (for contrast).
Examples with technical vocabulary:
- I created a variable, and I assigned it a value.
- The function works perfectly, but it needs optimization.
- She understands arrays, and she can manipulate them efficiently.
- The IDE is powerful, but it consumes a lot of memory.
- We need to debug the code, and we must do it quickly.
Practice: Complete with "and" or "but"
1. I wrote a loop to iterate through the data, ____ it has an infinite condition.
2. The class is well-designed ____ it lacks proper documentation.
3. She knows how to compile the program ____ she doesn't understand the errors.
4. The object contains all required properties ____ it needs to be instantiated.
5. I checked the syntax ____ everything appears correct.
6. The source code is available on GitHub ____ it's not well-commented.
7. He understands inheritance ____ he can implement it in his project.
8. We need to fix this bug ____ we have a deadline tomorrow.
9. The array stores multiple values ____ it has a fixed size.
10. I like this IDE ____ my colleague prefers a different one.
Grammar: Yes/No and Information Questions
Yes/No and Information Questions with Be
Yes/No questions with "be" start with Am/Is/Are. Information questions start with question words (what, where, when, why, how) followed by am/is/are.
Examples with technical vocabulary:
- Is this variable global or local?
- Are these functions properly defined?
- What is the purpose of this loop?
- How are arrays different from objects?
- Why is this syntax incorrect?
Practice: Create questions for the answers
1. Answer: The variable is called "counter".
Question: ____ ____ ____ ____ ____?
2. Answer: Yes, the function is recursive.
Question: ____ ____ ____ ____ ____?
3. Answer: The IDE is Visual Studio Code.
Question: ____ ____ ____ ____?
4. Answer: No, the class is not abstract.
Question: ____ ____ ____ ____ ____?
5. Answer: The source code is in the src folder.
Question: ____ ____ ____ ____ ____?
6. Answer: Yes, we are ready to compile.
Question: ____ ____ ____ ____ ____ ____?
7. Answer: The error is on line 42.
Question: ____ ____ ____ ____?
8. Answer: No, they are not using inheritance.
Question: ____ ____ ____ ____ ____?
9. Answer: The array is empty.
Question: ____ ____ ____ ____?
10. Answer: I am debugging the application.
Question: ____ ____ ____ ____?
Reading Comprehension
The Importance of Debugging
Debugging is an essential part of the software development process. When programmers write code, they inevitably introduce errors, known as bugs. These bugs can range from simple syntax errors to complex logical errors that are difficult to identify. A good Integrated Development Environment (IDE) provides debugging tools that help developers find and fix these bugs efficiently.
Debugging tools allow programmers to set breakpoints, step through code line by line, inspect variable values, and track the flow of execution. This process is crucial because even a small bug can cause a program to crash or produce incorrect results. Modern debugging tools are sophisticated and can significantly reduce the time needed to identify and resolve issues.
Learning to debug effectively is as important as learning to write code. Many experienced programmers spend more time debugging than writing new code. The ability to systematically identify, isolate, and fix bugs is a valuable skill that improves with practice. Some developers even say that debugging is where they learn the most about programming and how systems actually work.
Multiple Choice Questions
1. What is the main topic of this passage?
2. According to the passage, what do debugging tools allow programmers to do?
3. What does the passage say about experienced programmers?
4. According to the passage, why is debugging important?
5. What does the passage suggest about learning to debug?
- Obtener vínculo
- X
- Correo electrónico
- Otras apps