All questions
- Explain the following terms a) Multiprocessing b) Degree of multiprogramming Process is a program under execution which competes for the CPU time and other resources generally program exist on disk or a paper it is co... 2
- what is VDU ? Explain the following terms . a) Dumb terminal b) Intelligent terminal Terminal hardware can be divided into two parts the keyboard which is used to for input medium and video screen which is useful as an output... 1
- Draw the tree structure for the following expression : [a+(b-c)]*[(d-e)/(f+g-h)] The root is *; its left subtree is a + (b − c) and its right subtree is (d − e) / ((f + g) − h). * / \ + / / \ / \ a - - - / \ / \ / \ b c d... 1
- explain any 8 characteristics of virtual function std 12th In C++, a virtual function is a member function of a class that is declared as virtual in its base class and is overridden in its derived cl... 1
- Implement a class average . Include a constructor in it which will accept value of three variables from user #include <iostream> using namespace std; class Average { private: int num1, num2, num3; float avg; public: // Constructor to accept three va... 2
- Write program in C++ to display first 20 terms of Fibonacci Series Code : #include<iostream.h> #include<conio.h> void main() { int n1,n2,n,i; clrscr(); n1=0; n2=1; cout<<"Fibonacci series :"<<endl; cout<<n1<... 1
- Write a program in VB (Visual Basic) to find the sum of first 100 numbers entered using DO Loop Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim sum, n As Integer Do n += 1... 1
- Write a function in C++ that exchanges data using swap function to interchange the given two numbers . This is a practical question so will try to understand the concept , the question said us to use swap function This code is error free might... 1
- Write a Program for Binary search and Bubble sort programs Binary : #include <iostream> using namespace std; int binary_search(int arr[], int low, int high, int x) { if (high >= low) { int mid = low... 1
- Write a C++ program to accept a number and test whether it is a Prime number. In question it is mentioned that we are going to take input hence we will use cin variable after that we have to check the entered number is... 1
- Write the key features of the Python programming language what are comment How can you add Key features of python (https://doubtly.in/9633/what-key-features-list-python-class-12) How can you add comment !! To write a comment in Pyt... 2
- What is the main problem in pivot function with the earlier versions of Python how can it be resolved?
- What are the key features of a list in Python Class 12? Answer: A Python list is an ordered, mutable sequence that can hold items of any type, written inside square brackets. Key features of a lis... 1
- If A and B are two events such that A ⊂ B and P(B) ≠ 0, then which of the following is true? A ⊂ B ⇒ A ∩ B = A ⇒ P(A ∩ B) = P(A) ∴ P(A/B) = P(A∩B)/P(B) = P(A)/P(B) But P(B) ≤ 1 ⇒ P(A/B) ≥ P(A). 1
- A box of oranges is inspected by examining three randomly selected oranges drawn without replacement. Box contains 12 good and 3 bad oranges. If three oranges selected are good ones, the box is approved for sale. 3 good oranges may be selecte... 1
- A fair coin and an unbiased dice are tossed. Let A be the event ‘head appears on the coin’ and B be the event 3 on dice When a coin is thrown, head or tail will occur. ∴ Probability of getting head P(A) = 1/2 . when a dice is tossed 1, 2, 3, 4, 5, 6 one of the... 1
- A dice, marked 1, 2, 3 in red and 4, 5, 6 in green is tossed. Let A be the event ‘number is even’ Even numbers on dice are 2, 4, 6. ∴ Probability of getting an even number = P(A) = 3/6 = 1/2 . There are two colours on the dice viz. red an... 1
- A dice is tossed thrice. Find the probability of getting an odd number at least once? If a dice is thrown and an odd number occurs, then it may result in 1, 3, 5. ∴ The probability of getting an odd number in a throw of a dice... 1
- Problem of solving specific problem independently by A and B are \(\frac{1}{2}\) and \(\frac{1}{3}\) respectively. Probability that A solves the problem = 1/2 ⇒ Probability that A does not solve the problem P( A ) = 1 – 1/2 = 1/2 . Probability that B solv... 1
- In a hostel, 60% of the students read Hindi newspaper, 40% read English newspaper and 20% read both Hindi (a) Let A be the event that a student reads Hindi newspaper, and B be the event that a student reads English newspaper. We are asked to find... 1
- The probability of obtaining an even prime number on each die, when a pair of dice is rolled is There are only one even prime number, i.e., 2, when a dice is rolled, the probability of getting an even prime number = 1/6 . When two dice... 1
- Two events A and B are said to be independent, if (A) A and B are mutually exclusive. (B) P(A’B’) (B) P(A’B’) = [1 – P(A)] [1 – P(B)] Two events are independent, if P(A ∩ B) = P(A) × P(B) or P(A’ ∩ B’) = P(A’) P(B’) = [1 – P(A)][1 – P(B)] 1
- Given that two numbers appearing on throwing two dice are different. Find the probability of the event When the numbers appearing on throwing two dice are different. ⇒ The numbers are not the same Total number of exhaustive cases = 36 Number o... 1
- Consider the experiment of throwing a dice, ‘if a multiple of 3 comes up, throw the dice again and if any other number The outcomes of the given experiment can be represented by the following tree diagram. The sample space of the experiment is, S=(1,H),(1,T),... 1