Notes, summaries, assignments, exams, and problems for Computers

Sort by
Subject
Level

Dynamic Table Generator

Classified in Computers

Written on in English with a size of 59 bytes

Dynamic Table Generator

ROW:
COL:

Factors Affecting Store Image and Design

Classified in Computers

Written on in English with a size of 4.72 KB

EXPLAIN WHICH FACTORS CAN AFFECT STORE IMAGE, DESIGN AND OPERATION COMMITMENT:

It's people’s desire to maintain consistency with previous deeds or choices. Once they have made a decision, they tend to move ahead automatically, convinced that they have made the right choice. SOCIAL PROOF: It's a factor of influence rooted in the maxim “if everybody’s doing it, it must be okay.” Aside from word-of-mouth advertising, a store can convey a message of social proof by attracting people into or in front of the store. AUTHORITY: People do many things simply because they are directed by an authority figure to do so, and store merchants often rely on this principle to sell their products. High-end items, such as jewelry, artwork, and rare collectibles,... Continue reading "Factors Affecting Store Image and Design" »

C Development Tools and Functions: A Comprehensive Guide

Classified in Computers

Written on in English with a size of 2.85 KB

Which C development tool may add automatically malicious source code to the original application source code?

C Preprocessor

Which C software development tool may inadvertently add compiled object/binary code to the original compiled application object code?

Linker or Linkage Editor

If two programmers are developing two separate files a.c and b.c to be merged into one source code before compilation, and one declares in a.c global integer variable int j; how should the other programmer declare and use the same integer variable j in the source code b.c. Write a line of code that allows the second programmer to use in b.c declaration of variable j from the first file a.c?

extern int j;

What does ELF specify?

Executable file format, Executable file header,... Continue reading "C Development Tools and Functions: A Comprehensive Guide" »

Operating Systems: Functions, Components, and Network Basics

Classified in Computers

Written on in English with a size of 3.51 KB

Functions of Operating Systems

Processor Management

The Operating System distributes the processor between different programs.

Random Access Memory Management

The Operating System coordinates the memory space that each application has. When physical memory is insufficient, the Operating System can create a "virtual memory" on the hard disk.

Input/Output Management

The Operating System allows the unification of program access to material resources through controllers.

Execution of Application Administration

The Operating System is responsible for ensuring that applications run smoothly.

Authorization Management

Guarantees that resources are only used by programs and users with the corresponding authorizations.

File Management

The Operating System manages... Continue reading "Operating Systems: Functions, Components, and Network Basics" »

Flowcharts, Programming Languages, and the C Language

Classified in Computers

Written on in English with a size of 5.56 KB

Understanding Flowcharts

The pictorial or graphical representation of the flow of a program is known as a flowchart. If algorithms or programs are displayed in the form of a picture, then it will be more noticeable and recognizable. We only need to know some specific shapes to represent each process or action. The fundamental shapes and descriptions used in flowcharts are as follows:

  • Rhombus: For decision-making and branching the flow of execution.
  • Rectangle: For processing and assigning variables.
  • Parallelogram: Accessing inputs and printing outputs.
  • Rectangle with Curved Edges: Start/Begin or Stop/End of the program execution.
  • Circle: Connectors to continue the flow of execution.
  • Arrow: Represents the direction of the flow of execution.

j9uY63M2wBnveRcyLNUIT34Tu4aWeSqdlhox9JkprjEzmiyBmtmP8KZOE9ItyPleqb820RulOWNBK3GMhvqLvE3HpnmwwrHzb7DE88UBI3YtVUPP5F33nd5VQA0aF_e2ICZ6AW7YV-ajFuT7HcyJt-c4Xh9Iektloljd0DiRGjXFpHgP_xKeDfpPLZEH2Q


Programming

... Continue reading "Flowcharts, Programming Languages, and the C Language" »

Multi-Threaded TCP Game Server Implementation

Classified in Computers

Written on in English with a size of 1.34 KB

