wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

FE Chapter 3 quiz

Total questions: 56

Worksheet time: 53mins

Name
Class
Date
1.

Identify the command which is used to remove files.

a)

delete

b)

rm

c)

dm

d)

erase

2.

Identify the command which is used to remove directory.

a)

rd

b)

remove

c)

rmdir

d)

rdir

3.

Which of the following sign is used to represent the user home directory?

a)

/

b)

.

c)

~

d)

..

4.

Which of the following command is used to change the working directory?

a)

changed

b)

chdr

c)

dr

d)

cd

5.

Which of the following commands is used to display and create files?

a)

cat

b)

lyrix

c)

vi

d)

ed

6.

Which one is not text editor

a)

Visual Studio Code

b)

Sublime

c)

Bash

d)

Atom

7.

String path written start from root directory is called

a)

Relative path

b)

Absolute path

c)

Inline path

d)

Root path

8.

Which command is used to go back from a folder to the folder before that?

a)

cd ..

b)

cd

c)

cd /

d)

chdir

9.

Which command is used to create a new file?

a)

create

b)

file

c)

tch

d)

touch

10.

Which command is used to move files through the command line?

a)

move

b)

mv

c)

ren

d)

loc

11.

Which Command is used to show limited number of commits?

a)

git status

b)

git config

c)

git log -n

d)

git fetch

12.

Which command defines the author email to be used for all commits by the current user:

a)

git config --global user.email

b)

git email--amend

c)

git merge --no-ff

d)

git clean -f

13.

Command to download all the objects and references from a specified repository:

a)

git log -n

b)

git config --list

c)

git help

d)

git fetch

14.

Which following git command that clone your repository from your Github

a)

git clone

b)

git commit

c)

git fork

d)

git push

15.

Which of the following shortcut to staging all the changes you have?

a)

git add .

b)

git commit

c)

git commit add

d)

git push -am "Message"

16.

What is full form of VCS?

a)

Version Configuration Solutions

b)

Version Configuration System

c)

Version Control System

d)

Version Consolidated Solutions

17.

Git is a

a)

Localized version control system

b)

Distributed version control system

c)

Centralized version control system

d)

None

18.

The files that can be committed are always present in git in ...

a)

staging area

b)

unstaged area

c)

working directory

d)

none

19.

Git can be used for which project?

a)

.net project

b)

file version management

c)

java enterprise project

d)

All of the above

20.

Which command helps us to see the tracked, untracked files and changes but does not show any commit records?

a)

git diff

b)

git status

c)

git log

d)

None of these

21.

Git log command contains following data:

a)

commit date metadata

b)

commit hash

c)

commit author metadata

d)

All of the above

22.

After you add a file, it becomes

a)

Commited

b)

Modified

c)

Staged

d)

Untracked

23.

Which of the following is true you when you use the following command? git add -A

a)

All new and updated files are staged

b)

Files are staged in alphabetical order.

c)

All new files are staged

d)

Only updated files are staged

24.

How do you supply a commit message to a commit?

a)

Git message "My first commit"

b)

Git add "My first commit"

c)

Git commit "My first commit"

d)

Git commit -m "I'm coding!"

25.

Which two configuration properties does the tool expect to be configured after installing Git and prior to issuing the first commit?

a)

email address and password

b)

username and password

c)

username and IP address

d)

username and email address

26.

What's a shortcut to staging all the changes you have?

a)

Git commit add .

b)

Git commit .

c)

Git add .

d)

Git stage -a

27.

Which of the following commands is used in switching between branches?

a)

Git branch

b)

Git checkout

c)

Git switch

d)

Git merge

28.

Which command should you use to initialize a new git repository?

a)

git bash

b)

git install

c)

git init

d)

git start

29.

What command removes untracked files from your working directory.

a)

git commit

b)

git clean -f <path>

c)

git clean

d)

git reset

30.

Command to add particular file changes to staging area from working directory?

a)

git pull

b)

git add .

c)

git add filename

d)

git commit -m

31.

To use flexbox we define a container as a flexbox. What is the CSS to do this?

a)

position:absolute;

b)

display:flex;

c)

float:left;

d)

display:block;

32.

 

flex-direction allows you to do what?

a)

define the direction of how elements are positioned based on either row or column

b)

define how elements will wrap when the browser width is changed

c)

define how to position elements vertically

d)

defines how position elements horizontally

33.

flex-wrap allows you to do what?

a)

define the direction of how elements are positioned based on either row or column

b)

define how to position elements vertically

c)

define how elements will wrap when the browser width is changed

d)

defines how position elements horizontally

34.

justify-content allows you to do what?

a)

define the direction of how elements are positioned based on either row or column

b)

define how to position elements vertically

c)

define how elements will wrap when the browser width is changed

d)

defines how position elements horizontally

35.

 

align-items allows you to do what?

a)

define the direction of how elements are positioned based on either row or column

b)

define how to position elements vertically

c)

define how elements will wrap when the browser width is changed

d)

defines how position elements horizontally

36.

 

flex-basis defines

