Computer Science Questions and Answers

Recent Questions :: Computer Science

5004 QuestionsPage 5 of 501.

Create a Class Using Constructor and Destructor

Create a class Clock with a data member time and member function tick() to increment time and constant function gettime() to share the time with other objects. Use constructor and destructor.

Asked by: Ishika Mittal on Oct 11, 2019.

Create a Class Rectangle with Attributes Length and Width

Create a class Rectangle with attributes length and width. This class stores only the Cartesian coordinates of the four corners of the rectangle. The set() function accepts four sets of coordinates and verifies that each of
these is in the first quadrant with no single x or y coordinate larger than 20.0 provide member function that calculates the length(), width(), perimeter() and area() of the rectangle.

Asked by: Ishika Mittal on Oct 11, 2019.

Create a Class Rational for Performing Arithmetic

Create a class Rational for performing arithmetic with fractions. The class has two private members numerator and denominator. The public member functions are supposed to add() subtract(), multiply(), divide() and print() the rational number. The value of numerator and denominator is passed by the user.

Asked by: Ishika Mittal on Oct 11, 2019.

Write a function to Display the Larger Value

Write a function that takes two Distance(structure) value as argument and returns the larger one. Include a main() program that accepts two Distance values from the user, compares them, and display the larger.

Asked by: Ishika Mittal on Oct 11, 2019.

System Call Used to Create a New Process in a Unix OS

In Unix like OS a new process is created by which system call is used?

Asked by: Amar on Sep 19, 2019.  Answers (1)

Boot Time Taken for the Instance Store Backed AMI

What is boot time taken for the instance stored backed AMI?

Asked by: Priya on Sep 19, 2019.

Elastic IPs to create Amazon Web Service

How many Elastic IPs is allows you to create by AWS(Amazon Web Service)?

Asked by: Priya on Sep 19, 2019.

Common Boundary Between Two Computer Systems

A common boundary between two computer systems is known as
(a) Intradiction
(b) Surface
(c) Interface

Asked by: Priya on Sep 19, 2019.

Write a C Program that Enters a 10- Digit Telephone Number

Write a C program that enters a 10- digit telephone number ( the first three digits refer to the area code, the next three digits refer to the exchange code, and the remaining four digits refer to number), prints the parts of the number and complete telephone number and addition of area code and exchange code in the following format.

Sample Input:

Sample Output:
The area code is: 123
Exchange code is: 456
Number is: 7890
The complete telephone number is:(123)456-7890
Addition of area code and exchange code is: 579

Asked by: Gopi Krishna on Aug 30, 2019.

Write a Program and Find the Combination of the Value

Given a valid 24 hour format time find the combination of the value and write a program do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58.

Asked by: Sai Bommu on Aug 23, 2019.

Sponsored Links

Current Affairs

Quick Links