Category: Uncategorized

What is Machine learning ?

Machine learning is a subfield of artificial intelligence that makes use of statistical models and algorithms to teach computers how to learn from data without being specifically programmed to do so. This is accomplished by presenting the data in a way that is understandable by the computer.

There are five bags each containing identical sets of ten distinct chocolates. One chocolate is picked from each bag.The probability that at least two chocolates are identical is ______

A) 0.3024B) 0.4235C) 0.6976D) 0.8125 Answer: (C) 0.6976 Solution: To find the probability that no two chocolate are identical = P(Y) To find the probability that at least two chocolates are identical = P(x):Formula: P(x) = 1 – P(Y) Calculation No two chocolates identical: From 1st bag = Probability = 10/10 From 2nd bag = Probability = 9/10 From 3rd bag […]

Paging

Paging divides physical memory into equal-sized groupings called “blocks,” which can range from 64 to 4096 words each. ‘Page’ denotes groupings of identical address space, whereas ‘block’ denotes memory space organisation. 

Define a class to declare an integer array of size n and accept the elements into the array.

import java.util.Scanner;class LinearSearch{public static void main(String args[]){int c, n, search, array[];Scanner in = new Scanner(System.in);System.out.println(“Enter number of elements”);n = in.nextlnt();array= new int[n];System.out.println(“Enter those” +n+ “elements”);for (c = 0; c < n; c++)array[c] = in.nextlnt();System.out.println(“Enter value to find”);search = in.nextlnt();for (c = 0; c < n; c++){if (array[c] = search) /Searching element is present/{System.out.println(array[c]);break;}}if (c = […]

EasyExamNotes © 2023