Tech Mahindra Model Questions & Answers
Tech Mahindra Model Questions & Answers
Tech Mahindra Model Questions & Answers
Q1. The switch statement is used in programming as a replacement for multiple ______
statements.
A. If
B. while
C. for
D. do
Answer: A
Q2. Which of the following is the correct variable declaration to store a 3 by 3 matrix of BMI
measurements of 9 patients, e.g. 22, 28.2, 23, 26.5, etc?
A. int bmi[3][3];
B. long bmi[3][3];
C. float bmi[3][3];
D. float bmi[3,3];
Answer: C
Q3. Which of the following is the production/platform used to abstract hardware to create an
illusion of running multiple machines?
A. VMWare
B. Linux
C. Hadoop
D. MachineWare
Answer: B
Q4. Incase of RDBMS, how many primary key can be defined for each table?
A. One for every column
B. One for every row
C. Only one
D. Upto 5
Answer: C
Q6. Why typically a long program is divided into smaller functions or procedures?
A. To increase performance
Tech Mahindra Model Questions & Answers
Q9. Which SQL command is used to change the data in the rows of a database table?
A. Update
B. Modify
C. Alter
D. Delete
Answer: C
Q10. If you want to connect to your own computer through the internet from another location
which program can you use?
A. Telnet
B. Ping
C. HTML
D. CMD
Answer: A
Q11. Which of the following tools is used to allow multiple programmers to work efficiently on the
same project without duplication or inconsistencies?
A. GIT
B. Windows
C. JDK
D. Junit
Tech Mahindra Model Questions & Answers
Answer: A
Q12. What is the characteristic of a program which makes it easier to add more features to it in
future?
A. Scalability
B. Extensibility
C. Reusability
D. Performance
Answer: A
Q13. How do you ensure that the password for an important website is kept secure?
A. Allow the browser to store it
B. Use a very long password
C. Write it down in a safe place
D. None of the above
Answer: B
Q14. Which of the following protocols is used by the web servers to serve web pages in a
secure manner?
A. HTTPS
B. HTTP
C. STP
D. TCP/IP
Answer: A
Q16. What is the type of error called when the program runs but does not give the expected
output?
A. compiler-error
B. semantic error
C. run-time error
D. Exception
Answer: B
Tech Mahindra Model Questions & Answers
Q17. Which programming construct is used to repeat a block of code when the number of
iterations is known in advance?
A. if
B. while
C. for
D. Switch
Answer: C
Q19. A valid grouping of letters, symbols, and numbers being used to represent the value of one
or more variables is known as
A. Class
B. Expression
C. Statement
D. Object
Answer: A
Q21. What is the browser feature useful to add functionality to the Chrome browser by
third-parties ?
A. Bookmarks
B. Favourites
C. plugin
D. applets
Answer: C
Q22. In a relational database, which of the following features is useful in faster access to data?
A. Cataloging
Tech Mahindra Model Questions & Answers
B. Sorting
C. Indexing
D. Encryption
Answer: A
Q23. Which of the following is used to define the visual aspect of web page separately from the
content? https://www.freshersnow.com/placement-papers-download/
A. CSS
B. HTML
C. DHTML
D. Javascript
Answer: A
Q25. ________ is a piece of information specific to the user stored by a website on user’s
machine
A. Pointer
B. Token
C. Cookie
D. URL
Answer: C