Skip to content

Instantly share code, notes, and snippets.

View hasinur1997's full-sized avatar
🎯
Focusing

Hasinur Rahman hasinur1997

🎯
Focusing
  • rtCamp
  • India
View GitHub Profile

FORMAT: 1A HOST: http://polls.apiblueprint.org/

Apiary Document

Polls is a simple API allowing consumers to view polls and vote in them.

Create menu item

## User [/user]

Question No 2(b)

Find the output of following program

public class Test {
    public static void main(String args[]){
        double d = 100.04;
        long l = (long)d;
        int i = (int)l;
 

Department

  1. Delete department ( Eloquent Database.php\266 ) SQL Syntax Error

Designation

  1. To create designation, have to send title parameter
  2. Update designation Notice: Object of class WP_Error could not be converted to int in D:\server\htdocs\wp-erp\wp-content\plugins\wp-erp\modules\hrm\includes\api\class-designations-controller.php on line 171

Employee

  1. Create Bulk Employee `(

Notes for operating system ( Md. Hasinur Rahman )

Swapping

Swapping is a mechanism in which a process can be swapped temporarily out of main memory (or move) to secondary storage (disk) and make that memory available to other processes.

Process

A process is basically a program in execution. The execution of a process must progress in a sequential fashion.

Scheduling

The act of determining which process is in the ready state, and should be moved to the running state is known as Process Scheduling.

Answer to question no 1.(b)

public class A {

  public static void method(int x){
    System.out.println("x = " + x);
  }
}

Optimal page replacement algorithm

#include<stdio.h>

int main() {
	
	int frames[100], 
	page_table[10], 
	temp[10], 

LRU (Least Recent Used) page replacement algorithm

#include<stdio.h>

int findLRU(int temp[], int n){
	int i, pos = 0, minimum = temp[0];
	
	for(i = 1; i<n; i++){
		if(temp[i] < minimum){

Data signal

Data signal is a method of how information is transferred. usually it is transferred in binary code in signals or pulses and may be contained in a packet.

Composite signal

A composite signal is a mux or a bus signal. These can be thought of as a collection of other component signals.

Assembly program for fibonacci series

proc getFibo
        mov al,f1
        mov bl,f2

    ;mov cl,count
    ;cmp cl,num
    ;je exitFibo

OOP

What is OOP(Object Oriented Programming) ?

Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which may contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods.

Object

Objects are basic run-time entities in an object oriented system, objects are instances of a class these are defined user defined data types.

Example: