wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Summer Code Camp - Lesson 1

Total questions: 10

Worksheet time: 60secs

Name
Class
Date
1.

Which command initializes a new Git repository?

a)

git new

b)

git create

c)

git init

d)

git start

2.

How can you view the commit history in Git?

a)

git status

b)

git log

c)

git history

d)

git commit

3.

Which command shows the status of changes in the repository?

a)

git status

b)

git commit

c)

git view

d)

git log

4.

Git command help you find a file in your commit file

a)

git grep

b)

git find

c)

git log

d)

git show

5.


How do you supply a commit message to a commit?

a)


git add "My first commit"

b)


git commit -m "I'm coding!"

c)


git commit "My first commit"

d)


git add -m "My first commit"

6.

In C#, the multi-line comments placed within the ___.

a)
  1. // and //

b)
  1. \\ and //

c)
  1. <!-- and -->

d)
  1. /* and */

7.

Which is the correct C# statement to convert a float value to int explicitly?

a)
  1. int_variable = (int) float_variable;

b)
  1. int_variable = float_variable;

c)
  1. int_variable = (int) (float_variable);

d)
  1. int_variable = int *float_variable);

8.

What will be the output of the program?

a)

30

b)

30.5

c)

Compile-time error

d)

Runtime error

9.


’Implicit Conversion’ follows the order of conversion as per compatibility of datatype as :

a)

float > char > int

b)

char > int > float

c)

int > char > float

d)

float > int > char

10.


Which of the conversions are valid for the given set of code?

a)

c = a, b = c

b)

b = a, c = a

c)

a = c, b = a

d)

All of the mentioned