Computerscience
- What is virus state the various types of virus and the basis in which they are classified A computer virus is a type of malicious software that can replicate itself and spread to other computers or files, often with the intent of... 1
- logic of the program? Input: Receive a sorted array arr of 10 elements and a number num to be searched. Initialize: Set first to 0 (the index of the first element... 1
- practical session(class hierarchy & virtual function) class hierarchy: #include<iostream> #include <string> using namespace std; class Student protected: int rollno; public: void setno (int); vo... 1
- Practical session(constructor & operator overloading) Constructor and Operator Overloading for a Simple Class: #include <iostream> class ComplexNumber { private: double real; double imaginary; p... 1
- Practical session(binary, ratio/reciprocal, circle area & circumference) I'd be happy to help you with practical sessions on binary operations, ratios and reciprocals, and circle area and circumference. Let's go t... 2
- Write a program of swap using function (C++) #include <iostream> using namespace std; void swap(int& x, int& y) { int temp = x; x = y; y = temp; } int main() { int a = 10; int b = 20; c... 1
- Explain in short the general structure of HTML Web page A basic HTML web page consists of several parts: Document Type Declaration: This is the first line of an HTML document that specifies the ty... 1
- Which are three major areas in which operating system divides it service give example The three major areas in which an operating system provides services are: Process Management: This involves managing the creation, schedulin... 2
- Construct an expression tree for the expression a +( bc )* d +( e * f) Answer: Taking "bc" as b × c, the expression is big(a + ((b*c)*d)big) + (e*f), so the root is the last + and the tree is: + / \ + * / \ / \... 1
- 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
- Graphical user interface A GUI (graphical user interface) is a system of interactive visual components for computer software. A GUI displays objects that convey info... 1
- Terminal does no processing on input character Correct option is b) Dumb Dumb terminal does no processing on input characters . 1
- With reference to process management explain the terms a)external priority In process management, external priority refers to the priority of a process that is set by an external entity, such as the operating system... 2
- Explain running,ready and blocked process states in process management In process management, the running, ready, and blocked states are the three primary states that a process can be in. Here is an explanation... 1
- Write a c++program to find area of circle? #include <iostream> int main() { float radius, area; std::cout << "Enter the radius of circle : "; std::cin >> radius; area = 3.14 * radius... 1