Built-in Functions Supported by Dictionary View Objects

Govind
Updated on 25-Aug-2022 11:38:58

536 Views

The dictionary view objects include dict.keys(), dict.values(), dict.items(). They are used to obtain the dynamic view of the dictionary elements in python. These objects reflect the changes made to the dictionary. To retrieve some data or perform various operations on these view objects, there are 5 build-in functions in python that are supported. They are as follows − len(obj) iter(obj) reversed(obj) sorted(obj) ist(obj) We will discuss about all the functions mentioned above in this article. The len(obj) method The len(obj) method takes a view object as a parameter and returns the number of items in the dictionary. Example ... Read More

Broken User Authentication

Govind
Updated on 25-Aug-2022 10:27:28

504 Views

What is broken user authentication? Poor implementation of API authentication allows attackers to predict other user’s identities. In more general terms, broken user authentication occurs when an API having an authentication system but does not in working, or that the implemented authentication system fails in some cases, allowing attackers to project himself as an authenticated user. The weaknesses present in the system, mentioned above, will be divided into two different groups, namely poor credential management and poor session management. A. Poor credential management Victim credentials can be collected to gain access to the system. There are various ways that the ... Read More

Broken Object Level Authorization

Govind
Updated on 25-Aug-2022 10:24:46

541 Views

What is Broken Object-Level Authorization? Broken object-level authorizations (BOLA) is also known as insecure direct object reference (IDOR). This issue occurs when the server does not properly verify if the currently authorized user or an unauthorized user is accessing data to read, update or delete an object to which they are not having the rights. Types of Broken Object Level Authorization (BOLA Mainly there are 2 types of BOLA. Those can be carried out if a userID is passed on to the server or an objectID, we will look into both. Based on User ID If a userID is passing ... Read More

Types of Application Programming Interface (API) and Their Security Vulnerabilities

Govind
Updated on 25-Aug-2022 10:21:15

1K+ Views

What Is Application Programming Interface. API is the acronym for Application Programming Interface, API is a set of defined rules that explain how computers or applications communicate with one another. APIs implemented between application and web server, acting as an intermediary layer that processes data transfer between systems. Types of API’s They are four main types of API’s Open APIs− Open-source application programming interfaces Also known as Public API, there are no restrictions to access these types of APIs because they are publicly available. Open APIs can been can been access by any developer. Partner APIs− This API exposed ... Read More

Anonymous Object in Java

Janani Jaganathan
Updated on 25-Aug-2022 10:00:49

15K+ Views

Anonymous object in Java means creating an object without any reference variable. Generally, when creating an object in Java, you need to assign a name to the object. But the anonymous object in Java allows you to create an object without any name assigned to that object. So, if you want to create only one object in a class, then the anonymous object would be a good approach. Reading this article, you will learn what an anonymous object is and how to create and use anonymous objects in Java. Let's get started! Anonymous Object in Java Anonymous means Nameless. An ... Read More

Top Resources for Java Interview Questions

Janani Jaganathan
Updated on 25-Aug-2022 09:06:56

434 Views

Are you a fresher or final-year graduate looking to start your career as a Java developer? Have you already landed as a java developer and are looking to prepare for the next company? If you say "Yes" to any of these questions, then you are at the right place. In this article, you will come across the top resources and websites that will help you to prepare and do well in java programming interviews. The list includes popular online platforms and websites like Tutorialspoint, StackOverflow, DZone, etc., where you can learn frequently asked java questions in top companies' interviews and ... Read More

Different Methods to Append a Single Character to a String or Char Array in Java

Janani Jaganathan
Updated on 25-Aug-2022 09:06:21

880 Views

Have you ever faced the situation of extending a string or char array? If you haven't yet, you might probably encounter this situation in the future. It is a common practice to append a single character to a string or char array in Java. The significant difference between a string array and a char array is that a string array is a sequence of characters, and a char array is a sequence of collection of data type char. String array runs as a single entity, whereas char array runs as a separate entity. In this blog, we will look ... Read More

Find Cosine of Given Radian Value in Swift

Ankita Saini
Updated on 25-Aug-2022 09:02:20

540 Views

This tutorial will discuss how to write a Swift program to find the cosine of given radian value. A cosine function is used to define the ratio of the length of the adjacent side to the hypotenuse in the right-angled triangle. It is also known as the cos function. The mathematical representation of the cosine() function is − cos() = adjacent Side/ hypotenuse In Swift, we can calculate the cosine of the given radian value using the pre-defined cos() function. This function return the cosine value of the specified number between -1 to 1. Here, the specified number represent ... Read More

Find Sine of Given Radian Value in Swift

Ankita Saini
Updated on 25-Aug-2022 09:01:04

806 Views

This tutorial will discuss how to write a Swift program to find the sine of given radian value. A sine function is used to define the ratio of the length of the opposite side to the hypotenuse in the right-angled triangle. It is also known as the sin function. The mathematical representation of the sine() function is: sin() = opposite Side/ hypotenuse In Swift, we can calculate the sine of the given radian value using the pre-defined sin() function. This function return the sine value of the specified number between -1 to 1. Here, the specified number represents an ... Read More

Calculate Volume and Area of Sphere in Swift

Ankita Saini
Updated on 25-Aug-2022 08:59:43

406 Views

This tutorial will discuss how to write a Swift program to calculate the volume and area of the Sphere. A sphere is a three-dimensional round solid shape or object. Or we can say a sphere is a shape that is defined in three axes: x-axis, y-axis, and z-axis. It does not hold any vertices or edges. Volume of the Sphere The amount of space occupied by a sphere in the three-dimensional plane is known as the volume of a sphere. For example, we want to fill a spherical ball with liquid, so using volume we can calculate the required ... Read More

Advertisements