0% found this document useful (0 votes)
153 views23 pages

Quiz 1 - HTML - CSS - Python - Git

Uploaded by

Blink
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
153 views23 pages

Quiz 1 - HTML - CSS - Python - Git

Uploaded by

Blink
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 23

Information Security Policy : Distribution restricted to the Client & Group only

For NTT DATA Global Services Corporation

7/Aug/2020
Quiz 1 – HTML/CSS/Python/Git

© 2020 NTT DATA, Inc. All rights reserved.


Agenda
 Quiz
 HTML
 CSS
 Python
 Git

© 2020 NTT DATA, Inc. All rights reserved. 2


Quiz - HTML

With which
1. Which command
attribute do you
is used unstageana advisory
to provide file? text about an element or its contents?
» tooltip
» dir
» title
» head

2. The _____________ attribute specifies an inline style associated with an element, which determines the
rendering of the affected element

» dir
» style
» class
» article

© 2020 NTT DATA, Inc. All rights reserved. 3


Quiz - HTML

With which
3. The command
elements <DIV>doand
you<SPAN>
unstagehave
a file?
the following characteristics
» Element <DIV> inherits properties defined for <SPAN> in a stylesheet
» Elements <SPAN> and <DIV> define content to be inline or block-level
» <DIV> and <SPAN> are used as alternatives for the element <P>
» <DIV> is used inside element <P>

4. Which of these tags are all <table> tags?

» <table><head><tfoot>
» <table><tr><td>
» <table><tr><tt>
» <thead><body><tr>

© 2020 NTT DATA, Inc. All rights reserved. 4


Quiz - HTML

With which
5. How can command
you open adolink
youinunstage a file? window?
a new browser
» <a href="url" new>
» <a href="url" target="new">
» <a href="url" target="_blank">
» <a href="url" target="">

6. What is the correct HTML for creating a hyperlink?

» <a name="">A</a>
» <a>B</a>
» <a href="http://www.example.com">example</a>
» <a url="http://www.example.com">example</a>  

© 2020 NTT DATA, Inc. All rights reserved. 5


Quiz - HTML

With which
7. What command
is the doway
preferred youfor
unstage
addinga afile?
background color in HTML?
» <body background="yellow">
» <background>yellow</background>
» <body style="background-color:yellow">  
» <background color="yellow">text<background>

8. How can you create an e-mail link?

» <mail href="a@b">
» <mail>a@b</mail>
» <a href="a@b">
» <a href="mailto:[email protected]">

© 2020 NTT DATA, Inc. All rights reserved. 6


Quiz - CSS

With which
1. If we command
want to wrap ado you of
block unstage a file?an image, which css property will we use ?
text around
» wrap
» float
» push
» align

2. If we want to use a nice looking green dotted border around an image, which css property will we use?

» border-color
» border-style
» border-decoration
» border-line

© 2020 NTT DATA, Inc. All rights reserved. 7


Quiz - CSS

With which
3. What command
should be the do youwidth,
table unstage a file?
so that the width of a table adjust to the current width of the browser window?
» 640 pixels
» full-screen
» 100%
» 1024 px

4. Which element is used in the <HEAD> section on an HTML, if we want to use an external style sheet file to
decorate the page ?

» <src>
» <style>
» <css>
» <link>

© 2020 NTT DATA, Inc. All rights reserved. 8


Quiz - CSS
5. Which
With attribute
which command can do
be you
added to many
unstage HTML / XHTML elements to identify them as a member of a specific
a file?
group ?
» id
» class
» div
» span

4. How can we write comment along with CSS code ?

» /* a comment */
» / a comment /
» // a comment //
» <' a comment'>

© 2020 NTT DATA, Inc. All rights reserved. 9


Quiz - CSS

7. Which
With CSS
which propertydoisyou
command used to control
unstage the text size of an element ?
a file?

» font-style
» font-size
» text-size
» text-style

8. Which css property you will use if you want to add some margin between a DIV's border and its inner text ?

» spacing
» padding
» margin
» Inner-margin

© 2020 NTT DATA, Inc. All rights reserved. 10


Quiz - Python

With which
1. What willcommand do you
be the output unstage
of the a file?
following Python statement?

>>>"abcd"[2:]
checkout
» ab
» dc
» cd

2. What will be the output of the following Python statement?

>>>print(‘any’.encode())

» ‘any’
» b’any’
» x’any’
© 2020 NTT DATA, Inc. All rights reserved. 11
Quiz - Python

