Sunidhi Bansal has Published 1101 Articles

C++ Program to check if input is an integer or a string

Sunidhi Bansal

Sunidhi Bansal

Updated on 02-Nov-2023 13:08:18

32K+ Views

Given with an input by the user and the task is to check whether the given input is an integer or a string. Integer can be any combination of digits between 0 -9 and string can be any combination excluding 0 – 9. Example Input-: 123 Output-: 123 is an ... Read More

Read/Write Class Objects from/to File in C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 05-Oct-2023 01:10:37

22K+ Views

The iostream standard library has two methods cin, to accept input from standard input stream and cout to print output to the standard output stream. In this article we will learn how to read data from files into class objects and how to write data in class objects to files.Reading ... Read More

System() Function in C/C++

Sunidhi Bansal

Sunidhi Bansal

Updated on 06-Sep-2023 21:57:43

33K+ Views

Given the task is to show the working of system() in C/C++.The system() function is a part of the C/C++ standard library. It is used to pass the commands that can be executed in the command processor or the terminal of the operating system, and finally returns the command after ... Read More

C Program for FCFS Scheduling

Sunidhi Bansal

Sunidhi Bansal

Updated on 02-Sep-2023 13:57:50

42K+ Views

We are given with the n number of processes i.e. P1, P2, P3, ..., Pn and their corresponding burst times. The task is to find the average waiting time and average turnaround time using FCFS CPU Scheduling algorithm.What is Waiting Time and Turnaround Time?Turnaround Time is the time interval between ... Read More

Count odd and even digits in a number in PL/SQL

Sunidhi Bansal

Sunidhi Bansal

Updated on 09-Mar-2023 10:22:23

1K+ Views

We are given a positive integer of digits and the task is to calculate the count of odd and even digits in a number using PL/SQL.PL/SQL is a combination of SQL along with the procedural features of programming languages. It was developed by Oracle Corporation in the early 90's to ... Read More

How are dictionaries implemented in Python?

Sunidhi Bansal

Sunidhi Bansal

Updated on 03-Nov-2022 07:00:33

424 Views

Dictionary in python is just like a map in C++ and Java. The Iike Map dictionary consists of two things: first is key and second is value. Dictionary is dynamic in nature. You can add more keys and values to the dictionary after creating the dictionary and also you can ... Read More

Explain monkey patching in Python?

Sunidhi Bansal

Sunidhi Bansal

Updated on 03-Nov-2022 06:48:01

8K+ Views

Monkey patching is the technique of dynamic modification of a piece of code at the run time. Actually by doing monkey patch we change the behavior of code but without affecting the original source code. History The monkey patch comes from the word guerrilla patch, guerrilla nearly means gorilla which ... Read More

Why does Python sometimes take so long to start on Windows?

Sunidhi Bansal

Sunidhi Bansal

Updated on 03-Nov-2022 06:34:58

1K+ Views

Python is a very popular programming language among the Developers and very easy to understand. Its syntax is also very simple to understand, like JAVA and C. But this popular language has some problems and one of the major problems is that it takes so long to start. There can ... Read More

Array Partition I in Python

Sunidhi Bansal

Sunidhi Bansal

Updated on 03-Nov-2022 06:30:54

1K+ Views

We are given the array, let's say arr[] of 2n integers. We have to make the pair group of the integer elements like(a1, b1), (a2, b2)....(an, bn) which makes the sum of min(ai, bi) for all elements in the array as large as possible. The task is to find the ... Read More

Python Challenges to Develop Your Skills

Sunidhi Bansal

Sunidhi Bansal

Updated on 03-Nov-2022 06:24:16

231 Views

As you know Python is ranked in topmost used programming language. Python programming language is easy to learn and easy to use. If you know the basics of python you can develop some easy projects like the TIC TAC TOE game and also you can enroll in easy python coding ... Read More

1 2 3 4 5 ... 111 Next
Advertisements