a)

the width of the flex element

b)

the boldness of the flex element

c)

the base of the flex element

d)

if the flex element is visible

37.

flex-grow is applied to the flex element, not the whole flexbox

a)

true

b)

false

38.

flex-direction is applied to a flex element not the whole flex box

a)

true

b)

false

39.

 

the css property "order" for flex items allows you to

a)

specify in what order the flex items appear

b)

specify at what time flex items appear

c)

specify in what direction the flex items appear

d)

none of the above.

40.

flex-flow is a shortcut to define flex-direction and flex-wrap

a)

true

b)

false

41.

Which of the following is most suitable for a grid layout?

a)

toolbar

b)

menu

c)

form

d)

complex layout, like a newspaper

42.

Which model includes margin, border, padding, and content?

a)

CSS Box model

b)

CSS3 Grid Layout model

c)

CSS3 Flexbox Box model

d)

CSS Grid Template Layout Module

43.

Which model defines structures similar to tables using 2 dimensions?

a)

CSS Box model

b)

CSS3 Grid Layout model

c)

CSS3 Flexbox Box model

d)

CSS float

44.

You are creating a grid layout. What does 1fr mean in the following code?

grid-template-columns: 150px 150px 1fr 1fr;

a)

The first two columns will be two fraction units of the stated width.

b)

The third and fourth columns is 1 fraction unit of the remaining space in the grid.

c)

The second column will be double the stated width.

d)

The second column will be half of the remaining space in the grid.

45.

How many columns and rows are defined in the following code?

section {

display: grid;

grid-template-columns: 100px 1fr 1fr 250px;

grid-rows: 50px 1fr 1fr ;

}

section header {

grid-column: 1 / 4;

grid-row: 1;

}

section nav {

grid-column: 1;

grid-row: 2 / 3;

}

section article {

grid-column: 2;

grid-row: 2;

}

section aside {

grid-column: 3;

grid-row: 2;

}

section footer {

grid-column: 1 / 4;

grid-row: 3;

}

a)

1 rows and 2 columns

b)

3 rows and 2 columns

c)

2 rows and 3 columns

d)

3 rows and 4 columns

46.

 

What do we use to define the display type, width, height, orientation and resolution of media devices?

a)

HTML tag

b)

Viewport meta tag

c)

CSS media queries

d)

Javascript script

47.

Which one of the following items will not achieve a responsive website?

a)

Media queries

b)

Fixed layout.

c)

Flexible media

d)

Flexible layout

48.

In responsive design, which one of the following screen sizes should you start with in planning your design?

a)

Small screen size of mobile phones.

b)

Medium screen size of phablets

c)

Standard screen size of laptops.

d)

Wide screen size of LCD monitors

49.

Responsive web design enables web page layouts to adapt to a variety of screen sizes. Which one of the following items are used to achieve this adaptive capability?

a)

Use fluid grid layout.

b)

Use fixed and fluid grid layout

c)

Use fixed grid layout

d)

Use fixed, fluid and elastic layout

50.

 

Which one of the following viewport meta tags is the default meta tag that adapts to different devices in responsive web design?

a)

<meta name="viewport" content="width=device-width, initial-scale=1">

b)

<meta name="viewport" content="width=1024">

c)

<meta name="viewport" content="width=500, initial-scale=1">

d)

<meta name="viewport" content="width=720”>

51.

What is/are the unit/s of grids in fluid layouts?

a)

123

b)

123

c)

pixel

d)

percentages

52.

Where do you place the viewport metatag?

a)

<head> section.

b)

Anywhere in an html page.

c)

<body> section.

d)

At the start before the <html> tag.

53.

Refer to the CSS media queries, what does the min-width of 480px mean?

<style>

body {

background-color: lightblue;

}

@media screen and (min-width: 480px) {

body {

background-color: lightgreen;

}

}

</style>

a)

The CSS code will apply if the viewport is 480px and below.

b)

The CSS code will apply if the viewport is 480px and above.

c)

The CSS code will apply on device with width of less than 480px.

d)

The CSS code will apply on device with width of more than 480px.

54.

 

Refer to the CSS media queries below, how many breakpoints are there?

<style>

body {

background-color: grey;

}

@media screen and (max-width: 960px) {

body {

background-color: red;

}

}@media screen and (max-width: 768px) {

body {

background-color: orange;

}

}

@media screen and (max-width: 550px) {

body {

background-color: yellow;

}

}@media screen and (max-width: 320px) {

body {

background-color: green;

}

}</style>

a)

2

b)

1

c)

3

d)

4

55.

What is a viewport?

a)

It is the user's visible area of a web page on any display device.

b)

It is the width and height of a mobile device.

c)

It is the width of any display device.

d)

It is the width and height of a tablet device.

56.

 

In responsive web design, what are breakpoints?

a)

They are browser widths where the web page layout changes once the browser is within the declared range.

b)

They are the widths of sidebars and main content areas of websites.

c)

They are signals that tell the debugger to temporarily suspend execution of your program at various set points.

d)

They are the different device widths.