Adobe Interview Preparation and Recruitment Process


About Adobe


Adobe is a multinational software company headquartered in San Jose, California, best known for its creative and multimedia software products. Founded in December 1982 by John Warnock and Charles Geschke, the company initially gained prominence with PostScript, a page description language that revolutionized desktop publishing. Today, Adobe is a leader in digital media, design, and marketing solutions.

Adobe Interview Preparation

Key Facts About Adobe :

  • Founded: December 1982

  • Headquarters: San Jose, California, USA

  • CEO: Shantanu Narayen

  • Revenue: Over $17 billion (as of recent reports)

  • Employees: Over 25,000

  • Stock Symbol: ADBE (NASDAQ)


Popular Products :

  1. Adobe Photoshop – Image editing and graphic design software.

  2. Adobe Illustrator – Vector graphics and illustration software.

  3. Adobe Premiere Pro – Professional video editing software.

  4. Adobe After Effects – Motion graphics and visual effects software.

  5. Adobe Acrobat – PDF viewing, editing, and document management.

  6. Adobe InDesign – Desktop publishing and layout design software.

  7. Adobe Creative Cloud – A subscription-based service that gives access to all Adobe apps.


Acquisitions and Innovations :

Adobe has acquired several companies, including Macromedia (Flash, Dreamweaver), Behance, and Figma (pending final approval). The company is a leader in AI-driven creativity, with tools like Adobe Firefly for generative AI art and Sensei AI for intelligent automation.

Adobe has evolved from a focus on print to a broader digital ecosystem, emphasizing cloud-based services and AI-driven features like Adobe Sensei, which enhances automation and personalization in its tools. The company also plays a significant role in digital marketing through its Experience Cloud, offering analytics, advertising, and customer experience management solutions.

Financially, Adobe is a powerhouse, with a market cap often exceeding $200 billion and consistent revenue growth, largely driven by its subscription model. It’s a key player in the tech industry, competing with companies like Microsoft, Canva, and Figma (which Adobe attempted to acquire in 2022 for $20 billion, though the deal fell through due to regulatory concerns).



Adobe Recruitment Process


Adobe’s recruitment process is designed to identify talented individuals who align with the company’s focus on innovation, creativity, and technical expertise. While the exact process can vary depending on the role (e.g., software engineering, design, marketing) and location, it typically follows a structured series of steps. Here’s an overview based on common practices:


1. Application Submission :
  • Candidates start by applying online through Adobe’s official careers portal (careers.adobe.com). You’ll need to submit a resume, and sometimes a cover letter or portfolio (especially for creative roles like design).
  • Tip: Tailor your application to highlight relevant skills and experiences that match the job description.

2. Initial Screening :
  • A recruiter reviews your application to assess if your qualifications and experience align with the role. If there’s a match, you’ll be contacted for an initial discussion.
  • This step may involve a brief phone call (30-45 minutes) to discuss your background, interest in Adobe, and the position. It’s also a chance to ask about the role or company.

3. Online Assessment (if applicable) :
  • For technical roles (e.g., Software Engineer), candidates often face an online test on platforms like HackerRank. This typically lasts 60-75 minutes and includes:
    • Coding Questions: 2-3 problems, often focused on data structures (arrays, strings), algorithms, and problem-solving. Preferred languages include C, C++, Java, or Python.
    • Aptitude/Technical MCQs: Questions on logical reasoning, quantitative skills, and computer science fundamentals (e.g., OS, DBMS).
  • Creative roles might require a portfolio review or a design challenge instead.

4. Technical Interviews :
  • Candidates who pass the assessment move to multiple technical interview rounds (usually 2-4), conducted via video call or onsite.
  • Focus Areas:
    • Coding: Solve problems on a whiteboard or coding platform, explaining your thought process.
    • Computer Science Concepts: Questions on operating systems, databases, system design, or past projects.
    • Difficulty: Ranges from medium to hard, testing both depth and practical application.
  • For non-technical roles, this might be replaced with role-specific tasks (e.g., a marketing case study).

