
Cloud Analogy

10+ Cloud Analogy Interview Questions and Answers for Freshers
Q1. Reverse Linked List Problem Statement
Given a singly linked list of integers, return the head of the reversed linked list.
Example:
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed linked list: 4 -> 3 -> 2...read more
Reverse a singly linked list of integers and return the head of the reversed linked list.
Iterate through the linked list and reverse the pointers to point to the previous node.
Keep track of the current, previous, and next nodes while reversing the linked list.
Update the head of the reversed linked list as the last node encountered during reversal.
Q2. Count Subsequences Problem Statement
Given an integer array ARR
of size N
, your task is to find the total number of subsequences in which all elements are equal.
Explanation:
A subsequence of an array is derive...read more
The task is to find the total number of subsequences in which all elements are equal in an integer array.
Iterate through the array and count the frequency of each element.
For each element, calculate the number of subsequences with all elements equal using the formula (frequency * (frequency - 1) / 2).
Sum up the counts for all elements and return the result modulo 10^9 + 7.
Q3. Star Pattern Generation
Develop a function to print star patterns based on the given number of rows 'N'. Each row in the pattern should follow the format demonstrated in the example.
The picture illustrates an ...read more
Function to print star patterns based on the given number of rows 'N'.
Iterate through each row from 1 to N
For each row, print spaces (N-row) followed by stars (2*row-1)
Repeat until all rows are printed
Q4. Sum of Minimum and Maximum Elements of All Subarrays of Size K
You are provided with an array containing N integers along with an integer K. Your task is to compute the total sum of the minimum and maximum elem...read more
Calculate the sum of minimum and maximum elements of all subarrays of size K in an array.
Iterate through the array and maintain a deque to store the indices of elements in the current window of size K.
Keep track of the minimum and maximum elements in the current window and update the sum accordingly.
Return the total sum of minimum and maximum elements for all subarrays of size K.
Q5. Q1. Palindrome numbers in a given range.
A program to find palindrome numbers in a given range.
Iterate through the given range of numbers
Convert each number to a string and check if it is equal to its reverse
If yes, add it to the list of palindrome numbers
Q6. Q2. Carry generated in a sum of two numbers.
Carry is generated when the sum of two digits is greater than 9.
Carry is a digit that is carried over to the next place value in the sum.
For example, in the sum 56 + 78, the carry generated is 1 (5+7=12, carry 1, 6+8+1=15).
Carry is important in addition of large numbers and in binary addition.
Q7. Write a code to reverse the string of your name.
Code to reverse a string of your name
Create a function that takes a string as input
Use built-in functions like reverse() or loop through the string to reverse it
Return the reversed string
Q8. Write a code to print pyramid pattern
Code to print pyramid pattern in Python
Use nested loops to print spaces and stars in each row
Increment the number of stars in each row to form the pyramid shape
Example: for a pyramid with 5 rows, the code would look like this:
for i in range(5):
print(' '*(5-i-1) + '*'*(2*i+1))
Q9. Explain Campaigns, Promotions, and Coupons.
Campaigns, Promotions, and Coupons are marketing strategies used to attract customers and increase sales.
Campaigns are strategic marketing efforts to promote a product or service over a specific period of time.
Promotions are temporary incentives offered to customers to encourage purchases, such as discounts or free gifts.
Coupons are vouchers that entitle the holder to a discount on a particular product or service.
Examples: Black Friday campaign, Buy One Get One Free promotion...read more
Q10. What is Global JS.
Global JS refers to JavaScript variables or functions that are accessible from anywhere in the code.
Global JS variables are declared outside of any function and can be accessed from any part of the code.
Global JS functions are defined without being enclosed within another function and can be called from anywhere in the code.
Using global variables or functions can lead to potential conflicts and security risks.
Q11. What is black box testing
Black box testing is a software testing technique where the internal workings of the system are not known to the tester.
Tests the functionality of the system without knowing the internal code
Focuses on input and output of the system
Tests for user interface, performance, and security
Examples include acceptance testing and regression testing
Q12. opps concept what is inheritnace?
Inheritance is a concept in object-oriented programming where a class can inherit attributes and methods from another class.
Allows a class to inherit attributes and methods from another class
Promotes code reusability and reduces redundancy
Creates a parent-child relationship between classes
Types of inheritance include single, multiple, multilevel, and hierarchical
Example: Class 'Animal' can be a parent class with attributes like 'name' and methods like 'eat', while class 'Dog'...read more
Q13. what is objects in opps ?
Objects in OOPs refer to instances of classes that encapsulate data and behavior.
Objects are created based on a class blueprint
Objects have attributes (data) and methods (behavior)
Objects allow for data encapsulation and abstraction
Example: Class 'Car' can have objects like 'Toyota', 'Honda', etc.
Q14. What is quality analyst
A quality analyst is responsible for ensuring that products or services meet the required standards and specifications.
Conducting quality assurance tests and inspections
Analyzing data to identify areas for improvement
Developing and implementing quality control procedures
Collaborating with other departments to ensure quality standards are met
Providing feedback to management on quality issues
Examples: testing software for bugs, inspecting manufactured products for defects
Q15. find that aray is palindrome or not ?
Check if array of strings is a palindrome or not.
Iterate through the array and compare each string with its reverse to check for palindrome.
Ignore spaces and punctuation while checking for palindrome.
Example: ['madam', 'racecar', 'hello', 'level'] should return true.
Q16. What is white box testing
White box testing is a testing technique that involves testing the internal structure of the software.
It is also known as clear box testing or structural testing.
It requires knowledge of the code and the internal workings of the software.
It is used to test the logic and flow of the code.
Examples include unit testing and integration testing.
It is usually performed by developers or testers with programming knowledge.
Q17. what is your backgroud ?
I have a degree in Electronics and Communication Engineering.
I completed my Bachelor's degree in Electronics and Communication Engineering from XYZ University.
During my studies, I gained knowledge in various subjects such as Analog and Digital Communication, Microprocessors, and Microcontrollers.
I also completed a project on the design and implementation of a wireless communication system using Zigbee technology.
I have also completed internships at ABC Company and DEF Company...read more
Q18. what is jop experience ?
Job experience refers to the work history of an individual in a particular field or industry.
It includes the skills and knowledge gained through previous employment.
It can be used to demonstrate expertise and suitability for a particular role.
Employers often look for candidates with relevant job experience.
Examples of job experience include internships, part-time jobs, and full-time employment.
It is important to highlight job experience on a resume or during an interview.
Q19. short an array by bubble sort
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.
Start by comparing the first two elements of the array and swap them if necessary.
Continue comparing adjacent elements and swapping them until the array is sorted.
Repeat this process for each element in the array until no more swaps are needed.
Interview Process at Cloud Analogy for Freshers

Top Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

