Add office photos
Engaged Employer

GlobalLogic

3.7
based on 4.4k Reviews
Filter interviews by

PTC Interview Questions and Answers

Updated 13 Dec 2024
Popular Designations

Q1. image in pop up how would you redirect user to a different website without using events(using setTimeout()) finding 7th highest salary from a table in sql duplicating tables in sql immediately invoked function...

read more
Ans.

Technical interview questions for Associate Software Engineer position

  • To redirect user to a different website without using events, use window.location.replace() method

  • To find 7th highest salary from a table in SQL, use subquery or join with itself

  • To duplicate tables in SQL, use CREATE TABLE AS or SELECT INTO statement

  • Immediately invoked function is a function that is executed as soon as it is defined

  • To change array element of array defined by const keyword in JavaScript, use...read more

Add your answer

Q2. prime number 1 to 100 and sql query for 3rd highest salary

Ans.

Prime numbers 1 to 100 and SQL query for 3rd highest salary.

  • Prime numbers from 1 to 100: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97

  • SQL query for 3rd highest salary: SELECT salary FROM employees ORDER BY salary DESC LIMIT 2, 1

Add your answer

Q3. difference in put and post command

Ans.

PUT is used to update or replace an existing resource, while POST is used to create a new resource.

  • PUT is idempotent, meaning multiple identical requests will have the same effect as a single request.

  • POST is not idempotent, meaning multiple identical requests may have different effects.

  • PUT requests are typically used for updating existing data, like updating a user's profile information.

  • POST requests are typically used for creating new data, like adding a new user to a databa...read more

Add your answer

Q4. How to implement Singleton

Ans.

Singleton is a design pattern that restricts the instantiation of a class to one object.

  • Create a private static instance variable of the class.

  • Create a private constructor to prevent instantiation from outside the class.

  • Provide a public static method to access the instance.

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

Q5. what is table tag

Ans.

The table tag is an HTML element used to create a table structure on a web page.

  • The table tag is used to define the start and end of a table.

  • It is typically used in conjunction with the tr (table row) and td (table data/cell) tags.

  • Tables can be used to display tabular data, such as a list of items or a grid of information.

  • Table tags can also include attributes like border, cellpadding, cellspacing, etc.

  • Example:

    Cell 1Cell 2

Add your answer

Q6. give inner join operation

Ans.

Inner join is an operation that combines rows from two or more tables based on a related column between them.

  • Inner join returns only the matching rows between the tables.

  • It is performed using the JOIN keyword in SQL.

  • The common column used for joining should have the same data type in both tables.

  • Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column;

Add your answer

Q7. SQL joins in Detail ?

Ans.

SQL joins are used to combine rows from two or more tables based on a related column between them.

  • Types of SQL joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.

  • INNER JOIN returns rows when there is at least one match in both tables.

  • LEFT JOIN returns all rows from the left table and the matched rows from the right table.

  • RIGHT JOIN returns all rows from the right table and the matched rows from the left table.

  • FULL JOIN returns rows when there is a match in one of ...read more

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

Interview Process at PTC

based on 14 interviews
3 Interview rounds
Technical Round - 1
Technical Round - 2
One-on-one Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Associate Software Engineer Interview Questions from Similar Companies

3.7
 • 60 Interview Questions
3.6
 • 19 Interview Questions
3.4
 • 18 Interview Questions
4.0
 • 18 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
70 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