Add office photos
Engaged Employer

Encora

3.8
based on 743 Reviews
Video summary
Filter interviews by

Gambia College Interview Questions and Answers

Updated 5 Jul 2024
Popular Designations

Q1. Different between let , const,var. Closure in javascript

Ans.

let, const, and var are used to declare variables in JavaScript. Closures are functions that have access to their outer scope even after the outer function has finished executing.

  • let: block-scoped variable declaration, can be reassigned

  • const: block-scoped variable declaration, cannot be reassigned, but its properties can be modified

  • var: function-scoped variable declaration, can be reassigned

  • Closure: inner function has access to outer function's variables even after outer func...read more

Add your answer

Q2. Explain oops concepts in detail. Difference between Abstraction and interface.

Ans.

OOPs concepts include encapsulation, inheritance, polymorphism, and abstraction. Abstraction is a concept where only relevant information is shown to the user, while interface is a blueprint for classes.

  • OOPs concepts: encapsulation, inheritance, polymorphism, abstraction

  • Abstraction: showing only relevant information to the user

  • Interface: blueprint for classes, defines methods without implementation

  • Example: Abstraction - Car dashboard displaying speed without showing internal ...read more

Add your answer

Q3. String reverse program Factorial program

Ans.

String reverse and factorial programs in array of strings.

  • For string reverse program, iterate through the string from end to beginning and append each character to a new string.

  • For factorial program, use a loop to multiply numbers from 1 to n.

  • Example for string reverse: Input 'hello' -> Output 'olleh'

  • Example for factorial: Input 5 -> Output 120 (5*4*3*2*1)

Add your answer

Q4. Addition of two array and array reverse

Ans.

Add two arrays element-wise and reverse the resulting array of strings.

  • Iterate through both arrays and add corresponding elements together.

  • Reverse the resulting array of strings.

  • Handle edge cases like arrays of different lengths.

  • Example: ['1', '2', '3'] + ['4', '5', '6'] = ['5', '7', '9'] -> reverse -> ['9', '7', '5']

Add your answer
Discover Gambia College interview dos and don'ts from real experiences

Q5. String method with explanation any 5

Ans.

String methods are used to manipulate and work with strings in programming languages.

  • toUpperCase(): Converts a string to uppercase

  • toLowerCase(): Converts a string to lowercase

  • charAt(index): Returns the character at the specified index

  • indexOf(substring): Returns the index of the first occurrence of a substring

  • split(delimiter): Splits a string into an array of substrings based on a delimiter

Add your answer

Q6. What is hoisting in javascript

Ans.

Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during compilation.

  • Variable declarations are hoisted to the top of their scope, but not their initializations.

  • Function declarations are fully hoisted, including their definitions.

  • Hoisting can lead to unexpected behavior if not understood properly.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Gambia College

based on 2 interviews
Interview experience
4.0
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Junior Software Engineer Interview Questions from Similar Companies

3.7
 • 43 Interview Questions
3.7
 • 22 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter