Category: Q&A
What is a stream manipulator ? Explain the use of setw( ) and setprecision( ) as stream manipulator.
In C++, streams are used for input and output operations, and stream manipulators are tools that modify the behavior of streams. They are used to control the formatting of…
Read MoreWhat is message passing? Demonstrate the utility of message passing with the help of an example code in C++.
BACHELOR OR COMPUTER APPLIATIONS (BCA) (REVISED)Term-End ExaminationJune, 2020BCS-031 : PROGRAMMING IN C++ Message passing is a communication mechanism used in various programming paradigms, such as object-oriented programming and concurrent…
Read MoreProgram in C++ to add two 3 x. 3 matrices.
Write a program in C++ to add two 3 x. 3 matrices. Define proper class, constructor, destructor and methods in the program. BACHELOR OR COMPUTER APPLIATIONS (BCA) (REVISED)Term-End ExaminationJune,…
Read MoreWrite linear/sequential search algorithm and calculate time and space complexity on it.
Course: M.C.A. (REVISED) B.C.A. (REVISED)Term-End ExaminationYear: June, 2020Subject: MCS-021 : DATA AND FILE STRUCTURES Below is a simple implementation of the linear/sequential search algorithm in Python, along with an…
Read MoreWhat is the area of equilateral triangle?
The area of an equilateral triangle can be calculated using the below formula: Area of equilateral triangle formula Area = (√3/4) * (side length)^2 where “side length” is the…
Read MoreWhat is the circumference of a circle formula?
The formula for circumference of a circle C = 2πr Where: The circumference of a circle is the distance around the edge of the circle. It is equal to…
Read MoreWhat is the area of isosceles triangle formula?
Area of an isosceles triangle formula A = (1/2) × b × h In an isosceles triangle, the base is equal to the length of each of the equal…
Read MoreWhat is the formula of sin2x?
The formula for sin(2x) sin(2x) = 2 sin(x) cos(x) Where The formula expresses the sine of 2x in terms of the sine and cosine of x. The formula can…
Read MoreWhat is the formula of derivatives?
The formula for derivatives The formula for the derivative of a function is given by the limit of the difference quotient: f'(x) = lim h -> 0 (f(x +…
Read MoreWhat is the moment of inertia formula?
Formula for moment of inertia Moment of inertia is a measure of an object’s resistance to rotational motion around a given axis. The formula for the moment of inertia…
Read More