With which command


3. Suppose do you
we are given withunstage a file? then what is the output of the code − s1+s2
two sets(s1&s2)

» Adds the elements of the both the sets


» Removes the repeating elements and adds both the sets
» It is an illegal command
» Output will be stored in s1

4. Which is the special symbol used in python to add comments?

» $
» //
» /*…….*/
» #
© 2020 NTT DATA, Inc. All rights reserved. 12
Quiz - Python

5. Suppose
With which command
B is a subclass
do youofunstage
A, to invoke
a file?
the __init__ method in A from B, what is the line of code you should
write?

» A.__init__(self)
» B. __init__(self)
» A. __init__(B)
» B. __init__(A)

6. To insert 5 to the third position in list1, we use which command?

» list1.insert(3, 5)
» list1.insert(2, 5)
» list1.add(3, 5)
» list1.append(3, 5)
© 2020 NTT DATA, Inc. All rights reserved. 13
Quiz - Python

With which command do you unstage a file?


7. Command used to check python version in cmd

» a. python --version
» b. python –V
» c. python --V
» d. both a and b

8. Choose prerequisites to run python code in VS code

» a. VS code + VS code python extension + Python any version


» b. VS code + Python latest version only
» c. VS code + VS code python extension
» d. Both a and b
© 2020 NTT DATA, Inc. All rights reserved. 14
Quiz - Git

With which
1. Which of command do you
these Git client unstage acreates
commands file? a copy of the repository and a working directory.

» checkout
» clone
» Import
» update

2. Can you go back in Git and modify commits that were already made?

» Yes, if you haven’t pushed these commits.


» Yes, if you have the commercial version of Git.
» Yes, if you have administrator privileges.

© 2020 NTT DATA, Inc. All rights reserved. 15


Quiz

3. What
With which
happens
command
in a Git
do you
when
unstage
a conflict
a file?
occurs between your changes and someone else’s?

» Git tries to merge the changes automatically, falling back to the user if it cannot.
» The program shuts down and needs to be unlocked by an administrator.
» Whoever made the first change wins, the lost work has to be re-done.

4. What kind of Version Control System is Git?

» Centralized Version Control


» Local version Control
» Distributed Version Control

© 2020 NTT DATA, Inc. All rights reserved. 16


Quiz

5. Which
With Gitcommand
which commanddochanges whereathe
you unstage file?HEAD pointer points and modifies the contents of the working
directory?

» checkout
» clone
» merge
» checkout -b

6. To create a new branch and switch to it you can either run two commands or just run _____.

» Git add -b
» Git checkout –b <branch_name>
» Git apply –b
» Git checkout add <branch_name>
© 2020 NTT DATA, Inc. All rights reserved. 17
ANSWERS

© 2020 NTT DATA, Inc. All rights reserved. 18


Answers - HTML

Answers - Python

1. title - The extra information about an element is specified by title tag.


2. Style
3. Elements <SPAN> and <DIV> define content to be inline or block-level
4. <table><tr><td>
5. <a href="url" target="_blank">
6. <a href="http://www.example.com">example</a>
7. <body style="background-color:yellow">
8. <a href="mailto:[email protected]">

© 2020 NTT DATA, Inc. All rights reserved. 19


Answers - CSS

Answers - Python

1. float
2. border-style
3. 100%
4. <link>
5. Class
6. /* a comment */
7. font-size
8. padding

© 2020 NTT DATA, Inc. All rights reserved. 20


Answers - Python

Answers - Python

1. cd - Slice operation is performed on string.


2. b’any’ - encode() returns bytes object.
3. It is an illegal command - + Operator cannot be operated on the sets.
4. #
5. A.__init__(self) - To invoke the __init__ method in A from B, either of the following should be writte
n: A.__init__(self) or super().__init__(self).
6. list1.insert(2, 5)
7. both a and b
8. a. VS code + VS code python extension + Python any version

© 2020 NTT DATA, Inc. All rights reserved. 21


Answers - Git

Answers - GIT

1. clone
2. Yes, if you haven’t pushed these commits.
3. Git tries to merge the changes automatically, falling back to the user if it cannot.
4. Distributed Version Control
5. checkout
6. Git checkout –b <branch_name>

© 2020 NTT DATA, Inc. All rights reserved. 22


© 2020 NTT DATA, Inc. All rights reserved.

You might also like