
Cloud Analogy

Cloud Analogy Software Developer 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. 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
Q5. 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.
Q6. 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
Q7. 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.
Interview Process at Cloud Analogy Software Developer for Freshers

Top Software Developer Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