5. Behavioral/HR Interview :
  • This round evaluates your fit with Adobe’s culture and values (Genuine, Exceptional, Innovative, Involved).
  • Expect questions about your experience, teamwork, problem-solving approach, and career goals. Common prompts include:
    • “Tell me about a challenging project you worked on.”
    • “How do you handle feedback or failure?”
  • It’s also an opportunity to ask about Adobe’s work environment, growth opportunities, or team dynamics.

6. Final Evaluation :
  • For some roles, a final interview with a hiring manager or senior executive may occur to assess your overall fit and potential impact.
  • Interviewers from previous rounds may convene to discuss your performance before a decision is made.

7. Offer and Onboarding :
  • If selected, you’ll receive a job offer detailing salary, benefits, and other terms. Adobe is known for competitive compensation and flexibility in negotiations, especially for senior roles.
  • Once accepted, the onboarding process begins, including virtual training and team integration.

Key Details :
  • Duration: The process typically takes 2-6 weeks, depending on role complexity and scheduling.
  • Eligibility: For freshers, a degree in a relevant field (e.g., Computer Science, Design) with no active backlogs is usually required. Specific criteria vary by role.
  • Locations: In India, Adobe hires heavily in Noida and Bangalore, alongside global hubs like San Jose.

Tips for Success :
  • Preparation: Brush up on coding (if technical) or refine your portfolio (if creative). Practice common interview questions and Adobe’s product ecosystem.
  • Research: Understand Adobe’s products (e.g., Photoshop, Experience Cloud) and recent innovations.
  • Show Creativity: Highlight innovative thinking, as it’s a core value at Adobe.

Adobe Interview Questions :

1 .
Differentiate between typedef and #define?
The primary difference between typedef and #define is given below:

* typedef is used to define the types or to give a new name to types whereas #define is pre-processor directive, which is used to define the macro.
* typedef gives the actual definition to the new datatype, whereas #define is used just to copy-paste the value definition where it is used.
* typedef is known to the compiler, but #define is just known to pre-processor.

Example :
#include<stdio.h>    
typedef int CHAR;   
#define AP "Andhra Pradesh"  
 
int main()   
{   
    CHAR a, b;   
    a = 10;   
    printf("%d\n""%s"  , a, AP);   
    return 0;   
}
 
Output :
10
Andhra Pradesh
2 .
Why we use sprint() function?
sprint() is a C library function which is termed as "string print." sprintf function is used to hold the formatted data output as String.

Syntax :
int  sprintf (char *string,  const char *form, .... ) 

Example :
#include<stdio.h>   
int main()   
{   
    char string[50];   
    int a = 10, b = 5, c;   
    c = a * b;   
    sprintf(string, "multiplication of %d and %d is %d", a, b, c);   
            printf("%s",  string);   
return 0;   
}
 
Output :
multiplication of 10 and 5 is 2
3 .
Differentiate between new and malloc()?
The new and malloc() both are used for dynamic memory allocation. But there are various differences between new and malloc, which are given below,

* new is an operator in C language, whereas malloc() is a function for memory allocation.
* new operator calls the constructor, whereas malloc() does not call the constructor.
* The memory allocated from the "free store" by new operator, whereas memory allocated from the heap by malloc() function.
* On failure of execution, new operator throws an exception, whereas malloc() returns Null.
* new operator does not require the sizeof() operator, malloc() function requires the sizeof() operator to know the memory size.
4 .
What do you understand by function prototype declaration and definition?
Function prototype declaration: function prototype declaration statement gives the following information about the function:

* It tells the symbolic name of the functions.
* Information about the return type of function.
* Information about the argument passed as input with their datatypes.

Example :
int add(int a, int b, int c) 

Where add is the name of a function, and a, b and c are the passed arguments.

Function definition : The function definition is the actual source code of the function. Function definition gives information that what that function actually does.

