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" »

Write a program in c to implement a class to represent complex members . Include member function add and multiply two complex no .Overloaded assignment operator=

Classified in Computers

Written on in English with a size of 87.8 KB

C++

LET

LET'S LEARN ABOUT BASIC C++

C++ Data Types - GeeksforGeeks

SOURCE : GEEKS FOR GEEKS

LET'S LEARN ABOUT LOOPS

FOR LOOP

#include <iostream>

usingnamespace std;

intmain(){for(int i =1; i <=5; i++)

{ cout <<" Good morning \n";}

return0;}

Loops in C++ 1

WHILE LOOP

#include <iostream>

usingnamespace std;

intmain()

{int i =0;// initialization expressionwhile(i <5)

// test expression

{ cout <<"Good morning\n"; i++;// update expression}

return0;}

Loops in C++ 1

 DO WHILE

#include <iostream>

usingnamespace std;

intmain(){int i =2;// initialization expressiondo{ cout <<" Good morning\n"; i++;// update expression}

while(i <1);//

test expression

return0;}

Output 2

SOME IMPORTANT C++ INTERVIEW QUESTIONS 

1. What are the different data types present in C++?

The 4 data types in C++ are given below:... Continue reading "Write a program in c to implement a class to represent complex members . Include member function add and multiply two complex no .Overloaded assignment operator=" »

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" »

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" »

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" »

Understanding MapReduce Design Patterns

Classified in Computers

Written on in English with a size of 18.71 KB

MapReduce is a computing paradigm for processing data that resides on hundreds of computers, which has been popularized recently by Google, Hadoop, and many others. The paradigm is extraordinarily powerful, but it does not provide a general solution to what many are calling “big data,” so while it works particularly well on some problems, some are more challenging. This book will teach you what problems are amenable to the MapReduce paradigm, as well as how to use it effectively. At first glance, many people do not realize that MapReduce is more of a framework than a tool. You have to fit your solution into the framework of map and reduce, which in some situations might be challenging. MapReduce is not a feature, but rather a constraint.... Continue reading "Understanding MapReduce Design Patterns" »

Python Programming Basics: Essential Code Snippets

Classified in Computers

Written on in English with a size of 4.07 KB

Python Fundamentals: Practical Code Examples

This document presents a collection of basic Python code snippets, demonstrating fundamental programming concepts such as conditional statements, loops, data input, and list manipulation. Each example is designed to illustrate a specific programming principle, making it ideal for beginners learning Python.

Compare Car Top Speeds with Python

This Python script compares two user-entered car speeds to determine which is faster, showcasing basic input and conditional logic.

car_a = int(input("Please enter the top speed of a Ferrari: "))
car_b = int(input("Please enter the top speed of a Lamborghini: "))

if car_a >= car_b:
    print("The fastest car is a Ferrari.")
elif car_b > car_a:
    print("The
... Continue reading "Python Programming Basics: Essential Code Snippets" »