HTC
10+ Premium Transmission Interview Questions and Answers
Q1. Write a program to get the user name and age Condition: The name should be more than 6 characters and it shouldn’t contain any other characters than alphabet(like !,@,#,$,^,& these are not to be present) The...
read moreA program to get user name and age with specific conditions.
Use input() function to get user name and age.
Use isalpha() function to check if name contains only alphabets.
Use len() function to check if name is more than 6 characters.
Use if-else statements to check age range.
Print the name and age if all conditions are met.
Q2. Write a program to compute the subsequent 1+4+9+16++100 Like this (1^2+2^2) Hint use function pow(a,b)
Program to compute the sum of squares of numbers from 1 to 10.
Use a loop to iterate from 1 to 10
Use pow(a,b) function to calculate the square of each number
Add the squares to a variable to get the sum
Q3. Write a function to get a string and reverse it and display the string
Function to reverse and display a string
Create a function that takes a string as input
Use the split() method to convert the string into an array of characters
Use the reverse() method to reverse the order of the characters in the array
Use the join() method to convert the array back into a string
Return the reversed string
Q4. Where do we define file structure and where do we declare it
File structure is defined in code and declared in the file system.
File structure is defined in the code of the program that creates or uses the file.
The file structure is declared in the file system when the file is created or saved.
The file structure defines the organization of data within the file, such as headers, tables, or records.
Examples of file structures include CSV, XML, JSON, and binary formats.
The file structure can affect how the file is read, written, and proces...read more
Q5. Write any data structure program (stack implementation)
Program to implement stack data structure using array of strings
Declare an array of strings and a variable to keep track of top element
Implement push function to add element to top of stack
Implement pop function to remove top element from stack
Implement peek function to return top element without removing it
Q6. What is Lazy loading in react?
Lazy loading is a technique to load components or resources only when needed.
It improves performance by reducing initial load time.
React.lazy() and Suspense can be used for lazy loading components.
Code splitting can be used for lazy loading resources like images and scripts.
Q7. What is suspense in react ?
Suspense is a React feature that allows components to wait for data before rendering.
Suspense is used to handle asynchronous data fetching in React.
It allows components to render a fallback UI while waiting for data to load.
Suspense is often used with the new React.lazy() function to lazily load components.
It was introduced in React 16.6.
Q8. Tell me some of the control blocks and explain
Control blocks are used in programming to control the flow of execution. Examples include if-else, for, while, and switch.
if-else block is used to execute a certain block of code if a condition is true, and another block of code if the condition is false
for loop is used to execute a block of code a specific number of times
while loop is used to execute a block of code repeatedly as long as a certain condition is true
switch block is used to execute a block of code based on the ...read more
Q9. Which one is faster among TDQ and TSQ
TDQ and TSQ are both IBM mainframe data structures, but their speed depends on the specific use case.
TDQ (Transient Data Queue) is faster for small amounts of data and when the data is being processed by a single program.
TSQ (Temporary Storage Queue) is faster for larger amounts of data and when the data is being shared between multiple programs.
The speed of both TDQ and TSQ can also be affected by factors such as system load and the specific hardware and software configurati...read more
Q10. Diff between dynamic call and static call
Dynamic call is resolved at runtime while static call is resolved at compile time.
Dynamic call is used for polymorphism and late binding.
Static call is faster and more efficient.
Dynamic call is resolved using virtual tables while static call is resolved using function pointers.
Example of dynamic call: virtual functions in C++.
Example of static call: non-virtual functions in C++.
Q11. Tell me some control tables
Control tables are used to manage and control data in a database.
User access control table
Audit trail control table
Configuration control table
Error log control table
Q12. What is FCT and DCT
FCT stands for Forward Cosine Transform and DCT stands for Discrete Cosine Transform.
Both are mathematical techniques used in signal processing and image compression.
FCT is used in audio signal processing while DCT is used in image and video compression.
DCT is widely used in JPEG image compression.
Both transforms convert a signal from the time domain to the frequency domain.
Q13. Diff between COMP1 and COMP2
COMP1 and COMP2 are two different components with distinct features and functionalities.
COMP1 is designed for X while COMP2 is designed for Y
COMP1 has a higher processing speed than COMP2
COMP2 has a larger storage capacity than COMP1
COMP1 is more expensive than COMP2
COMP2 is more energy-efficient than COMP1
Q14. Diff between TDQ and TSQ
TDQ and TSQ are both IBM mainframe data structures, but TDQ is used for temporary storage while TSQ is used for message queuing.
TDQ stands for Temporary Data Queue and is used for temporary storage of data.
TSQ stands for Temporary Storage Queue and is used for message queuing.
TDQ is typically used for short-term storage of data that will be processed immediately.
TSQ is typically used for longer-term storage of data that will be processed at a later time.
TDQ is accessed using ...read more
Q15. Relation between TDQ and DCT
TDQ and DCT are both data management tools used in different stages of data processing.
TDQ stands for Test Data Quality and is used to ensure the accuracy and completeness of data before it is loaded into a system.
DCT stands for Data Conversion Tool and is used to convert data from one format to another.
TDQ is used in the data validation stage, while DCT is used in the data transformation stage.
Both tools are important for ensuring the quality and accuracy of data throughout ...read more
Interview Process at Premium Transmission
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month