Example :
int add(int a, int b, int c){
  
c= a + b;  
return c;  
} 
5 .
What do you understand by Conditional Operators?
Conditional operators are ternary operators with three operands, which are used as shorthand in place of the if-else statement.

Conditional operators return the first expression if the condition is true and return second expression if the condition is false.

Syntax :
(Check expression)? Expression1: Expression2;

Example :
var = (x < 10) ? 20 : 40;
6 .
What is volatile Keyword in C?
* The volatile keyword is a qualifier which is used with the variables at the time of declaration.

* It gives the information to the compiler that variable's value can be changed at any instance of time even it does not appear to be modified.

* Volatile keyword is used to declare a variable as a volatile variable. It can be used before the datatype or after the data type.

Syntax :
volatile int x;   or int volatile x;
7 .
What do you understand by calloc() and malloc()?
In C, calloc() and malloc() are the library functions, and both are used for dynamic memory allocation. Which means it allocates the memory at run-time as per requirement from the heap section.

malloc() : malloc() function is a library function which allocates a single block of requested memory and return a pointer void to it, which can be cast to any return type. It returns the null value if sufficient memory is not available.

Syntax :
ptr=(cast-type*)malloc(byte-size)

calloc() : calloc() function is also a library function which allocates the multiple blocks of memory of requested size. It initially initializes the memory to zero and returns NULL if memory is not sufficient.

Syntax :
ptr=(cast-type*)calloc(number, byte-size)
8 .
Differentiate between call by pointer and call by reference?
In C++ language, we can pass an argument to a function by reference or by pointer, both are the correct approaches and precisely same, but the basic differences between both are:

* We can assign pointer as a null pointer directly, but it cannot be done with reference.

* We can reassign a pointer, but reference cannot be reassigned.
9 .
Why we use pointers in C and C++?
Pointers are the variables which stores address of another variable in C and C++.

Following are the main reasons that why we use pointers in C and C++:

* Pointers can be used for dynamic memory allocation.
* Pointers help to perform array arithmetic and accessing an array element.
* Pointers are helpful in creating API.
* Pointers are used in the implementation of the data structure.
* Pointers are beneficial to pass by reference.
10 .
What is C++ Shorthand property? What is its role?

C++ provides shorthand property, which enables a programmer to use the assignment operator in a shorter way.

Example :

x=x+5; can be written as x+=5 using shorthand

x=x-10; can be written as x-=10;

11 .
Why we use void keyword?
We can use void keyword for two purposes :

Function parameter : When we use void as function parameter, it means function does not accept any value.

Example :
int showMessage(void){     
}

Function Return type : When we use void as function return type, it means it will not return anything.

Example :
void showMessage() {  
}
 
void keyword can also be used with the pointers which makes it more powerful as, when void is used with pointer it termed as generic type, which can hold address of any type.
12 .
Explain the exit controlled loop?
An Exit controlled loop is a type of loop which first execute the instruction and then checks the condition. When we use exit controlled loop, then at least one time execution occurs even if the condition is false. The do-while loop is an example of exit controlled loop.
#include<stdio.h>   
 
int main() {  
int x = 10;   
do{  
    printf("\n the value of x is %d", x);  
    x - -;  
}  
while(x>=5);  
   return 0;   
}
 
Output :   
 the value of x is 10  
 the value of x is 9  
 the value of x is 8  
 the value of x is 7  
 the value of x is 6  
 the value of x is 5
13 .
Write a code which multiplies two numbers using the minimum number of additions.
#include<stdio.h>  
   
int main()  
{  
      int product=0, x, y, n;  
      x=10;  
      y= 20;   
       
      for(n = 0; n < y; n++)  
      {  
            product = product + x;  
      }  
      printf("\n The product of %d and %d: %d\n", x, y, product);  
      return 0;  
}  
}   


Output :

The product of 10 and 20: 200
14 .
Write a program which swaps two integer pointers?
#include<stdio.h>  
               int main()  
                {  
                    int *a, *b, *temp, x=20,y=30;   
             a=&x;  
             b=&y;  
          printf("Before swap %d %d", *a, *b);   
      
         *temp= *a;  
         *a=*b;  
        *b= *temp;   
  printf("\n After swap %d %d", *a, *b);   
      return 0;  
} 
 
