Smart Content Search

Find the exact content you need

Search across courses, articles, programs, MCQs, and descriptive questions from your knowledge platform in one clean workspace.

2155

Results Found

100

Current Page

108

Total Pages

Showing 2155 result(s) for your search.

java
Question Result 1984

Design a program in Java to calculate the discount given to a customer on purchasing LED Television. The program also displays the amount paid by the customer after discount. The details are given as:Class name : TelevisionData members: int cost, int discount, int amountMember functions:Accept( ) : to input the cost of TelevisionCalculate( ) : to calculate the discountDisplay( ) : to show the discount and the amount paid after discount

Java Programming Language Java Programming Language Basic Concept of OOP
class Television { int cost; int discount; int amount; void Accept() { /* * Input the cost * of Television */ } void Calculate() { /* * Calculate the discount */ } void Display() { /* * Show the discount and * the amount paid * after discount */ } }
View Details
/question/7245
Question Result 1985

A big UPDATE/DELETE is locking your table and blocking the app — how do you run large batch operations safely in production?

Complete MySQL Database Mastery Course: Beginner to Advanced with Real-World Projects Advanced MySQL & Career Preparation (MySQL Bonus Topic) MySQL Interview Questions
92 A big UPDATE/DELETE is locking your table and blocking the app — how do you batch it safely? Level: Very Hard — A real production emergency; the naive one-shot statement can take down an entire application. Scenario: You need to delete 5 million old rows fr...
View Details
/question/11674
Question Result 1988

An example of using of For-in Loop for array in JavaScript

JavaScript Loop control in Javascript JavaScript For-in Loop
While for...in is typically used for iterating over the properties of an object, it can also be used to iterate over the indices of an array. However, it's important to note that using for...in with arrays has some potential drawbacks and may not behave as exp...
View Details
/question/6687
Question Result 1989

An example of using the for...of loop to iterate over Object:

JavaScript Loop control in Javascript JavaScript For-of Loop
The for...of loop in JavaScript is primarily designed for iterating over iterable objects like arrays or strings. It doesn't work directly with regular objects (objects created with {} syntax). However, you can use the Object.entries() method to get an array o...
View Details
/question/6686
Question Result 1992

Are there any common mistakes I should avoid when learning the JavaScript?

JavaScript Fundamentals of Javascript About Javascript Tutorial
Are there any common mistakes I should avoid when learning the JavaScript? As a expert, I would advise you to avoid the following common mistakes when learning JavaScript: Skipping the basics: It is important to have a strong foundation in the basics of JavaSc...
View Details
/question/1051
Question Result 1995

Can a function return an array in Java?

Java Fundamentals: Building Strong Foundations Array in java Array with Function
Yes, a function can return an array in Java by specifying the array type as the return type. int[] getArray()
View Details
/question/8959
Question Result 1996

Can every class be referred to as a user-defined datatype?

Java Programming Language DataTypes in java Introduction to Data type Java
If the class is written by you (the programmer) → Yes, it is a user-defined datatype. If the class is part of the Java API (like String, ArrayList, Scanner) → No, these are pre-defined datatypes (though still reference/composite types). 👉 In short: Every class...
View Details
/question/8554
Question Result 1998

Can you explain how a web application communicates with a server?

Interview Mastery: The Complete Guide for Candidates and Interviewers BONUS: Brainteasers, Cultural fit, Stress questions Technical interview questions
A web application communicates with a server through a process called client-server architecture. The client, or web application, sends a request to the server via the HTTP protocol. The server then processes the request and sends back a response, also through...
View Details
/question/1033
Question Result 1999

Complete the code below to create an object of Scanner class: Scanner sc = ____ Scanner(__________);

Java Programming Language ICSE Computer Application - Class - X ICSE Computer Application - Class X - 2012 PYQ
To complete the code for creating an object of the Scanner class, you need to import the Scanner class and use the new keyword to instantiate it. Here is the completed code: import java.util.Scanner; Scanner sc = new Scanner(System.in); In this code: import ja...
View Details
/question/7719
Question Result 2000

Define the term Byte code.

Java Programming Language ICSE Computer Application - Class - X ICSE Computer Application - Class X - 2010 PYQ
When a Java program is compiled, it is converted into Byte code. Byte code is an intermediate machine-independent code that is executed by the Java Virtual Machine (JVM). It allows Java programs to be platform-independent, meaning they can be run on any device...
View Details
/question/7648