Posts

Showing posts with the label interview Questions

Featured Post

Python map() and lambda() Use Cases and Examples

Image
 In Python, map() and lambda functions are often used together for functional programming. Here are some examples to illustrate how they work. Python map and lambda top use cases 1. Using map() with lambda The map() function applies a given function to all items in an iterable (like a list) and returns a map object (which can be converted to a list). Example: Doubling Numbers numbers = [ 1 , 2 , 3 , 4 , 5 ] doubled = list ( map ( lambda x: x * 2 , numbers)) print (doubled) # Output: [2, 4, 6, 8, 10] 2. Using map() to Convert Data Types Example: Converting Strings to Integers string_numbers = [ "1" , "2" , "3" , "4" , "5" ] integers = list ( map ( lambda x: int (x), string_numbers)) print (integers) # Output: [1, 2, 3, 4, 5] 3. Using map() with Multiple Iterables You can also use map() with more than one iterable. The lambda function can take multiple arguments. Example: Adding Two Lists Element-wise list1 = [ 1 , 2 , 3 ]

5 Commonly Asked SQL Queries in Interviews

Image
 Here are the five top commonly asked SQL queries in the interviews. These you can expect in Data Analyst, or, Data Engineer interviews. SQL Queries for Interviews 01. Joins The commonly asked question pertains to providing two tables, determining the number of rows that will return on various join types, and the resultant. Table1 -------- id ---- 1 1 2 3 Table2 -------- id ---- 1 3 1 NULL Output ------- Inner join --------------- 5 rows will return The result will be: =============== 1  1 1   1 1   1 1    1 3    3 02. Substring and Concat Here, we need to write an SQL query to make the upper case of the first letter and the small case of the remaining letter. Table1 ------ ename ===== raJu venKat kRIshna Solution: ========== SELECT CONCAT(UPPER(SUBSTRING(name, 1, 1)), LOWER(SUBSTRING(name, 2))) AS capitalized_name FROM Table1; 03. Case statement SQL Query ========= SELECT Code1, Code2,      CASE         WHEN Code1 = 'A' AND Code2 = 'AA' THEN "A" | "AA&qu

10 Kafka Interview Questions That Recently Asked

Image
Kafka Interview Questions Here're ten interview questions that were asked during Kafka's interview.  These are useful to update your knowledge. 1. What is Kafka? Kafka is a framework of Publisher and Subscribe. It reads messages from the Producer and allows them to read by Subscribers. It keeps store all the producer messages in the form of topics (underlying partitions). It also maintains logs. 2. What is a Consumer group? Each consumer is part of some Consumer group. By adding more consumers to a Consumer group, you can balance the load. In general, the Consumer group reads data from the same topic. The number of partitions in a Topic always should be the same as Consumers in a particular CG (consumer group). 3. What is Fault-Tolerance? Each partition is replicated on multiple servers. So, when one partition is failed, the other backup will deliver. So this concept is called Fault-tolerance. 4. Can we decrease the partitions that we created? No, you can't decrease the par

10 Tech Mahindra Fresher Interviews Questions

Image
Here're the ten top interview questions asked during fresher interviews. These are general questions and applicable for all B. Tech branches. 10 Interview Questions These are general interview questions who is looking for job either on/off campus drives. 1. What is Full-Service Web-hosting? It is a service offered by website hosting companies. So that the site can be accessed via the world wide web. 2. What is meant by Port blocking within LAN? It restricts the users to access services through various ports. The ports are USB, DVD port, Floppy, Removal device ports. 3. What is IDN? It enables people to use Domain names in local languages. 4. Can we call one program (not include) from another program? Yes, you can call. Here not include means external program. 5. How can you sort the elements of an array in descending order? In C++, you can use Array.Reverse(arr); 6. How do I update my DNS records? You can update DNS records in CNAME. Here're more options. 7. How do non-root -br

13 Tricky Kubernetes Os Interview Questions

Image
THE tricky interview questions will simplify your job search - the listed questions are in the order of basic to midlevel skills. Kubernetes is an operating system built to work on Linux distributions for the sole purpose of Kubernetes Cluster. Kubernetes 13 Tricky Kubernetes Interview Questions. These interview questions help you to recap before the interviews. Also, you can use this knowledge for your projects. 1. What is Kubernetes? Kubernetes is OS (operating system) on the cloud, which oversees the cloud-native containerized apps. It is an orchestrator, which takes care of cloud apps - updates, rollback, scale-up, scale down, maintenance, etc. 2. What are Cloud-native apps? These run on the cloud, which means on any cloud - private, public, hybrid. They also run in an on-premise datacenter. The right answer is- applications designed and written in such a way that scale up or scale down as demand rises or fallen. 3. What are Containerized apps? Containers, which have images of apps

