Blog : Online Interview Questions

C Program Examples
C program to find area of triangle given 3 sides
C program to find area of triangle given 3 sides

This Program accepts the three sides of the triangle a, b, c. Then, Calculates the Perimeter of the Triangle. Moreover, calculates the semi perimeter using the formula (a + b + c) / 2 and the Area of a triangle using Heron’s Formula: √(s × (s - a) × (s - b) × (s - c)). After the successful execution of the program the final area of a triangle is shown on screen.

C Program Examples
C Program to Check Whether a Character is Vowel or Consonant
C Program to Check Whether a Character is Vowel or Consonant

In this Program, the if…else statement is used to check whether an alphabet entered by the user is a vowel or a constant. The five letters A, E, I, O and U are called vowels. All other letters except these 5 vowel letters are called consonants. This program assumes that the user will always enter an alphabetic character.

C Program Examples
C Program to Check Whether a Character is an Alphabet or not
C Program to Check Whether a Character is an Alphabet or not

In this Program, the if…else statement is used to check whether a character entered by the user is alphabet or not? The alphabets A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, and Z are called Alphabet. All other characters except these 26 letters are not an Alphabet. If User entered any character rather than 26 Alphabet than a print like # is not an alphabet.

C Program Examples
C Program to Compute Quotient and Remainder
C Program to Compute Quotient and Remainder

This program evaluates and Compute Quotient and Remainder when an integer is divided by another integer. In this program, the user is asked to enter two integers (dividend and divisor) which are stored in variable dividend and divisor respectively. Finally, the quotient and remainder are displayed as output.

C Program Examples
C Program to Find ASCII Value of a Character
C Program to Find ASCII Value of a Character

This program evaluates The ASCII value of inserted character. In this program, the user is asked to enter 'A' character. The character is stored in variable a. When %d format string is used, 65 (the ASCII value of G) is displayed. When %c format string is used, 'A' itself is displayed.

C Program Examples
C Program to Count Number of Digits in an Integer
C Program to Count Number of Digits in an Integer

The internal execution of the program depends upon the entered Integer.After the successful compilation of the program, a message is displayed on the screen as Enter a number in whose digits you want to count.If you entered 436 then again a message displayed as The number of digits in above integer is : 3

C Program Examples
C Program to Find the Frequency of Characters in a String
C Program to Find the Frequency of Characters in a String

As we know that time is the most important concern in our life. To do any task easily, We have to use software to perform it in a simpler manner. Software is a set of programs with related documents. The Software Program or Program is a set of instructions to do a specific task.

C Program Examples
C Program to Concatenate Two Strings
C Program to Concatenate Two Strings

The internal working of this program depends upon the length of the strings.After the successful compilation of the program, a message is displayed on the screen as Enter first string: User Enter Welcome Then, again a message displayed Enter second string: If second time user entered User then the final output is Concatenated string is WelcomeUser.

C Program Examples
C Program to Check Whether a Number is Positive or Negative
C Program to Check Whether a Number is Positive or Negative

The internal execution of the program depends upon the entered Integer.After the successful compilation of the program, a message is displayed on the screen as Enter a number: if user entered 6 then compiler checks that 6 is greater than 0 therefore it is a positive number not negative or 0 therefore, again a message displayed on the screen as You entered a positive number.

C Program Examples
C Program to Find Transpose of a Matrix
C Program to Find Transpose of a Matrix

This Program computes the transpose of the matrix and prints it on the screen as simply interchange the rows and columns of the matrix.

C Program Examples
C program to read a file
C program to read a file

The working mechanism of this source code is similar to above source code. But, it uses the function fopen() to open the file.txt file in reading mode i.e. function is called with “file.txt” and “r” as argument. After the file is opened in reading mode, the content of file.txt is displayed on the screen and file is closed.

Java Tutorials
An Introduction Java Object Oriented Programming Paradigm
An Introduction Java Object Oriented Programming Paradigm

Java object-oriented programming paradigm is far different from C++ and other languages. There was a time when sequential and straightway programming languages like C, Assembly Language, and Basic seemed to be easy to program, and rather difficult to design. Next came the age when Object Oriented Programming rolled over the computers, making it even easier not only in programming but also in designing and arranging data.

Java Tutorials
7 Most favorable Java Frameworks
7 Most favorable  Java Frameworks