Clientes ligam-se a servidor por TCP para jogarem. Pode ter entre 20 a 30 jogadores, de preferência 30, mas se jogador esperar mais de 1 minuto a partida começa com pelo menos 20. O jogador envia o nome ao servidor e fica à espera que o jogo comece e nessa altura é informado dos nomes dos outros.
1. Apresentar uma classe que implementa a interface em que os métodos têm que ser invocados em multi-thread.
Interface Jogo { List inscrever(String nome);}
public class Cliente {
public Cliente(Socket s) throws Exception {
PrintWriter pw = new PrintWriter(s.getOutputStream(), true);
BufferedReader bf = new BufferedReader(new InputStreamReader(s.getInputStream()));
BufferedReader terminal = new BufferedReader(new InputStreamReader(System.in))
... Continue reading "Multi-Threaded TCP Game Server Implementation" »

How Cell Phones Work: From Analog to Digital

Classified in Computers

Written on in English with a size of 2.15 KB

The Evolution of Mobile Phones

Mobile phones, also known as cell phones, emerged in the 1980s as bulky, analog devices relying on unencoded radio wave transmissions. These early models quickly evolved, shrinking in size and transitioning to digital technology, ushering in the second generation (2G) era. This shift enabled faster transmission speeds and paved the way for features like images, messaging, and sound.

Advancements in Technology: 3G and 4G

The early 2000s witnessed remarkable technological leaps with the introduction of 3G in 2001, followed by 3G+ and 4G. These advancements significantly boosted speed and capacity, transforming mobile phones into versatile multimedia devices capable of much more than just making calls.

How Cell Phones

... Continue reading "How Cell Phones Work: From Analog to Digital" »

Understanding Operating Systems: Traps, Interrupts, System Calls, and Threads

Classified in Computers

Written on in English with a size of 3.94 KB

What is the Key Difference Between a Trap and an Interrupt?

A trap is caused by the program and is synchronous with it. If the program is run again and again, the trap will always occur at exactly the same position in the instruction stream. An interrupt is caused by an external event and its timing is not reproducible.

Why is the Process Table Needed in a Timesharing System?

The process table is needed to store the state of a process that is currently suspended, either ready or blocked. It is not needed in a single-process system because the single process is never suspended.

Is the Process Table Needed in Personal Computer Systems With Only One Process?

No, it is not needed in a single-process system because the single process is never suspended.... Continue reading "Understanding Operating Systems: Traps, Interrupts, System Calls, and Threads" »

Thread Synchronization, Priority Inversion, and CPU Efficiency

Classified in Computers

Written on in English with a size of 2.18 KB

Can the Priority Inversion Problem Happen with User-Level Threads?

The priority inversion problem occurs when a low-priority process is in its critical region and suddenly a high-priority process becomes ready and is scheduled. With user-level threads, it cannot happen that a low-priority thread is suddenly preempted to allow a high-priority thread to run. There is no preemption. With kernel-level threads, this problem can arise.

Does Round-Robin Scheduling Resolve Priority Inversion?

Round-robin scheduling can resolve the issue. Sooner or later, the low-priority process will run and eventually leave its critical region. With priority scheduling, the low-priority process never gets to run at all; with round-robin, it gets a normal time slice periodically,... Continue reading "Thread Synchronization, Priority Inversion, and CPU Efficiency" »

Understanding Computer Output Devices and Printing Technology

Classified in Computers

Written on in English with a size of 3.64 KB

Output Devices

Dot Matrix Printers

Dot matrix printers are known for their ability to handle continuous forms and harsh environments.

Advantages

  • Can print long jobs.
  • Inexpensive to maintain.
  • Can work in dirty atmospheres.
  • Can print different characters.

Disadvantages

  • Expensive to purchase.
  • Noisy operation.
  • Poor quality printing.

Inkjet Printers

Inkjet printers are made up of a print head, ink cartridge, motor, and paper feed mechanism.

General Printer Operation

The following steps describe how a typical printer processes a job:

  1. Data is sent to the printer driver via USB.
  2. The data is converted into a form the printer understands.
  3. The system checks whether the job is able to be printed.
  4. The printer receives data in the printer buffer (temporary memory), allowing
... Continue reading "Understanding Computer Output Devices and Printing Technology" »