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

Sort by
Subject
Level

Vulnerabilities in Von Neumann Architecture and Security Threats Explained

Classified in Computers

Written on in English with a size of 3.57 KB

Vulnerabilities in Von Neumann Architecture

The system architect of the von Neumann is the way that it can allow direct memory access to the low level languages like C and C++.

If the program goes and tries to access the memory out of bound by allocating code injection to the system, it allows the system to access the memory out of the stack which causes buffer overflow and the attacker can access the other memory from the allocated stack. This way an attacker can get access to the system. Therefore von Neumann architecture is vulnerable to code injection, the effect of the buffer overflow.

Understanding Threats and Attacks

Threats

  • It is a potential security violation that might exploit vulnerability of the system or assets.
  • Threats can be accidental,
... Continue reading "Vulnerabilities in Von Neumann Architecture and Security Threats Explained" »

Java Programming Examples

Classified in Computers

Written on in English with a size of 1.18 KB

Transpose of a Matrix

This code demonstrates how to find the transpose of a matrix in Java.

Sorting Algorithm

This code implements a simple sorting algorithm to arrange elements in ascending order.

Complex Number Operations

This code shows how to perform operations on complex numbers in Java, such as addition.

Static Members

This code explains the concept of static members in Java and how to use them.

Function Overloading

This code demonstrates function overloading in Java, where multiple functions can have the same name but different parameters.

Derived Class and Inheritance

This code illustrates the concept of inheritance in Java, where a derived class inherits properties and methods from a base class.

Multilevel Inheritance

This code demonstrates multilevel... Continue reading "Java Programming Examples" »

Comprehensive C++ Programming and Data Structures Reference

Classified in Computers

Written on in English with a size of 8.72 KB

C++ Fundamentals

Let's learn about basic C++

C++ Data Types - GeeksforGeeks

Source: GeeksforGeeks

Loops in C++

For Loop

#include <iostream>
using namespace std;
int main() {
    for(int i = 1; i <= 5; i++) {
        cout << "Good morning \n";
    }
    return 0;
}

Loops in C++ 1

While Loop

#include <iostream>
using namespace std;
int main() {
    int i = 0; // Initialization
    while(i < 5) { // Test expression
        cout << "Good morning\n";
        i++; // Update expression
    }
    return 0;
}

Loops in C++ 1

Do-While Loop

#include <iostream>
using namespace std;
int main() {
    int i = 2; // Initialization
    do {
        cout << "Good morning\n";
        i++; // Update expression
    } while(i < 1); // Test expression
    return 0;
}

Output 2

C++ Interview Questions

1.

... Continue reading "Comprehensive C++ Programming and Data Structures Reference" »

JavaScript Cheat Sheet: Arrays, Functions, Objects & More

Classified in Computers

Written on in English with a size of 4.2 KB

JavaScript Cheat Sheet

JavaScript Arrays

var cars = ["Mercedes", "Tesla","Volvo"];

  • pop(): Removes the last element of an array.
  • push(): Adds a new element at the end of an array.
  • concat(): Joins various arrays into a single array.
  • reverse(): Reverses the order of elements in an array.
  • indexOf(): Returns the first index of a given element in an array.
  • lastIndexOf(): Returns the last index of a given element in an array.
  • join(): Combines elements of an array into a single string.
  • sort(): Sorts array elements based on a condition.

Global Functions

These functions are built-in to every browser that runs JavaScript:

  • parseFloat(): Parses the argument and returns a floating-point number.
  • parseInt(): Parses the argument and returns an integer.
  • Number(): Returns a
... Continue reading "JavaScript Cheat Sheet: Arrays, Functions, Objects & More" »

Computer Hardware and Software Components

Classified in Computers

Written on in English with a size of 3.85 KB

Computer Hardware and Software Components

Computer hardware is the collection of physical elements that constitutes a computer system. It refers to the physical parts or components of a computer, such as the monitor, mouse, keyboard, etc. All of these are physical objects that can be touched. In contrast, software is a set of instructions that can be stored and run by hardware. Software is any set of machine-readable instructions that directs a computer's processor to perform specific operations. A combination of hardware and software forms a usable computing system.