Output :
Before swap 20 30
After swap 30 20
15 .
Write a program to calculate the nth term of the Fibonacci series?
#include <stdio.h>  
int fun(int n)   
{   
if (n <= 1)   
return n;   
else  
return fun(n-1) + fun(n-2);   
}   
int main(){  
    int n1=0, n2=1, n3=0, n=7;   
    printf("The series is %d %d", n1, n2);  
    for(int i=2; i<=n; i++){  
        n3=n1+n2;  
        printf(" %d", n3);  
        n1=n2;  
        n2=n3;  
          
    }  
    printf("\nThe nth term is %d", fun(n));  
} 
 
Output :
The series is 0 1 1 2 3 5 8 13
The nth term is 13
16 .
Write an algorithm to compute the output for X^N, having complexity log n.
#include <stdio.h> 
int pow(int x, int n)   
{   
    int y;   
    if( n == 0)   
        return 1;   
    y = pow(x, n/2);   
    if (n%2 == 0)   
        return y*y;   
    else  
        return x*y*y;   
}   
int main()   
{   
    int x = 6;   
    int n = 3;   
    
    printf("The output for x^n, where x=%d, n=%d, %d", x, n, pow(x, n));   
    return 0;   
} 
 
Output :
The output for x^n, where x=6, n=3, 216
17 .
Explain the working of the stack while calling a function? When stack overflow occurred?

The Stack is a particular area of RAM, just like as Heap. But stack is used to store local variables, parameters and return values used inside a function and stack stores and deallocates memory automatically.

When we call a function, stack performs following steps:

  • Push space for the return variables.
  • Push parameters in the stack.
  • Push the local variable of the function.

When we call a function, stack adds a stack frame which consists space for actual parameters, local variables, return address, etc. This stack frame lives in active frame till the time function is being called, and once execution finishes then stack remove that stack frame from the stack.

Stack Overflow: As we know that stack deallocated the memory and free up space after execution but still there is a condition when complete stack space used, and there is no more space to save the variables, so this is called stack overflow. It occurs because the space size of the stack is also limited in size, and at the time of execution if we allocate more memory than available memory than overflow occurred and the program got crashed. Some example for stack overflow are:

  • Use of Infinite recursion
  • Use of very large stack variable
  • Use of very deep recursion
18 .
Explain the meaning for the declaration: int*const p & const int* const p?

int * const p: By declaring a pointer in such a way that means we are declaring point variable p as constant, which cannot be changed. We cannot change the address its holding, or it cannot point to other variables. If we try to change the address of p, then it will give a compile time error.

const int * const p: By declaring a pointer in such a way means, we cannot change the address of the pointer as we as we cannot change the address at that address. If we try to do it, then it will generate a compile time error.

19 .
Which data structure is used for the dictionary?

To implement a dictionary, which type of data structure should be used depends on what we required, there are some following data structure which can be used for implementation of the dictionary.

Hash-table: If we want a simple dictionary with no option for the prefix, or nearest neighbour search then we can use Hashing or Hashtable for the dictionary.

Trie: It can be a good option if we want to add prefix and fast lookup. But, it takes more space than other data structures.

Ternary Search Tree: If we want all the qualities like trie but do not want to give the more space then we can use ternary search tree.

BK-tree: BK-tree is one of the best data structure if we want specifications like spell checker, find the similar word, etc.

20 .
Write an algorithm for the tower of Hanoi?
Tower of Hanoi is a very popular mathematics puzzle. In this puzzle, we are given three disk and three rods. Disks are arranged in the first rod like a stack, in ascending order. We need to transfer the disk from the first rod to third in the same order.

There are some rules as well :

We can move one disk at one time
We can only move the uppermost disk
Disk always should be in ascending order, i.e., a bigger disk cannot put on a smaller one.

Algorithm :

