Académique Documents
Professionnel Documents
Culture Documents
SET
1. TCS ASPIRE : Know your TCS quiz answers 2012
# Question 1 of 10 10.0 Points
When and where was TCS founded?
A. 1968, Mumbai
B. 1954, Mumbai
C. 1968, Jamshedpur
D. 1954, Coimbatore
Answer Key: A
Answer Key: D
public offer in
A. 2006
B. 1999
C. 2004
D. 2002
Answer Key: C
TCS is listed on which stock exchanges?
A. BSE and CSE
B. BSE and NSE
C. CSE, BSE and NSE
D. BSE, NSE and Nasdaq
2. TCS ASPIRE: Basic Programming Quiz
# Question 1 of 10 10.0 Points
What is a variable in a computer program?
A. An output
B. A value such as 5
C. The name given to a value
D. An input argument
Answer Key: C
Answer Key: D
# Question 3 of 10 10.0 Points
A variable will last until
A. the value of the variable is used in the program
B. The program completes and exit
C. Hard disc is formatted
D. Computer is switched off
Answer Key: B
# Question 4 of 10 10.0 Points
In a Javascript program, the word preceding the . represents
A. A program name
B. An object
C. An action by an object
D. A command
Answer Key: B
C. An instruction
D. A sequence of instructions
Everything in UNIX is
A. None
B. a Process
C. a file or a process
D. a File
Answer Key: C
# Question 5 of 10 10.0 Points
Which command is used for changing directory in UNIX?
A. mkdir
B. cd
C. chgdir
D. cddir
Answer Key: B
# Question 6 of 10 10.0 Points
In UNIX, file permissions are not set for
A. User
B. Other users
C. Devices
D. User Groups
Answer Key: C
# Question 7 of 10 10.0 Points
In Unix, how can you read the manual help pages about a command
A. Type help and the command
B. Type options and the command
C. Type details and the command
D. Type man and the command
Answer Key: D
# Question 8 of 10 10.0 Points
Which is the most common text editor in UNIX ?
A. Visual editor
B. notepad
C. Word
D. Open office
Answer Key: A
# Question 9 of 10 10.0 Points
You have created a shell script and wants to run the script. What should you
do before trying to run the script ?
A. No action required
B. Compile the script to create the executable
C. Update the execute permission of the script
D. Give ownership of the file to system admin
Answer Key: C
# Question 10 of 10 10.0 Points
Which is valid mode of operation in vi editor ?
A. Typing mode
B. Command Mode
C. Append mode
D. Open mode
Answer Key: B
True
False
Answer Key: False
# Question 9 of 10 10.0 Points
Concurrency refers to multiple transactions accessing the same database at
the same time. In a system which allows concurrency, some kind of control
mechanism has to be in place to ensure that concurrent transactions do not
interfere with each other.
True
False
Answer Key: True
# Question 10 of 10 10.0 Points
Software genetic development process contains three genetic phrases
namely
A. Software engineering, Definition, Coding
B. Definition, development, maintenance
C. Coding, design, Software engineering
D. Design, Coding, Development
E. Development, Definition, Testing
Answer Key: B
A. 7sct 5a9
B. None of the above
C. 7 sct
D. Change 7 sct 5a9
Answer Key: D
# Question 10 of 10 10.0 Points
What is joining a Table to itself called?
A. Self Join
B. Outer join
C. Left inner join
D. Inner join
Answer Key: A
2012 TCS ASPIRE : Java quiz
# Question 1 of 10 10.0 Points
Among the following options, choose the four options that describe the
appropriate default values for array elements of the types indicated?
1. int -> 0
2. String -> null
3. Dog -> null
4. char -> \u0000
5. float -> 0.0f
6.boolean -> true
A. 1, 2, 3, 4
B. 2, 4, 5, 6
C. 3, 4, 5, 6
D. 1, 3, 4, 5
Answer Key: 1, 3, 4, 5
Answer Key: A
Question 6 of 10 10.0 Points
The JavaScript is also known as server-side JavaScript.
A. Navigator
B. Microsoft
C. LiveWire
D. Native
Answer Key: C
Question 7 of 10 10.0 Points
The following code would allow you to set background with CSS:
<style type=text/css>
body {background-color: yellow}
</style>
True
False
Answer Key: True
Question 8 of 10 10.0 Points
If para1 is the DOM object for a paragraph, what is the correct syntax to
change the text within the paragraph?
A. para1.firstChild.nodeValue= New Text;
B. para1.nodeValue=New Text;
C. New Text?
D. para1.value=New Text;
Answer Key: D
Question 9 of 10 10.0 Points
How does JavaScript store date in a date object?
A. None of the above
If para1 is the DOM object for a paragraph, what is the correct syntax to
change the text within the paragraph?
A. para1.firstChild.nodeValue= New Text;
B. para1.nodeValue=New Text;
C. para1.value=New Text;
D. New Text? Reset Selection
Question 8 of 10 10.0 Points
Among the following options, select the command that you can use to link a
page with an HTML page?
A. <a attach=\page.htm\ ></a>
B. <a connect=\page.htm\ ></a>
C. <a href=\page.htm\?
phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e
0b88acea2d2a393515f6bf38f2 ></a>
D. <a link=\page.htm\ ></a>
Question 10 of 10 10.0 Points
Why would you use variables in JavaScript programs?
A. For Varying randomly
B. For storing numbers, dates, or other values
C. For causing high-school algebra flashbacks
D. None
Question 9 of 10 10.0 Points
Which of the following tags would you use to insert JavaScript in an HTML
page?
A. <script type=text/javascript></script>
B. <HTMLScript type=text/javascript></HTMLScript>
C. <JavaScript type=text/javascript></JavaScript>
D. <JScript type=text/javascript></JScript>
Q: You used CSS class into your html, but divided your page without break
line. Which of following would you have to use?
A. <div> </div>
B. None
C. <p>
D. <span></span>
In an HTML document, which is the correct place to refer to an external style
sheet?
A. In the <body> section
B. In the <head> section
C. At the end of the document
D. At the beginning of the document
Question 1 of 10 10.0 Points
How would you define First-line pseudo-element in CSS?
A. select:pseudo-element {property: value}
B. selector:pseudo-elements {property: values}
C. selector:pseudo-element {property: value}
D. None of the options
Question 4 of 10 10.0 Points
Among the following options, choose the correct syntax used for external
CSS?
A. <style type=text/css>
body {background-color: red}
</style>
B. None
C. <link rel=stylesheet type=text/css href=r4rcss.css>
Here r4rcc.css is in to same directory .
D. Both
1.What is the correct syntax of the declaration which defines the XML
version?
Option:
a. < ? xml version=1.0 ? >
b. < xml version=1.0 />
c. < xml version=1.0? />
d. None of the above
e. < ? xml version=1.0 ? />
Ans: a
2.What is the correct syntax for referring to an external script called xxx.js?
option: a. None
b. < script type=text/javascript name=xxx.js >
c. < script type=text/javascript href=xxx.js >
d. < script type=text/javascript src=xxx.js >
ans: d
3. What is the correct HTML for referring to an external style sheet?
option : a. < stylesheet>mystyle.css
b. None of the above
c. < style src=mystyle.css />
d. < link =stylesheet type=text/css/script href=mystyle.css >
e. < link rel=stylesheet type=text/css href=mystyle.css />
Ans: e
4. What can you use to replace like with hate in I like Eminem?
Option : a. preg_replace(/like/, /hate/, I like Eminem)
b. preg_replace(hate, like, I like Eminem)
c. preg_replace(/like/, hate, I like Eminem)
phpMyAdmin=70ac9566533a2665b6597346aab7f985&phpMyAdmin=f43d4e
0b88acea2d2a393515f6bf38f2 ></a>
D. <a attach=\page.htm\ ></a>
ans- c
QSTN-How would you set a CSS comment?
ANS- /*, */,
QSTN-How would you define CSS padding?
ANS-p {padding: 2%; border: 1px solid black; }
h5{padding: 0px; border: 1px solid red;}
QSTN- Which of the following popup boxes would you use to get some
information from the user?
ANS-prompt
Only Answers, no ques :P
. td.test1 {padding: 2.0cm}
Case incensitive
B. <script type=text/javascript></script>
E. Is used to break a line.
D. <script src= abc.js>
B. How to display HTML elements
True
C. id selector as #
B. prompt(Write here some text,Write default value here)