Que1:Ingit, The User Configurations On Os Level Can Be Modified by Using Ans
Que1:Ingit, The User Configurations On Os Level Can Be Modified by Using Ans
Ans:gitinit
git add <filename.extension>
git commit -m <message>
Que4:Which query should be used to find all the courses taught in both the 'Fall 2013' semester
and in the 'Spring 2014' semester .
Ans:
Select distinct courseid
from section
where semester = 'Fall' and year= 2013 and
courseid in (select courseid
from section
where semester = 'Spring' and year= 2014);
Ans:
1) NOT NULL
2) UNIQUE
4) PRIMARY KEY
5) CHECK
Que7:Examine the description of the STUDENTS table:
STD_ID NUMBER(4)
COURSE_ID VARCHAR2(10)
START_DATE DATE
END_DATE DATE
Merging means to take all your work from other branch to main branch.
Ans:2) TRUE
Que14:You would like to display the system date in the format "Monday, 01 June,
2001". Which SELECT statement should you use?
Ans:3) SELECT TO_CHAR(SYSDATE, 'Day, DD Month, YYYY') FROM dual;
Que16:Git defined as -
4) Distributed Version Control
Why does the DELETE statement fail when you execute it?
3) User cannot specify column names in the DELETE clause of the DELETE statement
Que20:A college staff can borrow up to 5 books from library, which of the following
models represent the case best?
1) A
2) B
3) C
4) D
Que23:In a given class model, which one of the following statement is true?
Que24:You want to display the titles of books that meet following criteria:
1. Purchased before January 21, 2001
2. Price is less then 500 or greater than 900
You want to sort the results by their date of purchase, starting with the most
recently bought book. Which statement should you use?
Ans:4) SELECT book_title FROM books WHERE (price < 500 OR price > 900) AND
purchase_date < '21-JAN-2001' ORDER BY purchase_date DESC;
Que25:For protecting the client classes from changes in attributes and getting
control over state of the object, which one of the following strategies helps best?
Ans:2) Make all attributes private
Que26:In this class model which one of the following OO principles is clearly
violated?
Ans: 3) Encapsulation
Que31:Which query should be used to find all the courses taught in both the 'Fall
2013' semester and in the 'Spring 2014' semester .
1) Select distinct courseid
from section
where semester = 'Fall' and year= 2013 and
courseid not in (select courseid
from section
where semester = 'Spring' and year= 2014);
2) Select distinct courseid
from section
where semester in ('Fall', 'Spring') and year in (2013,2014);
3) Select distinct courseid
from section
where semester = 'Fall' and year= 2013 and
courseid in (select courseid
from section
where semester = 'Spring' and year= 2014);
4) Select distinct courseid
from section
where semester in ('Fall', 'Spring') or year in (2013,2014);
5) None of the above
Que32:Which query should be used to find all the courses taught in both the 'Fall
2013' semester and in the 'Spring 2014' semester .
1) Select distinct courseid
from section
where semester = 'Fall' and year= 2013 and
courseid not in (select courseid
from section
where semester = 'Spring' and year= 2014);
2) Select distinct courseid
from section
where semester in ('Fall', 'Spring') and year in (2013,2014);
3) Select distinct courseid
from section
where semester = 'Fall' and year= 2013 and
courseid in (select courseid
from section
where semester = 'Spring' and year= 2014);
4) Select distinct courseid
from section
where semester in ('Fall', 'Spring') or year in (2013,2014);
5) None of the above
Que34:For protecting the client classes from changes in attributes and getting
control over state of the object, which one of the following strategies helps best?
Ans: 2) Make all attributes private
Que 36: A college staff can borrow up to 5 books from library, which of the following
models represent the case best?
1) A
2) B
3) C
4) D
Que37:You would like to display the system date in the format "Monday, 01 June,
2001". Which SELECT statement should you use?
Ans:3) SELECT TO_CHAR(SYSDATE, 'Day, DD Month, YYYY') FROM dual;
Merging means to take all your work from other branch to main branch.
1) FALSE
2) TRUE
Que42:The class model of Formatter in the figure demonstrates which Object
Oriented principle(s)
1) Method Overloading
2) Data/Information hiding
3) Method Overriding
4) All of the above
Why does the DELETE statement fail when you execute it?
1) There is no row with dept_id 90 in the EMPLOYEES table.
2) User cannot delete the JOB_ID column because it is a NOT NULL column.
3) User cannot specify column names in the DELETE clause of the DELETE statement
4) User cannot delete the EMPLOYEE_ID column because it is the primary key of the table.
STD_ID NUMBER(4)
COURSE_ID VARCHAR2(10)
START_DATE DATE
END_DATE DATE
Que50: For writing a robust code, which of the following guidelines need to be
followed
Ans: 3) every attribute of class must be private. For information hiding
Que57: Class "Car" inherits from class "Vehicle". Both the classes have method
implementation for start(). Which one of the following OO principles are
demonstrated here?
1) Method overriding
2) Method overloading
3) Reification
4) None of the above
Que 58: Which is not a valid difference between DELETE and TRUNCATE?
Ans:
3) DELETE can not be rolled back.
TRUNCATE can be rolled back.
Que59: Specify some of the critical scenarios that can create merge conflicts.
(Choose most correct 2 options)
1) A developer edits a file and another developer deletes the edited file
3) Different changes being made on same line to the same file
Que60: Which type of variables are associated with class and not the object
4) Static
Que61.Git defined as -
1) Version control for single user
2) Centralized Version Control
3) Not a Directory Content Management System
4) Distributed Version Control
Que63: Employee's joining date is saved in Emp table's JoiningDate column. Write a
query to find name(s) of the seniormost employee in the company.
Ans:3) SELECT Name FROM Emp WHERE JoiningDate = (SELECT MIN(JoiningDate ) FROM
Emp)
Que 64 In DML statements, which type of Variables are used to prompt user to enter
values atRun time?
Ans:2) Substitution variables
Ans:1) A
QUE 65: Which of the following is correct command to merge idea branch to master?
que 66: User A would like to insert a row into the EMPLOYEE table that has three columns: EMPID, LASTNAME, and SALARY.
The user would like to
enter data for EMPID 59694 and LASTNAME Harris, but no salary. Which statement would work?
1) insert into EMPLOYEE
values (59694,'HARRIS', NULL);
QUE 67: Which one of the following relationship is mandatory for method overloading
4) None of the above
Que68: "IS-A" or "IS KIND OF" relationship can be best represented by which one of the following relationships?
Ans:4) Inheritance
QUE 69 _______ can reduce disk I/O by using a rapid path access method to locate data quickly.
1) INDEX
2) PRIMARY KEY
3) UNIQUE constraint
4) SEQUENCE
QUE69: Which of the following are correct basic steps to work with Git Remote?
4) Setup a GitHub Account
Create Repository
Add Remote
Push Changes to Remote(Push)
Check Changes in Remote(Fetch)
Merge in Fetched Changes(Merge)
QUE 70: WHich of the following activities represent Abstraction in Object Orientation?
1) Identifying correct abstract class
2) Creating class with all abstract methods
3) Ignoring inessential details
4) Convert concrete class in to pure abstract class
QUE 72 method travel(src: string, dest: string) in a base class and travel(dest: string) in derived class is a best example of ...
Ans:2) Overloading
QUE 73 For protecting the client classes from changes in attributes and getting control over state of the object, which one of
the following strategies helps best?
Ans:
2) Make all attributes private
QUE74 Choose the correct sequence of command from following to track a file.
(Assume file is being tracked for first time)
2) git init
git add <filename.extension>
git commit -m <message>
QUE 78 Which of the following command(s) can be used to integrate changes from one branch to another branch ?
Ans: 2) git rebase
QUE 79: To remove and discard the changes from the last commit on your current branch, you should use:
2) git reset --hard HEAD~1
QUE 80 In a real world, "House" may have large number of (possible) features, but while considering for software application
development, we consider only features of "House", which are relevant to the software. What is a formal term for this is
Object Oriented field?
3) Abstraction
QUE 81 One table can contain only one Primary key but multiple foreign keys.
1) TRUE
Que 82 Which of the following command is used to configure a user name as 'abc'?
1) git config --global user.name "abc"
Que84: Git is less preferred for handling extremely large files or frequently changing binary files while SVN can handle
multiple projects stored in the same repository.
Ans:1) TRUE
Que 87 Which SQL statement accepts user input for the columns to be displayed, the table name, and WHERE condition?
Ans:
3) SELECT &1, &2
FROM &3
WHERE last_name = '&4';
Ans:a,b,d,e
Que 92: What is Tag in git? select appropriate options from following.
Ans:
1) Tag is just like a label
4) Tag is to mark a stable release points
Que 95: Which command will automatically commit a new change to your local repository that
does the opposite changes of a previous commit, effectively eliminating a previous commit chnage
from repository?
Ans:Revert
Que 96: Which one of the class models in figure, represent good abstraction of a Car for driver?
Ans:2) B
Ans:1) A -> C
B -> A
C -> B
Que 102: Select the essential benefits given by Branching. (Choose most correct 2 options)
Ans:
2) Helps merge changes in teams and resolve conflicts
3) Helps work and push changes without impacting the teams involved
Que 103: Which of the below statements are True for object Index?
Ans:
1) It can speed up the retrieval of rows by using a pointer.
2) Indexes can be created explicitly or automatically.
3) If you do not have an index on the column, then a full table scan occurs.
Que 110: For protecting the client classes from changes in attributes and getting control over state
of the object.
Ans:2) Make all attributes private
Que 111: WHich of the following activities represent Abstraction in Object Orientation?
Ans:3) Ignoring inessential details
Que 113: State True or False:- If you want to preserve the complete history of your project and
avoid the risk of
Ans:2) FALSE
Que 114 : Which one of the following aspect is NOT covered in class model?
Ans:4) When specific operation was invoked by other class
Que 115: Which of the following commands can we use to create a branch in an existing repository?
Ans:2) git branch<branch name>
4) git checkout -b<branch name>
Que 116: By default, git stash pop will re-apply the most recently added stash.
Ans:1) TRUE
Que 117: Which is not a valid difference between DELETE and TRUNCATE?
Ans:
3) DELETE can not be rolled back.
TRUNCATE can be rolled back.
Que 118: Which all are the correct statements with regards to branching in git?
A] Branching is used for code optimization.
B] Branching helps to solve a bug.
C] Branching is to try out new feature.
Ans: A] False
B] True
C] True
Que 119: Which one of the following relationship is mandatory for method overloading.
Ans:4) None of the above
Que 120: ___________ and ___________ operators combines the result of two component
conditions to produce a si
Ans:1) AND
5) OR
Que 121: Which command is used to check last 5 commits by a particular author?
Ans:4) git log -n 5 --author=<"pattern">
Que 122: Which of the below can be used to verify that the password entered by the user matches
a certain strength
Ans:2) Check constraint
Que 124 :Select the correct option with regards to Staging Area?
Ans:4) Marking a modified file in its current version to go into your next commit snapshot
Que 125: If the methods in class Admin are accessing the data of class Employee, which one of
these OO principlesis primarily violated?
Ans:4) Encapsulation
Que 127: Which one of the following ways helps in data/ information hiding?
Ans: 3) making attributes of a class private
Que 128: A person has many attributes possible like (name, email, mobile number, weight, height,
eye color and so on ...). But while considering class Employee (i.e.)Person working for IT company,
model can ignore inessential attributes like weight, height, eye color etc. Which one of the following
principles is demonstrated here?
Ans: Abstraction
Que 130: . Which DDL statement can be used to remove rows from table t1?
Ans: Truncate
Que 131: . What is the outcome of the query?
SELECT * FROM payments
Where amount=(SELECT MAX(amount)
FROM payments)
AND sales_person_id in (SELECT sales_person_id
FROM salesman Where office_code='PUNE')
Ans: Details of the highest payment which is taken by a sales person whose office is Pune
Que 132: Which one of the relationships can exist between classes "Clock" and "DigitalClock"?
Ans: Inheritance.
Que 133:. Which one of the following relationship is essential for run time polymorphism?
Ans: Inheritance.
QUE 135: In below example, what would be the value of NEXTVAL after 1000 numbers.
START WITH 1
INCREMENT BY 1
MAXVALUE 1000
NOCYCLE;
1) 1
2) 0
3) 1001
Ans-4
4) Marking a modified file in its current version to go into your next commit snapshot
QUE 137: A primary key is combined with a foreign key creates
4) None of these
QUE 138 : ___________ and ___________ operators combines the result of two component
conditions to produce a single result based on them.
1) AND
4) OR
Ans-1,4
Employees(Employee_id,Last_name,job_id,salary,commission_pct,Department_id)
Departments(department_id,department_name)
Which is the correct query to delete all the employees from Employees table who are in a
department where the department name contains the string 'Public.'
WHERE department_id =
(SELECT department_id
FROM departments
QUE 140: You want to change the name of file1 to file2 in Git. What command accomplishes this?
1) Abstraction
2) Data hiding
3) Encapsulation
4) Economy of expression
Ans-3
QUE142: In DML statements, which type of Variables are used to prompt user to enter values at
Run time?
QUE 143: Git add command just adds files to staging area and doesn't actually
commits.
1) TRUE
2) FALSE
QUE144: Choose correct options from following while
Adding Remote repository helps us to :-
A] Sync up work with team.
QUE 147: Mr. Natawarlal being businessman has three Cars in his house,
His personal Car
His wife's Car
Company Car
Which of the following is the best way to model this description.
1) "Businessman" class is associated with class "Car". "PersonalCar", "WifesCar" and
"CompanyCar"
are instances of class "Car"
QUE148: In ORACLE, Which of the following statement is true in case of ORDER BY
clause?
1) Null values are displayed last in case of Order by Ascending and at the start in case of
Descending
Order.
3) A] True
B] True
C] False
Que 150: Select the appropriate basic workflow of Git from following.
Ans:
Edit
Stage
Review
Commit