βπ»βπ»......πππ......βπ»βπ»
Q:- What does the following string do to given string str1.
String str1 = βComputerKnowledgeβ.replace(βeβ,βsβ);
Q:- What does the following string do to given string str1.
String str1 = βComputerKnowledgeβ.replace(βeβ,βsβ);
Anonymous Quiz
28%
Replaces single occurrence of βeβ to βsβ.
49%
Replaces all occurrences of βeβ to βsβ.
16%
Replaces single occurrence of βsβ to βeβ.
7%
None
βπ»βπ»......πππ......βπ»βπ»
Q: To which of the following does the class string belong to.
Q: To which of the following does the class string belong to.
Anonymous Quiz
23%
java.lang
22%
java.awt
21%
java.applet
33%
java.string
Good morning all we start today Git MCQ Questions
βπ»βπ»......πππ......βπ»βπ»
1. Which Command is used to show limited number of commits?
1. Which Command is used to show limited number of commits?
Anonymous Quiz
17%
git fetch <remote>
43%
git log -n <limit>
34%
git config <limit>
7%
git status
βπ»βπ»......πππ......βπ»βπ»
2. Which command defines the author email to be used for all commits by the current user.
2. Which command defines the author email to be used for all commits by the current user.
Anonymous Quiz
10%
git clean -f
60%
git config --global user.email
19%
git merge --no-ff
12%
git email--amend
βπ»βπ».......πππ......βπ»βπ»
3. ____________ command is useful for getting a high-level overview of the project history.
3. ____________ command is useful for getting a high-level overview of the project history.
Anonymous Quiz
25%
git log --oneline
31%
git reset --hard
34%
git log --author=""
10%
Β git rebase
βπ»βπ»......πππ......βπ»βπ»
4. ___________________ removes untracked files from your working directory
4. ___________________ removes untracked files from your working directory
Anonymous Quiz
15%
git commit
44%
git clean -f
31%
git clean
10%
git reset
βπ»βπ»......πππ......βπ»βπ»
5. Which command creates an empty Git repository in the specified directory?
5. Which command creates an empty Git repository in the specified directory?
Anonymous Quiz
22%
git reset
31%
git log ..
34%
git init
13%
git init --bare
βπ»βπ»......πππ......βπ»βπ»
6. Command to download all the objects and references from a specified repository
6. Command to download all the objects and references from a specified repository
Anonymous Quiz
28%
git config --list
29%
git help
35%
git fetch
9%
git log -n
βοΈβοΈ......πππ......βοΈβοΈ
Q :You can add a row using SQL in a database with which of the following?
Q :You can add a row using SQL in a database with which of the following?
Anonymous Quiz
19%
A. ADD
28%
B. CREATE
50%
C. INSERT
4%
D. MAKE