IBM
NASDAQ Interview Questions and Answers
Q1. What are the different data types present in javascript?
JavaScript has several data types including string, number, boolean, object, function, undefined, and null.
String: 'hello', '123'
Number: 123, 3.14
Boolean: true, false
Object: { key: 'value' }
Function: function() { }
Undefined: undefined
Null: null
Q2. What are the advantages of pair programming?
Pair programming promotes collaboration, knowledge sharing, and code quality.
Enhances code quality through immediate code review and feedback
Promotes knowledge sharing and learning from each other
Fosters collaboration and teamwork
Reduces the likelihood of bugs and errors
Increases productivity by leveraging two minds on the same problem
Helps in breaking down complex problems into smaller tasks
Improves communication skills within the team
Q3. How long have you been coding primarily in Python?
I have been coding primarily in Python for 5 years.
I started learning Python in college and have been using it extensively in my professional career.
I have worked on various projects using Python, including web development, data analysis, and automation.
I am proficient in Python libraries such as NumPy, Pandas, and Django.
Q4. Difference between var and let keyword in javascript.
var is function-scoped while let is block-scoped in JavaScript.
var keyword is function-scoped, meaning it is accessible throughout the function it is declared in.
let keyword is block-scoped, meaning it is only accessible within the block it is declared in.
Using var can lead to variable hoisting issues, while let provides more predictable behavior.
let allows for better variable scoping and reduces the risk of unintended variable redeclarations.
Q5. How do you identify bugs in your code?
I use a combination of manual testing, unit testing, and debugging tools to identify bugs in my code.
Perform manual testing by running the code and checking for any unexpected behavior or errors.
Write unit tests to verify the functionality of individual components and catch any issues early on.
Utilize debugging tools like breakpoints, logging, and stack traces to track down the root cause of bugs.
Collaborate with team members to review code and identify potential issues throu...read more
Q6. Check whether a given graph is cyclic
To check if a graph is cyclic, use depth-first search to detect back edges.
Perform a depth-first search on the graph and keep track of visited nodes and parent nodes.
If a visited node is encountered with a parent different from the current node, then the graph contains a cycle.
Example: For a graph with edges (A, B), (B, C), (C, A), the graph is cyclic.
More about working at IBM
Interview Process at NASDAQ
Top Full Stack Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month