Computer Science-spl QUESTIONS
Exam Name | Computer Science-spl QUESTIONS |
---|---|
Description | Computer Science-spl QUESTIONS and Answers exams contains the questions from various competitive exams.These questions are the part of previous year paper.These kind of questions would be helpful in preparing for exams like IAS, PCS, UPSC, NDA, CDS SSC, RRB, PSC, IBPS |
Exam Type | MASTER EXAM |
Authenticity | 9999 |
creator | Anirudh(39306) |
.
Question:
What would be the output of the following statements?
var object1 = { same: 'same' };
var object2 = object1;
console.log(object1 === object2);
var object1 = { same: 'same' };
var object2 = object1;
console.log(object1 === object2);
Answer:
Question:
How a constant is defined in a PHP script?
Answer:
define (“ACONSTANT”, 123);
Question:
What is DBMS ?
Answer:
Question:
What are the ways of making comments in JavaScript?
Answer:
ex:- var x=10; //comment text
/*
*/ is used for block comments
Question:
What are Primary Keys and Foreign Keys?
Answer:
Foreign keys are a method of ensuring data integrity and manifestation of the relationship between tables.
Question:
What is needed to be able to use image function?
Answer:
Question:
What is Collation?
Answer:
Question:
What does the unlink() function means?
Answer:
This function returns TRUE on success, or FALSE on failure.
Question:
What is S3? What is it used for? Should encryption be used?
Answer:
Question:
Who among the following introduced the world's first laptop computer in the market ?
Answer:
Question:
What is the main difference between PHP 4 and PHP 5?
Answer:
Question:
What is the difference between session_unregister() and session_unset()?
Answer:
Question:
How do you change the style/class on any element using JavaScript?
Answer:
OR
document.getElementById(“myText”).className = “anyclass”;
Question:
The Ist Computer University of India is -
Answer:
Question:
what is the difference between Exception::getMessage and Exception::getLine ?
Answer:
Question:
How can JavaScript be used to personalize or tailor a Web site to fit individual users?
Answer:
Scripting can even go further if the page author desires. For example, the author may include a preference screen that lets the user determine the desired background and text color combination. A script can save this information on the client in a well-regulated local file called a cookie. The next time the user comes to the site, scripts in its pages look to the cookie info and render the page in the color combination selected previously. The server is none the wiser, nor does it have to store any visitor-specific information.
Question:
How can you pass a variable by reference?
Answer:
Question:
What is an AMI? How do I build one?
Answer:
Question:
What is JavaScript?
Answer:
Question:
What is User-defined Functions? What are the types of User-defined Functions that can be created?
Answer:
Different Types of User-Defined Functions created are as follows:
Scalar User-defined Function
A scalar user-defined function returns one of the scalar data types. Text, ntext, image and timestamp data types are not supported. These are the type of user-defined functions that most developers are used to in other programming languages.
Inline Table-Value User-defined Function
An Inline table-value user-defined function returns a table data type and is an exceptional alternative to a view as the user-defined function can pass parameters into a T-SQL select command and in essence provide us with a parameterized, non-updateable view of the underlying tables.
Multi-Statement Table-Value User-defined Function
A multi-statement table-value user-defined function returns a table, and it is also an exceptional alternative to a view as the function can support multiple T-SQL statements to build the final result where the view is limited to a single SELECT statement. Also, the ability to pass parameters into a T-SQL select command or a group of them gives us the capability to in essence create a parameterized, non-updateable view of the data in the underlying tables. Within the create function command, you must define the table structure that is being returned. After creating this type of user-defined function, It can be used in the FROM clause of a T-SQL command unlike the behavior encountered while using a stored procedure which can also return record sets.