ht already know of the sheer amount of Java frameworks available out there. And, a wide range of these frameworks is making it a difficult task to choose the right framework for the application or the project. Before we move ahead to the context of choosing the right Java framework, let us understand why we need a framework for our project. A framework is nothing but a program that allows developing of web applications. The framework’s facets denote the modifiable system and structure that allows easy development of the applications. So, in simple words, the framework reduces the load of writing the whole lengthy and complex alterations to the entire software, and you just need to make specific changes and easily build the application. And, now it's time to head off and knows the best Java Frameworks available in the development industry. Here we will be providing you with a list of 7 best Java frameworks in the web industry. The Java frameworks here are listed based on the favorable and unfavorable factors, to make it easier for you to button on the right one. 1. JavaServer Faces – JSF It is supported by Oracle and comes with complex documentation, and is very in-depth. This framework enables creating web applications in the Java programming language. It is neither easy to use this framework nor is it the fastest. The bonus of using Java Server Faces is its excellent documentation that Oracle has created. This framework plays a vital role in the Enterprise Edition of Java and also if the Integrated Development Environment software is used, it is extremely convenient as it is actually built on those environments. Favorable Factors of Java Server Faces:Developed and supported by Oracle Comes with excellent Documentation and tools Rich libraries Convenient to useUnfavorable Factors of Java Server Faces:Need prior Experience Slightly complex Slow Development processRead Best Java Server Faces Interview Questions 2. Hibernate Hibernate is an ORM framework and not a web framework; and is prominently known for being a high-quality, powerful and ideal option to deal with the access of databases. It is a device for object-relational mapping and is incredibly convenient to use if you are working with multiple databases. Besides speed and compatibility to work with multiple databases, it is also very easy to scale bigger and smaller architectures. It is configurable, modifiable and capable of doing everything a user needs. The only issue with Hibernate is that restarting the framework and resuming the activity is a bit tedious; and if the power goes off, the data can be lost easily. Favorable Factors of Hibernate:Speedy and powerful Scaling is easy Configurable and Modifiable Conversion of data for multiple databases is easy.Unfavorable Factors of Hibernate:Uncertain power off leads to loss of data Slow restartRead Best Hibernate Interview Questions 3. Struts Struts is a free and open source framework, which is used to create aesthetically pleasing and elegant Java applications. This framework is used to build the foundation of the web application and its function. It is less "industry-standard", and is fairly a multifaceted framework that takes a while to get the hang of it. It immediately implements new segments of codes and the new elements you add, which enables fast development and testing. Struts are not very much flexible, which means that you don’t get accustomed to a set of rules regarding the designing and coding of web applications. This framework wants the user to use its own set of rules, and this makes it a big turn-off for most of the people. Favorable Factors Struts Framework:Fast Development Free and Open-source East to test the codeUnfavorable Factors Struts :Not very much flexible Many rules Complex framework not easy to understand.Read Best Struts Interview Questions 4. Vaadin Vaadin is also an open-source framework and is licensed by Apache Software Foundation. This framework is powerful; and very useful and has incredibly worldwide active community, where a user can turn to for guidance. This framework is great for developing the web applications and the architecture is server-side. This means that the user can create interactive, rich and efficient web interfaces that enable developing the applications you want to. Vaadin framework can be extended with Google Web Tools as well as with the Ajax. Apart from the UI, in no time the user can also build different varieties of cool web applications. Java and JavaScript code can easily become convoluted and incredibly large. Favorable Factors of Vaadin:Supported by Apache Excellent documentation Uses Server-side programming Supports on the forums Many different Plug-Ins Enables creating rich and interactive web interfaces. Use GWT and AjaxUnfavorable Factors of Vaadin:The code can become easily lengthy and complex.Read Best Vaadin Interview Questions 5. Google Web Toolkit - GWT GWT directly comes from everyone’s favorite search engine, the Google. It is an open source framework that enables easy development and modifying of front-end applications, no matter how complex the applications are. Since it is developed by Google, it has a lot of support, documentation, and things are well-developed, and the execution is thoroughly done. GWT is used to develop the front-end applications and also in creating responsive web applications that load on both the server-side and client-side systems. GWT allows integration of multi-functionality effortlessly. There have emerged so many new versions that are distinct to each other. Some may acquire the GWT essential tools the user needs, while other may lack those. Favorable Factors of GWT:Accessible Easy-to-use Excellent support and documentation Develops responsive applications Balances the load on Client-side and server-side systemsUnfavorable Factors of GWT:Compiling is tedious New versions constantly emerge.Read Best GWT Interview Questions 6. Vert.X Vert.X is a framework with broad capabilities, and supports a lot of languages, but is primarily optimized for Java. It has various different components and each is modular that allows using things to write the web application. It is a library and not the container, which means that the user can apply other tools and components from other libraries to create the web application. Aside from its flexibility and functionality, the fact that the user can easily set up the framework and use the libraries and components makes this framework the most preferred one. This framework runs on the Java Virtual Machine – JVM that enables the user to test the code and scale with ease. It can be a little difficult to scale one specific piece of limited hardware to the larger one, but scalability is one of the strengths of Vert.X Favorable Factors of Vert.X :Supports many languages Easy to set up High Modular Allows using any libraryUnfavorable Factors:Scaling larger systems is difficult7. Apache Wicket Due to extreme support from the Apache foundation, the "Wicket" framework is known as "Apache Wicket". A lightweight framework developed to build simple yet elegant applications in component-based languages, which is responsive and useful. The framework’s open source, server-side and all the code scripted in java makes things like scripting and alteration easier. Integration with HTML is easy and testing of the applications is powerful and convenient. Favorable Factors of Apache Wicket:Maintaining code is easy It supports Java and HTML Builds simple yet elegant pages and applications Testing of the specific components of the code.Unfavorable Factors of Apache Wicket:Understanding the framework takes time. Convoluted Development process.Wrapping Up The choice of the framework depends upon the type of application and the size of the application you are working on. It is necessary to understand that all the frameworks are designed with an ultimate goal of raising the performance and standard of the application and differs only in the scaling size. So, analyze the type and size of application you are working on and then choose the framework that makes it efficient....

Java Tutorials
Java 11 features and Updates 2018
Java 11 features and Updates 2018

Java 11 features and Updates: Check what new in Java 11. Java 11 is scheduled for release in September 2018 with many additional features and four JDK enhancement proposals or JEPs have been officially targeted at Java 11 and the following versions. Java 10 sports JEP 296, which is for consolidating the JDK forest into a single repository, and JEP 304, which is a garbage collector interface. In other words, JEP 296 is meant for purely housekeeping and JEP 304 is meant for making the production of JDK builds that contains, or excludes a specific GC algorithm easier for vendors.

ReactJS Tutorials
Smooth Scrolling in React Js - Step By Step Guide
Smooth Scrolling in React Js - Step By Step Guide

In this tutorial, we are going to see how to implement Smooth Scrolling in React Js. Smooth scrolling is used to scroll to a div or section of page smoothly mot instantly. Here we are going to use react-scroll package on NPM to implement it.

Write For Us.

Contribute the Community.