10 Tricky Apache-Storm Interview Questions

Image
The storm is a real-time computation system. It is a flagship software from Apache foundation. Has the capability to process in-stream data. You can integrate traditional databases easily in the Storm. The tricky and highly useful interview questions given in this post for your quick reference. Bench mark for Storm is a million tuples processed per second per node. Tricky Interview Questions 1) Real uses of Storm? A) You can use in real-time analytics, online machine learning, continuous computation, distributed RPC, ETL 2) What are different available layers on Storm? Flux SQL Streams API Trident   3)  The real use of SQL API on top of Storm? A) You can run SQL queries on stream data 4) Most popular integrations to Storm? HDFS Cassandra JDBC HIVE HBase 5) What are different possible Containers integration with Storm? YARN DOCKER MESOS 6) What is Local Mode? A) Running topologies in the Local server we can say as Local Mode. 7) Where all t

10 Complex UX interview Questions

Image
In this post, I have shared complex UX design interview questions that are useful for your next interview. The term user experience popularly call it as UX. If any question difficult to answer in the interviews, you can say it as ' complex'. I am sure, the listed questions boost your knowledge. 10 Complex UX interview Questions 1) What is UX and what to ensure? A). Good UX can ensure that customers use and actually enjoy the experiences you design.  If you've ever used a website, software application, or product interface that confused you, you've probably experienced a design process that did not leverage UX best practices.  In addition, UX can be a key component in establishing customer loyalty and goodwill. 2) What are the top 3 promises of good UX design? A). The three promises are a) Usable, b) Useful and c) Desirable 3) What are the four elements in information architecture? A). The 4 elements are : a) Navigation b) Content organization c

Mainframe study materials for interviews

Image
Mainframe self-study materials provided to refresh quickly before your next interview.   Top Links for Mainframe Self Study Materials - You Can Download Free of Cost VSAM 1.0 REXX 1.0 MVSQuest Second Edition MVSQuest Second Edition – Tools MQSeries 1.0 MAINFRAME Q&A Mainframe reference questions JCL 1.0 ISPF V 1.0 DB2 1.0 IMS 1.0 IDMS 1.0 COBOL 1.0 CICS V1.0 Abend codes in MF ALL interview questions References Mainframe-srini blogs

15 awesome Java Interview Questions to know

Image
Java interview is one of the tough interviews for developers coming from other technologies. So I have given very basic interview questions they asked. Really awesome to know these questions. 1. What is JVM? Why is Java called the ‘Platform Independent Programming Language’? JVM, or the Java Virtual Machine, is an interpreter that accepts ‘Bytecode’ and executes it. Java has been termed as a ‘Platform Independent Language’ as it primarily works on the notion of ‘compile once, run everywhere’. Here’s a sequential step establishing the Platform independence feature in Java: The Java Compiler outputs Non-Executable Codes called ‘Bytecode’. Bytecode is a highly optimized set of a computer instruction which could be executed by the Java Virtual Machine (JVM). The translation into Bytecode makes a program easier to be executed across a wide range of platforms since all we need is a JVM designed for that particular platform. JVMs for various platforms might vary in configuration, those they w

11 Top PIG Interview Questions

Here are the top PIG interview questions. These are useful for your project and interviews. 1). What is PIG? PIG is a platform for analyzing large data sets that consist of a high-level language for expressing data analysis programs, coupled with infrastructure for evaluating these programs.  PIG’s infrastructure layer consists of a compiler that produces a sequence of MapReduce Programs. 2). What is the difference between logical and physical plans? Pig undergoes some steps when a Pig Latin Script is converted into MapReduce jobs. After performing the basic parsing and semantic checking, it produces a logical plan.  The logical plan describes the logical operators that have to be executed by Pig during execution. After this, Pig produces a physical plan. The physical plan describes the physical operators that are needed to execute the script. 3). Does ‘ILLUSTRATE’ run MR job? No, illustrate will not pull any MR, it will pull the internal data. On the console, illustrate will

SAP HANA: Top Data Processing Interview Questions

1. How parallel processing is achieved in SAP HANA? The phrase "divide and conquer" (derived from the Latin saying divide et impera) typically is used when a large problem is divided into a number of smaller, easier-to-solve problems. Regarding performance, processing huge amounts of data is a problem that can be solved by splitting the data into smaller chunks of data, which can be processed in parallel. 2.How data portioning will happen in SAP HANA? Although servers that are available today can hold terabytes of data in memory and provide up to eight processors per server with up to 10 cores per processor, the amount of data that is stored in an in-memory database or the computing power that is needed to process such quantities of data might exceed the capacity of a single server. To accommodate the memory and computing power requirements that go beyond the limits of a single server, data can be divided into subsets and placed across a cluster of servers, which forms a d