Let's suppose there are thee towers Beg, Aux, and Dest, and there are two disks where n disk is larger disk and n-1 is smaller one.

Start

Step 1 : shift n-1 disk from tower Beg to Aux

Step 2 : shift n disk from Beg to End

Step 3 : shift disk n-1 form tower Aux to C.

Tower(n, Beg, Aux, Dest)  
Begin  
If n=1 then,  
Print: Beg-> Dest;  
else  
 Call Tower(n-1, Beg, Dest, Aux);  
Call Tower(n, Beg, Aux, End);  
Call Tower(n-1, Aux, Beg, End);  
endif  
End  
21 .
Write an algorithm to insert an element into a sorted linked list?
Suppose the linked list is sorted in ascending order then following is the algorithm for the same. Let the input node is 13 and let assign as n

Suppose Input linked list is :
3 8 11 15 20   

1) If given linked list is empty then assign the node as head and return it.

2) If value of the node n is less than value of head node, then insert the node at start and assign it as head.

3) In a loop, search the appropriate node after which the input node is to be inserted. To search the appropriate node start from head, keep moving until you reach a node x(Let?s suppose 15)whose value is greater than the input node. The node before the x will be the appropriate node(11).

4) Insert the node(13) after the appropriate node(11) found in step 3.

After insertion :
3 8 11 13 15 20   

Adobe MCQ :

1 .
The present age of Arjun, Ram, and Vivek is in the proportion of 4:7:9. If 9 years ago, the sum of their age was 53, then what will be their present age?
A)
8,20,28
B)
16,28,36
C)
20,35,45
D)
None of the above

Correct Answer :   16,28,36


Explanation : The present age of Arjun, Ram, and Vivek is in the ratio of 4:7:9
Let, the present age of Arjun= 4x
Present age of Ram= 7x
Present age of Vivek= 9x
As per question
(4x-9)+ (7x-9) + (9x-9) = 53
20x-27=53
X=4
So the present age of Arjun= 16, Ram= 28, and Vivek = 36

2 .
Find the largest 4 digit number, which will be exactly divisible by 88?
A)
8888
B)
9768
C)
9944
D)
9988

Correct Answer :   9944


Explanation : The largest 4 digit number= 9999
9999/88= remainder =55
So the new number will be = 9999-55= 9944
It will be completely divisible by 88; hence the largest number will be 9944

3 .
Compute the sum of the first five prime numbers?
A)
11
B)
18
C)
26
D)
28

Correct Answer :   28


Explanation : Required sum of five prime number = (2+ 3+5+7+11) = 28

4 .
If the average age of employees in an office is 40 years and 120 new employees joined the company whose average age is 32 years. Hence the average age of all employees decreased by 4 years. So what is the total number of employees in the company now?
A)
240
B)
360
C)
480
D)
1200

Correct Answer :   240


Explanation : Let's x be an initial total number of employees
Initial average age of employees = 40 years
(Initial total age of employee)/x=40
Initial total age of employees= 40x
Total age of 120 employees= 32*120
As per question:
Average age is decreased by 4, hence
(40x+32*120)/(x+120) = (40-4)
(40x+3840)=36*(x+120)
4x=4320-3840
X=120
So total number of employees now in the company = 120+120= 240

5 .
If a bulb in a room flashes on every 9 seconds, how many times will it flash in ¾ of an hour?
A)
301
B)
250
C)
220
D)
401

Correct Answer :   301


Explanation : Bulb flash on every 9 seconds.
¾ of an hour= ¾* 60 = 45 min
45 min= 45*60 = 2700 seconds
So light will flash in ¾ of an hour= 2700/9= 300 times
But count starts after the first flash hence the total number of time = 300+1= 301

6 .
One day Ravi started moving 30 minutes late from home and reached his office late by 50 minutes while driving 25% slower than his usual speed. How much time does Ravi usually take to reach his office from home?
A)
20 min
B)
40 min
C)
60 min
D)
80 min

Correct Answer :   60 min


