Introduction To Programming 1 Flashcards

1
Q

What is a Computer & How it works?

A

A computer is an electronic device that processes data, performing calculations and executing instructions to perform various tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the basic workflow of a Computer?

A

Input - Data is entered via input devices (keyboard, mouse, etc.).

Processing - The CPU processes the input data according to programmed instructions.

Output - Processed information is sent to output devices (monitor, printer).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do Computers work in Data and Binary?

A

Computers operate using data and binary through the following processes
1. Binary System - Binary Digits (Bits)
2. Data Representation
3. Processing Data
4. Memory and Storage
5. Data Transfer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Binary Number system?

A

The binary number system is a base-2 numeral system that utilizes only two symbols: 0 and 1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Text in Binary?

A

Text in binary is the representation of characters using the binary number system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How Computers works in memory, CPU, input, and output

A

Computers operate through a coordinated interaction between the CPU, memory, and input/output devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How Computers work in Circuits and Logics

A

Computers work in circuits and logic by using transistors and logic gates to process binary data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How Computers works inside and outside

A

Computers process data using a combination of hardware components that work together to execute tasks, store information, and facilitate user interaction through various input and output devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do Programs work on computer

A

Programs are sets of instructions written in a programming language that tell a computer how to perform specific tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you represent information using electrical wires

A

Information is represented using electrical wires through binary signals, where two distinct voltage levels correspond to the binary digits (0 and 1).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is images in binary?

A

Images in binary refer to the digital representation of visual information in a computer using binary code (0s and 1s).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is images in binary?

A

Images in binary refer to the digital representation of visual information in a computer using binary code (0s and 1s). Each image is composed of pixels, with each pixel’s color typically represented in the RGB color model, where red, green, and blue values range from 0 to 255 and are stored as 8-bit binary numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is sound as a series of vibrations?

A

Sound is a series of vibrations that travel through a medium, such as air, water, or solids. These vibrations create pressure waves, which our ears detect and interpret as sound.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is programming?

A

It is planning, scheduling, or performing a task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is computer programming?

A

Computer programming is the process of designing and writing instructions in a programming language to create software applications that perform specific tasks. It involves developing algorithms, coding, debugging, and testing to ensure that the software functions correctly and efficiently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Why computer programming is both art and science?

A

Computer programming is often viewed as both an art and a science due to its unique blend of logical and creative elements.

17
Q

What are the 2 phase processes of computer programming?

A

Problem-Solving Phase: This is the first stage where the focus is on understanding and defining the problem clearly.

Implementation Phase: Once the problem-solving phase is complete, the solution is ready to be implemented in the chosen programming language.

18
Q

What is a computer programming cycle?

A

The computer programming development cycle is a systematic process used to create software, ensuring each stage of development is carefully planned and executed.

19
Q

What is programming structures?

A

In the context of introductory programming courses like Programming 1, programming structures are fundamental concepts that help students learn how to write and organize code effectively.

20
Q

What is programming structures?

A

In the context of introductory programming courses like Programming 1, programming structures are fundamental concepts that help students learn how to write and organize code effectively. The primary structures typically covered include the sequential structure, where statements are executed one after another in a linear sequence, teaching students the basics of processing information straightforwardly. The selection structure, or conditional statements, allows the program to make decisions based on specific conditions using constructs like if, else if, and else, introducing students to branching logic. The repetition structure enables the execution of a block of code multiple times, essential for tasks requiring repetition. Students learn about various types of loops, such as for loops and while loops, which automate repetitive tasks and minimize code duplication. Additionally, students may be introduced to functions, which encapsulate code into reusable blocks, promoting better organization and modular programming. Mastering these programming structures is foundational for developing problem-solving skills and writing effective code in any programming language.

Example sentence: Students in Programming 1 are learning about programming structures to enhance their coding skills.

21
Q

What is programming language?

A

A programming language is a formal set of rules and syntax used to communicate instructions to a computer. It provides a means for developers to write code that specifies how the computer should perform tasks, manipulate data, and interact with other software and hardware. Programming languages can vary in abstraction levels, ranging from low-level languages, which are closer to machine code and hardware, to high-level languages, which are more user-friendly and closer to human languages. Each programming language has its own syntax and semantics, enabling programmers to express algorithms, control structures, and data manipulations effectively. Popular programming languages include Python, Java, C++, and JavaScript, each designed for different types of applications and use cases.

Example sentence: Learning a programming language is essential for anyone interested in software development.

22
Q

Writing code: General steps in writing code

A

Define the Problem: Clearly understand and articulate the problem you are trying to solve. This includes gathering requirements and identifying the desired outcomes.

Plan the Solution: Outline a high-level solution by breaking down the problem into smaller, manageable components. This may involve creating algorithms, flowcharts, or pseudocode to visualize the steps needed to reach the solution.

Choose a Programming Language: Select an appropriate programming language based on the project requirements, such as performance needs, ease of use, and available libraries or frameworks.

Write the Code: Begin coding based on the planned solution. Start by implementing the core functionality, followed by additional features. Ensure to follow best practices for coding, including proper naming conventions and documentation.

Test the Code: After writing the code, conduct tests to identify any bugs or issues. This can include unit tests, integration tests, and system tests to ensure that the code behaves as expected in various scenarios.

Debug and Refine: If any errors are found during testing, debug the code to locate and fix these issues. Refine the code to improve efficiency, readability, and maintainability.

Document the Code: Write documentation to explain how the code works, including its functions, usage, and any necessary instructions. Good documentation helps others (and future you) understand the code.

Deploy the Code: Once the code is tested and documented, deploy it to a production environment where users can access it. This may involve installing software on servers or making it available through applications.

Maintain and Update: After deployment, monitor the code for any issues or user feedback. Be prepared to make updates, fix bugs, and add new features as needed.

Example sentence: Following these steps ensures a systematic approach to writing code.

23
Q

Evolution of computer programming languages

A

Machine Language: The earliest form of programming, machine language consists of binary code (0s and 1s) that directly interacts with the computer’s hardware. Writing in machine language is complex and error-prone, as programmers must remember specific binary codes for instructions, making it difficult to develop even simple programs.

Assembly Language: To improve upon the challenges of machine language, assembly language was developed as a symbolic representation of machine code. It uses mnemonics and labels to represent instructions, making it more human-readable. Each assembly instruction corresponds to a machine language instruction, but programmers still need a detailed understanding of the hardware.

High-Level Programming Languages: The introduction of high-level programming languages in the 1950s, such as Fortran and COBOL, transformed programming by allowing developers to write code using more abstract concepts and syntax resembling natural language. High-level languages are designed to be portable, enabling the same code to run on different hardware platforms with minimal modifications.

Object-Oriented Languages: In the 1980s, object-oriented programming (OOP) languages like C++ and Java emerged, emphasizing the organization of code into objects that encapsulate data and behavior. This approach promotes reusability, modularity, and better modeling of real-world problems, making code easier to maintain and extend.

Example sentence: The evolution of programming languages has revolutionized the way software is developed.

24
Q

End - uses computer programming

A

End user- user of computer programming

Definition: An end user is the individual who uses the software or application developed through computer programming.