Doubtly
@Doubtly · Joined Feb 2021
- Answers
- 3,792
- Questions
- 4,033
- Upvotes received
- 424
- What is Rayleigh’s criterion of resolution? Define resolving power of grating? According to the Rayleigh’s criterion, two closely spaced point sources of light are said to be just resolved by an optical instrument only... 2
- Why the Newton’s rings are circular and centre of interference pattern (reflected) is dark? In both air-wedge film and newton’s ring experiments, each fringe is the locus of points of equal thickness of the film. In newton’s ring ex... 2
- Create table student with required attribute and perform following query: To create the STUDENT table with the required attributes: CREATE TABLE STUDENT ( S_ID INT PRIMARY KEY, S_NAME VARCHAR(50) NOT NULL, S_EMAIL... 1
- Write SQL queries for given Database , Find total number of people who owned cars that involved in accident 2004 1. To find the total number of people who owned cars that were involved in accidents in 2004, we can join the tables Owns, Car, and Accident... 1
- Write SQL queries for given Database , Modify database so ‘jack’ is now live in ‘mumbai’ To modify the database so that 'jack' is now living in 'mumbai', you can use the following SQL query: UPDATE Employeee SET city = 'mumbai' W... 1
- Write SQL queries for given Database , Find name of employee having first letter ‘S’ in their names 1. To find the name of employees having the first letter 'S' in their names, we can use the following SQL query: SELECT empname FROM Employe... 1
- Write a program to implement Disk Scheduling algorithms like FCFS, SCAN and C- SCAN. FCFS Disk Scheduling Algorithm: #include<stdio.h> #include<stdlib.h> int main() int queue[20], n, head, i, seek = 0; float avg; printf("Ente... 2
- Write a program to implement various page replacement policies #include<stdio.h> int main() int frames[100], pages[100], n, m, i, j, k, flag, fault = 0; printf("Enter number of frames : "); scanf("%d",&n... 2
- Write a program to implement dynamic partitioning placement algorithms i.e Best Fit, First – Fit and Worst –Fit. #include<stdio.h> int main() int i, j, n, m, bsize[100], psize[100], bstatus[100], pstatus[100], fit, flag; printf("Enter number of memory b... 2
- Write a program to demonstrate the concept of deadlock avoidance through Banker’s Algorithm #include<stdio.h> int main() int n , m , i , j , k; n = 5; m = 3; int alloc[ 5 ] [ 3 ] = 0 , 1 , 0 , 2 , 0 , 0 , 3 , 0 , 2 , 2 , 1 , 1 , 0 ,... 1
- Program to simulate producer and consumer problem using semaphores #include<stdio.h> #include<stdlib.h> #include<stdbool.h> #define BUFFER_SIZE 3 int buffer[BUFFER_SIZE]; int in = 0, out = 0; bool isBufferEm... 2
- Write a program to implement CPU Scheduling algorithms like FCFS & SJF FCFS #include <stdio.h> int main() int n, i; float avg_waiting_time = 0, avg_turnaround_time = 0; printf("Enter the number of processes: ");... 2
- Er diagraam sql queries SQL Queries SQL (Structured Query Language) is a standard language used to manage and manipulate relational databases. Here are some example... 1
- Explain the general procedure of divide and conquer method The Divide and Conquer method is the most widely applicable technique for designing efficient algorithms. It works in three stages, as shown... 1
- Write the difference between greedy method and dynamic programming Greedy method Dynamic programming Does not guarantee an optimal solution Guarantees an optimal solution Assumes sub-problems do not overlap... 1
- What are different math operators used in Python? Describe all different types of math operators used in Python. Different operators used in Python are: Arithmetic 1. Addition: Used to add to values. for eg: x+y or 3+5 = 8 2. Subtraction: Used to substr... 2
- Write a Python Program to Solve Quadratic Equation import cmath a = 1 b = 5 c = 6 # calculate the discriminant d = (b**2) - (4*a*c) # find two solutions sol1 = (-b-cmath.sqrt(d))/(2*a) sol2 =... 1
- Write a Python Program to Find the Square Root num = float(input('Enter a number: ')) num_sqrt = num ** 0.5 print('The square root of %0.3f is %0.3f'%(num ,num_sqrt)) 1