Explanation : Let suppose t is usual time to reach to office from home, Usual time and speed time= t, speed = s
Late time and speed 25% slower speed = 3/4s, time= t+20
D = s*t
D= (3s/4)*(t+20)
S*t= (3s/4)*(t+20)
4t= 3t+60
t= 60 min.

7 .
'A' alone can complete 1/4th of the work in 2 days. 'B' alone can complete 2/3th of the work in 4 days. If all the three workers work together, they can complete the work in 3 days so what part of the work will be completed by 'C' alone in 2 days?
A)
1/8
B)
1/12
C)
1/16
D)
1/20

Correct Answer :   1/12


Explanation : Let's one day work by C = x
1-day work by A= 1/8
1-day work by B= 1/6
As per question:
1/8+1/6+x= 1/3
By solving the equation:
x=1/24
If x's
1 day work = 1/24
So two day's work by c = 1/12

8 .
A shopkeeper sells one table for Rs. 840 at a gain of 20% and another table for Rs. 960 at a loss of 4%. What will be his total gain or loss?
A)
20/3% gain
B)
100/17% gain
C)
100/17% loss
D)
None of the above

Correct Answer :   100/17% gain


Explanation : Cost price for 1 table = (100*840) / (100+20) = 700
Cost price for 2 table = (100*960) / (100-4) = 1000
Total cost price of tables = 1000+700=1700
Total selling price = 840+960 = 1800
Gain = selling price- cost price
Gain = 1800-1700= 100
Gain%= (100*100) / 1700
Gain% = 100/17

9 .
A can do a piece of work in 10 days, B can do the same work in 12 days and Ravi in 15 days. They all start the work together, but A leaves after 2 days and B leaves 3 days before the completion of work. Find the days in which work will be completed.
A)
5 days
B)
6 days
C)
7 days
D)
9 days

Correct Answer :   7 days


Explanation : The work completed by,
A in 10 days, B in 12 days, C in 15 days,
Total work done to be completed= L.C.M of (10, 12, 15) = 60unit
So A can do 6 unit of work in 1 day, B can do 5 unit, C can do 4 unit
As per the question, Let in x days' remaining work will be completed, then
(6+5+4)*2+ (5+4)*(x-3) + (4*3) = 60 unit
After solving,
30+ 9(x-3) +12=60
X=5 days
So total required days = 5+2= 7 days.

10 .
Which will be the next term in the series: 3, 4, 6, 9, 13,_______
A)
15
B)
16
C)
17
D)
18

Correct Answer :   18


Explanation : As in the given series, 3, (3+1=4), (4+2=6), (6+3=9), (9+4=13), so__ (13+5=18) Hence next term will be 18

11 .
What will be the next term in the series of BXF, DVI, FTL, HRO,_____
A)
JPL
B)
JOL
C)
KPL
D)
None of the above

Correct Answer :   None of the above


Explanation : As in given series
B X F, D V I, F T L, H R O
For the first letter,
B-C-D, D-E-F, F-G-H, H-I-J
For 2 letter
X-w-V, V-U-T, T-S-R, R-Q-P
For 3 letter
F-G-H-I, I-J-K-l, L-M-N-O, O-P-Q-R So next term should be JPR so answer will be none of them, Hence the next term in series will be- JPR

12 .
If Win is related to Competition, then Invention is related to.
A)
Trial
B)
Experiment
C)
Discovery
D)
Laboratory

Correct Answer :   Experiment

13 .
Find out the odd word form the following options:
A)
Car
B)
Tyre
C)
Engine
D)
Steering wheel

Correct Answer :   Car


Explanation : In the options Steering wheel, Tyre, and Engine all are the part of the car.

14 .
Engineer: Map::Bricklayer:? Find the word.
A)
Mould
B)
Design
C)
Template
D)
Cement

Correct Answer :   Template

15 .
Rahul said to Akash, "That boy playing with the football is the younger of the two brothers of the daughter of my father's wife." How is the boy playing football related to Rahul?
A)
Son
B)
Brother
C)
Cousin
D)
Brother-in-law