Operating System (OS)

An operating system (OS) is a collection of software that manages computer hardware resources and provides common services for computer programs. The operating

... Continue reading "Computer Hardware and Software Components" »

Pentium P5 Pipelining and Control Word Architecture

Classified in Computers

Written on in English with a size of 2.78 KB

Pentium P5 Processor Pipelining Stages

The Pentium processor, specifically the Pentium Classic (P5) architecture, featured a five-stage pipeline. The five stages of pipelining in the Pentium processor are as follows:

  1. Instruction Fetch (IF): This stage is responsible for fetching instructions from the memory. The instruction pointer determines the next instruction to be fetched, and the instruction cache is utilized to improve performance by storing frequently accessed instructions.
  2. Instruction Decode (ID): In this stage, the fetched instruction is decoded. The opcode and operands are identified, and any necessary data dependencies or control hazards are resolved.
  3. Execution (EX): The execution stage performs the actual computation or operation specified
... Continue reading "Pentium P5 Pipelining and Control Word Architecture" »

Essential Web and Software Terminology Definitions

Classified in Computers

Written on in English with a size of 3.47 KB

Essential Web and Software Terminology

Web Navigation and Structure

  • External Hyperlink

    A hyperlink that opens a webpage located on a remote computer. External hyperlinks provide the links that tie the Web together and rely on HTML anchor tags.

  • Back Button

    A basic control used across various technologies. In a web browser, a back button allows an end user to navigate to a previously viewed webpage. A back button is also a feature of smartphone software and other consumer-oriented technologies.

  • Navigation Structure

    When using navigation requests, for each BSP application, determine the initial page, the navigation methods, and the target pages in a table with navigation paths.

  • Refresh

    An act or function of updating the display on a screen.

Web Elements

... Continue reading "Essential Web and Software Terminology Definitions" »

Understanding Operating Systems: File, Task, and User Management

Classified in Computers

Written on in English with a size of 2.74 KB

File Management

File management is the system an operating system uses to organize and keep track of data. The operating system stores data in units called files, determines how files are stored, efficiently uses available storage space, creates a record of all file usage, and carries out every task related to files and folders.

File names typically have this structure:

filename.extension

Task and User Management

Task Management

Task management is the part of the operating system that controls the running of one or more programs on a computer simultaneously. Today's widely used operating systems support multitasking, allowing multiple tasks to run concurrently, taking turns using the computer's resources.

User Management

With user management, the operating... Continue reading "Understanding Operating Systems: File, Task, and User Management" »

Digital Certificates, HTTPS, and Spyware Protection Explained

Classified in Computers

Written on in English with a size of 2.2 KB

Understanding Digital Certificates

A digital certificate (or electronic certificate) is a computer file generated by a certification authority that associates identity data with a natural person, organization, or company, confirming their digital identity on the internet.

What Is Code Signing?

Code signing is a method that uses a certificate-based digital signature to sign executables and scripts. This process verifies the author’s identity and ensures the code has not been altered or corrupted since it was signed. This helps users and software determine whether an application can be trusted.

HTTPS and SSL Encryption

HTTPS (Hypertext Transfer Protocol Secure) is an extension of HTTP that utilizes SSL (Secure Sockets Layer) encryption. It creates... Continue reading "Digital Certificates, HTTPS, and Spyware Protection Explained" »

C++ Loops and File Handling: A Deep Dive

Classified in Computers

Written on in English with a size of 4.31 KB

C++ Loops: While, Do-While, and For

While Loop Format

while (condition)
{
    statements(s);
}

How While Loop Works

If the condition is true, the statement(s) are evaluated again. If false, the loop is exited.

While Loop Example

int val = 5;
while (val >= 0)
{
    cout << val << " ";
    val = val - 1;
}

A while loop is a pretest loop (the condition is evaluated before the loop executes).

  • If the condition is initially false, the statement(s) in the body of the loop are never executed.
  • If the condition is initially true, the statement(s) in the body will continue to be executed until the condition becomes false.

The loop must contain code to allow the condition to eventually become false so the loop can be exited. Otherwise, you have... Continue reading "C++ Loops and File Handling: A Deep Dive" »