Mahesh Parahar has Published 253 Articles

Difference between sum of the squares of and square of sum first n natural numbers.

Mahesh Parahar

Mahesh Parahar

Updated on 16-May-2020 14:45:24

727 Views

Problem StatementWith a given number n, write a program to find the difference between sum of the squares of and square of sum first n natural numbers.Examplen = 3 Squares of first three numbers = 3x3 + 2x2 + 1x1 = 9 + 4 + 1 = 14 Squares ... Read More

Explain difference between Strong Entity and Weak Entity

Mahesh Parahar

Mahesh Parahar

Updated on 16-May-2020 14:36:04

14K+ Views

Strong EntityStrong Entity is independent to any other entity in the schema. A strong entity always have a primary key. In ER diagram, a strong entity is represented by rectangle. Relationship between two strong entities is represented by a diamond. A set of strong entities is known as strong entity ... Read More

Difference between Static SQL and Dynamic SQL

Mahesh Parahar

Mahesh Parahar

Updated on 16-May-2020 14:18:51

23K+ Views

Static SQLStatic SQL refers to those SQL statements which are fixed and can be hard coded into the application. As static sqls are fixed queries, these statements can be analysed and optimized and do not require any specific handling for security purpose.Dynamic SQLDynamic SQL refers to those SQL statements which ... Read More

Difference between out and ref keyword in C#

Mahesh Parahar

Mahesh Parahar

Updated on 16-May-2020 14:16:00

16K+ Views

out keywordout keyword is used to pass arguments to method as a reference type and is primary used when a method has to return multiple values. ref keyword is also used to pass arguments to method as reference type and is used when existing variable is to be modified in ... Read More

Difference between readonly and const keyword in C#

Mahesh Parahar

Mahesh Parahar

Updated on 16-May-2020 14:14:55

11K+ Views

readonly keywordreadonly keyword is used to define a variable which can be assigned once after declaration either during declaration or in constructor. const keyword is used to define a constant to be used in the program. Following is the valid usage of a readonly and const keywords in C#.Example Live Demousing ... Read More

Difference between Relational Algebra and Relational Calculus

Mahesh Parahar

Mahesh Parahar

Updated on 16-May-2020 14:13:49

16K+ Views

Relational AlgebraRelational algebra is a procedural query language, which takes instances of relations as input and yields instances of relations as output. It uses operators to perform queries. An operator can be either unary or binary. They accept relations as their input and yield relations as their output. Relational algebra ... Read More

Differences between Data paths.

Mahesh Parahar

Mahesh Parahar

Updated on 16-May-2020 11:35:42

1K+ Views

Data PathsCPU has two sections, data section and control section. Data section is also called data paths. Registers, ALU and interconnection bus collectively constitutes a data path. Data paths are of three types:Single CycleMultiple CyclePipelineFollowing are some of the important differences between Single Cycle, Multiple Cycle and Pipeline data paths.Sr. ... Read More

Difference between Traits and Abstract Classes in Scala.

Mahesh Parahar

Mahesh Parahar

Updated on 16-May-2020 11:33:34

1K+ Views

TraitsTraits are similar to interfaces in Java and are created using trait keyword.Abstract ClassAbstract Class is similar to abstract classes in Java and are created using abstract keyword.Example Live DemoFollowing is the program in Scala to show the usage of Traits and Abstract Classes.trait SampleTrait {    // Abstract method   ... Read More

Difference between the largest and the smallest primes in an array in Java

Mahesh Parahar

Mahesh Parahar

Updated on 16-May-2020 11:29:51

759 Views

Problem StatementWith a given array of integers where all elements are less than 1000000. Find the difference between the largest and the smallest primes in an array.ExampleArray: [ 1, 2, 3, 4, 5 ] Largest Prime Number = 5 Smallest Prime Number = 2 Difference = 5 - ... Read More

Difference between Fedora and CentOS

Mahesh Parahar

Mahesh Parahar

Updated on 16-Apr-2020 06:51:18

147 Views

FedoraFedora is Linux based and open-source operating system intended for developers and system administrators. It is supported by a huge Red Hat Community. It was introduced in Sep 2003. Initially, it was also known as Fedore Core. Fedora OS uses IPSec to connect to remote machines or networks. It uses ... Read More

Previous 1 ... 7 8 9 10 11 ... 26 Next
Advertisements