Correct Answer :   Brother


Explanation : My father's wife= Rahul's mother
Daughter of my father's wife= Rahul's sister
Younger of the two brothers= Rahul's b brother.

16 .
If w, x, y z are integers. There is the condition, that expression x-y-z is even, and the expression y-z-w is odd. If x is even what must be true?
A)
z must be odd
B)
y-z must be odd
C)
z must be even
D)
w must me odd

Correct Answer :   w must me odd


Explanation : As x is an even number, then x-y-z must be even if y and z both be odd, and y-z-w must be odd when w must be odd

17 .
If MADRAS can be coded as NBESBT, then how can we code BOMBAY?
A)
CPOCBZ
B)
CPNCPX
C)
CPNCBZ
D)
CQOCBZ

Correct Answer :   CPNCBZ


Explanation : M A D R A S <=========> N B E S B T
Every letter is equivalent to its next letter, so M with N, A with B, D with E, and so on.
Hence
B O M B A Y can be written as C P N C B Z

18 .
By introducing Riya, Sam says, 'She is the wife of the only nephew of only brother of my mother.' How is Riya related to Sam?
A)
Wife
B)
Sister
C)
Sister-in-law
D)
Data is inadequate

Correct Answer :   Wife


Explanation : The Only brother of my mother = Sam's uncle
Wife of the only nephew= Sam's wife
Hence Riya is Sams wife.

19 .
What will be the output for the following:
int main()
{
     int i;
     int arr[5] = {5};
     for (i = 0; i < 5; i++)
     printf("%d ", arr[i]);
     return 0;
}
A)
0 0 0 0 0
B)
5 0 0 0 0
C)
5 5 5 5 5
D)
Error

Correct Answer :   5 0 0 0 0

20 .
In C language, parameters are always______
A)
Passed by value
B)
Passed by reference
C)
Passed by value result
D)
Pointer variable are passed by reference and non-pointer variable are passed by value

Correct Answer :   Passed by value

21 .
What is a use of the following statement?
scanf ("%3s", str);
A)
Reads 3 character from console
B)
Take the string str in multiple of 3
C)
Reads maximum 3 character
D)
None of the above

Correct Answer :   Reads maximum 3 character

22 .
What will be the maximum number of binary trees that can be formed using three unlabelled nodes?
A)
1
B)
4
C)
5
D)
6

Correct Answer :   5

23 .
Which sorting algorithm can be used to sort a random linked list with minimum time complexity?
A)
Quick Sort
B)
Merge Sort
C)
Heap Sort
D)
Insertion Sort

Correct Answer :   Merge Sort

24 .
What will be the total number of structurally different possible binary trees with 3 nodes?
A)
5
B)
10
C)
168
D)
245

Correct Answer :   5


Explanation : The number of structurally possible trees = !2N/ (! N*(! (N+1))
Where n= number of nodes, here N=3 hence,
The answer will be 5.

25 .
Compute the output for the following code:
#include
struct st
{
      int x;
      static int y;
};
int main()
{
      printf("%d", sizeof(struct st));
      return 0;
}
A)
4
B)
8
C)
Compile time error
D)
Run time error

Correct Answer :   Compile time error


Explaination : In C language, we cannot have static members inside the struct and unions types, so this program will generate the compile-time error.

26 .
Compute the output for the following code:
#include 
int main()
{
   int arr[] = {5, 8, 10, 12,18};
   int *p = arr;
   ++*p;
   p += 3;
   printf("%d", *p);
   return 0;
}
A)
10
B)
12
C)
18
D)
No output.

Correct Answer :   12

27 .
Find the output for the following code.x
Find the output for the following code.
char p[10];
char *s = "computer";
int length = strlen(s);
int i;
for (i = 0; i < length; i++)
p[i] = s[length - i];
printf("%s", p)
A)
null value
B)
retupmoc
C)
computer
D)
No output will print

Correct Answer :   No output will print