CSCI 201 Midterm 2
In networking communications, a client is a device or program that initiates a connection to a server to request some service or information. Which information does it need? "A) Port number" "B) Both server address and port number" C) its own address and port number" "D) Server address"
"B) Both server address and port number" When a client initiates communication, it typically needs to select or provide the following information:Server Address: The client must specify the network address (e.g., an IP address or domain name) of the server it wants to connect to. This information is essential to direct the communication to the correct destination.Port Number: Clients need to specify the port number on the server to which they want to connect. Ports are used to differentiate between different services or processes on a server. Common services have well-known port numbers (e.g., HTTP uses port 80), but clients can connect to specific ports as required by the service they are accessing.
Can a key be both a foreign and primary key for a relational table? "A) Depending on the DBMS" "B) No" "C) Yes" "D) It depends on the type of table"
"C) Yes" Yes, we can have the same key as foreign and primary key Yes, it is possible for a key to serve as both a primary key and a foreign key, but not typically in the same table. In a scenario where a column (or set of columns) is the primary key in one table, it can be referenced as a foreign key in another table. This creates a relationship between the two tables. CREATE TABLE Employees ( EmployeeID INT PRIMARY KEY, EmployeeName VARCHAR(50), -- Other columns ); CREATE TABLE Orders ( OrderID INT PRIMARY KEY, EmployeeID INT, -- Other columns FOREIGN KEY (EmployeeID) REFERENCES Employees(EmployeeID) );
"Can I have two primary keys in a table? " " Yes, but you must edit the SQL config.ini file to enable this feature." " No, there can only be one primary key spanning exactly one column." "No, there can only be one primary key but it can span multiple columns. "Yes, there can be multiple primary keys. "
"No, there can only be one primary key but it can span multiple columns.
"In Serverless architectures ... There is no compute resource to manage Provisioning is done by the users Core functionality needs to be imported All of the above
"There is no compute resource to manage
How do you add CSS to HTML? Choose all that apply. "a) In an external file that is included in an HTML document in the <link> tag." "b) In the <style> tag, contained in the <head> of an HTML document." c) Inline in an HTML element through the style attribute." d) There is no way to connect CSS to HTML"
"a) In an external file that is included in an HTML document in the <link> tag." "b) In the <style> tag, contained in the <head> of an HTML document." c) Inline in an HTML element through the style attribute."
"function connectToServer() { var socket = new WebSocket(url); // Assume the url is defined elsewhere // What code would you put here to do something upon connection? } " " socket.oncreate = function(event) { console.log(""""Connection made!""""); }" "socket.onopen = function(event) { console.log(""""Connection made!""""); }" "socket.onload = function(event) { console.log(""""Connection made!""""); }" "socket.onconnect = function(event) { console.log(""""Connection made!""""); }"
"socket.onopen = function(event) { console.log(""""Connection made!""""); }" The onopen method executes upon connection.
How does one select an HTML element with ID called 'top' in CSS? top{ } .top{ } #top{ } ID.top{ }
#top{ } To select an HTML element with an ID called 'top' in CSS, you can use the ID selector. Here's the syntax:#top {/* Your CSS rules for the element with the 'top' ID go here */}In this example, the # symbol is used to target an element with a specific ID, in this case, 'top'. Any CSS rules you define within the curly braces {} will be applied to the HTML element that has the 'top' ID.
localhost is the pseudo name for the computer your programs are running on. What is it's IP address?
127.0.0.1 Localhost has the IP address 127.0.0.1 is also known as "loopback",. The term "loopback" in the context of networking refers to a special network interface or address that allows a computer to send network traffic to itself. In the case of the IP address 127.0.0.1, it is often referred to as the loopback address because any data sent to this address "loops back" and is delivered to the local machine, rather than being sent out onto the network.
Which of the following is properly formatted for HTML 5? 1) <p>Excuse me, l'm the actual correct one <p> 2) <p>Sorry, but you are all incorrect. I'm the only correct one. <p/> 3) <p>No, l'm the correct one!</p> 4) <p>I'm the correct one
3) <p>No, l'm the correct one!</p>
Which of the following do relational database management systems NOT provide? • 1) Representation of data 2) Means for accessing data 3) Transportation of data 4) Constraints on data
3) Transportation of data
"In HTML, which element do we use to create an ordered list? <ordered_list> <ol> <li> <ul>
<ol>
JavaScript can be included in which HTML tag? <script> tag "JavaScript can't be in a tag, it should be in an external file. " "<script:javascript> " "<javascript> "
<script> tag
Which one of the following statements is true about a JDBC Driver? There is only one type of JDBC drivers. A JDBC driver is used to connect to the client-side of a database. The JDBC driver is only required for connecting to databases that use the SQL language. A JDBC driver is responsible for translating JDBC API calls into database-specific calls, like SELECT, INSERT, etc..
A JDBC driver is responsible for translating JDBC API calls into database-specific calls, like SELECT, INSERT, etc..
Which of the following statements is true about annotations in Java servlets? A) Annotations are used to configure the servlet container. B) Annotations are optional and not necessary for serviet development. • C) Annotations are used to define the HTTP request and response types.
A) Annotations are used to configure the servlet container.
How is AWS Lambda priced? A) Based on the number of requests and the duration of code execution B) Free of charge, with limitations on usage C) Based on size of the deployed package D) A flat monthly fee
A) Based on the number of requests and the duration of code execution
What is a key advantage of using containers? A) Containers package applications and their dependencies together B) They require manual configuration for each deployment C) Containers couple software with underlying host D) Containers cannot be easily moved between different environments
A) Containers package applications and their dependencies together Containers package applications and their dependencies together, ensuring consistency across different environments.
Which of the following SQL statements will delete all the rows from a table named "orders"? A) DELETE FROM orders; B) REMOVE * FROM orders; C) DELETE * FROM orders; D) DROP FROM orders;
A) DELETE FROM orders;
Which of the following are components of the JDBC API? Select all that apply. A) DriverManager B) HTTPClient C) Connection D) ResultSet
A) DriverManager B) HTTPClient D) ResultSet
How do you insert multiple rows to SQL table using one command? A) INSERT INTO CPS ( Name, Grade ) VALUES ('Swap', 'A+'), ('Hekmat', 'A+'), ('Jack', 'F'); B) INSERT INTO CPS ( Name, Grade ) COUNT= 3 VALUES ('Swap', 'A+'), ('Hekmat', 'A+'), ('Jack', 'F'); C) You can't enter multiple rows in one query D) INSERT INTO CPS ( Name, Grade ) VALUES ('Swap', 'A+') AND ('Hekmat', 'A+') AND ('Jack', 'F');
A) INSERT INTO CPS ( Name, Grade ) VALUES ('Swap', 'A+'), ('Hekmat', 'A+'), ('Jack', 'F');
Which HTTP method is used to update a resource or records on a server in REST APIs? A) PUT" B) POST" C) UPDATE" D) GET"
A) PUT The HTTP method commonly used to update records on a server in REST APIs is the PUT method. This method is typically used when you want to update an existing resource or record at a specific URI (Uniform Resource Identifier). When making a PUT request, the client sends the entire updated representation of the resource to the server. The server then replaces the existing resource with the updated representation provided in the request.
Select which of the following are NOT TRUE of Serverless Architectures. Select all that apply. A) Provisioning and scaling handled by the client B) Execution environment provided by the client C) Provide authorization and authentication services D) No compute resource to manage
A) Provisioning and scaling handled by the client B) Execution environment provided by the client C) Provide authorization and authentication services
In general, spaces, tabs and line breaks used to format HTML are largely ignored. A) True B) False
A) True
With Virtual Machines, it is difficult to predict the size of the VM instance. A) True B) False
A) True The Problems with Virtual machines:Money - You need to predict the instance size you need. You are charged forevery CPU cycle, even when the system is "running its thumbs"Time - Many operations related to virtual machines are typically slowSee slide #4 of Serveless-Lambda
In relational databases, 'Normalization' is a process used to reduce data redundancy and improve data integrity. A) True B) False
A) True In relational databases, normalization is indeed a process used to reduce data redundancy and improve data integrity. It involves organizing the database structure in such a way that it minimizes redundancy and dependency among data elements. This is typically achieved by breaking down larger tables into smaller, related tables and establishing relationships between them using keys (such as primary keys and foreign keys). By doing so, normalization helps in reducing data redundancy, which in turn reduces the chances of inconsistencies and anomalies within the database, thus improving data integrity.
What is the required attribute of the IMG tag? A) src B) no attribute is required C) href D) source
A) src
AWS API Gateway ... Makes it easy for developers to create, publish, maintain, monitor, and secure APIs Creates a unified API front end for multiple microservices Provides DDoS (Distributed Denial of Service) Protection All of the above
All of the above
AWS Lambda Architecture provides ... Microservices API Management No server to manage All of the above
All of the above
Which of the following statements regarding Web Sockets is/are correct? WebSockets provide a means for persistent two-way communication between a web browser and a web server. The constructor to the JavaScript WebSocket class takes a URI as a parameter, specifying the location of the WebSocket endpoint. In Java, the @ServerEndpoint annotation can be used to specify the name of the WebSocket endpoint. All of the above
All of the above
The WebSocket 'onerror' event function is triggered when the connection is closed. A) True B) False
B) False
Non-normalized relational databases do not allow for the existence of duplicate data. A) True B) False
B) False Non-normalized databases tables typically consist of duplicate data
Containers ... A) Require full OS install B) Images can be shared using GitHub-like repositories C) Depend on a specific virtual machine technology D) All of the above
B) Images can be shared using GitHub-like repositories
Which HTTP method is used to update a resource or records on a server in REST APIs? A) UPDATE B) PUT C) GET D) POST
B) PUT
What is true of the fetch) API? A) fetch has 2 main methods: parsel) and stringify B) Provides a more powerful and flexible feature set than XMLHttpRequest) C) It is identical to Query's .ajax() D) Unlike Query ajax), cannot set CORS mode
B) Provides a more powerful and flexible feature set than XMLHttpRequest)
Which SQL statement is used to extract data from a database? "A) EXTRACT" B) SELECT" C)OPEN D) GET
B) SELECT" To extract data from a database, you typically use the SQL SELECT statement. The SELECT statement is used to retrieve data from one or more database tables based on specified criteria.
What is a TRUE statement for CSS? A) CSS is primarily used for server-side scripting B) The .class rule can be applied to multiple elements. C) Very few websites use external CSS style sheets D) CSS cannot be used to style HTML documents
B) The .class rule can be applied to multiple elements. In CSS, the .class rule can be applied to multiple elements. When you define a CSS rule using a class selector (e.g., .myclass), you can apply that rule to any HTML elements that have the specified class attribute. Multiple elements can share the same class, and you can apply the same styles to all of them by using the class selector.
In AWS Lambda ... A) Functions can be triggered only from HTTP B) You never pay for idle time C) Auto-Scaling is sometimes Available D) All of the above
B) You never pay for idle time
What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p> A) document.getElement(""p"").innerHTML = ""Hello World!"";" B) document.getElementById(""demo"").innerHTML = ""Hello World!"";" C) demo.innerHTML = ""Hello World!"";" D) document.getElementByName(""p"").innerHTML = ""Hello World!"";"
B) document.getElementById(""demo"").innerHTML = ""Hello World!"";" The id for the element is "demo" which needs to be used with document.getElementById()
What function can be used to access a single HTML element from the page? " A) getElement()" " B) getElementById()" "C) getElementByClassName()" D) getElementsByName()"
B) getElementById()
"<head> <script type = ""text/javascript"" src=""function.js""></script> </head> What is the snippet of code doing? A) linking a JavaScript file with a DOC file B) linking a JavaScript file with an HTML file. C) linking a JavaScript method with a JavaScript external file. D) linking a JavaScript file with a CSS file.
B) linking a JavaScript file with an HTML file. After creating the JavaScript file, you can create an HTML document and link it to our JavaScript file using <script type = "text/javascript" src="function.js"></script>
What decorator denotes an error function for a Java ServerSocket? A) @OnException B) @OnClose C) @OnError D) @OnNull
C) @OnError Error functions need the @OnError decorator.
What is the difference between and ID Attribute and a CLASS Attribute in CSS? A) An ID Attribute can be used multiple times B) A CLASS Attribute can only be used once C) An ID attribute can only be used once D) No difference
C) An ID attribute can only be used once
What does AJAX stand for? A) Asynchronous Javascript and External Libraries • B) Automatic JavaScript and XML C Asynchronous Javascript and XML D) Asynchronous Java and XML
C) Asynchronous Javascript and XML
What is one of the main characteristic of Serverless Architectures? A) Execution environment managed by the user B) Core functionality provided by at-scale Web Browsers C) Compute resource management handled by the service D) Manual provisioning and scaling
C) Compute resource management handled by the service Compute resource management is handled by the service itself, relieving the user from the responsibility of provisioning and scaling
What SQL command is used to remove a table from a database? A) DELETE TABLE B) REMOVE TABLE C) DROP TABLE D) ERASE TABLE
C) DROP TABLE
What does this query do? SELECT e.firstName, c.car FROM Employee e, Cars c WHERE firstName = 'Alex'; A) Returns only one column with the cars associated to Alex B) Invalid because you cant select from two different tables C) Returns one column of first name equal to Alex and a column of cars associated with the first name D) Returns all
C) Returns one column of first name equal to Alex and a column of cars associated with the first name
SELECT e.firstName, c.car FROM Employee e, Cars c WHERE firstName = 'Alex'; A) Returns only one column with the cars associated to Alex B) Returns all cars C) Returns one column of first name equal to Alex and a column of cars associated with the first name D) Invalid because you cant select from two different tables
C) Returns one column of first name equal to Alex and a column of cars associated with the first name selecting first name and cars will return a column of first name that matches alex and corresponding cars
Which of the following is true about Servlets A) Spring Boot is a popular framework for front end programming. B) There are three function signatures used to handle requests, doPost, doGet, and doService. C) The annotation @WebServlet(<servlet_name>) must contain a '/' at the beginning. D) The HttpRequest and HttpResponse may be omitted by the service function in a servlet.
C) The annotation @WebServlet(<servlet_name>) must contain a '/' at the beginning. The annotation requires the '/' at the beginning. The service (not doService) requires the HTTP Request and HTTP Response object in its parameters. Spring Boot is a servlet framework.
The server socket can have___ connections. Whenever a connection is established, a new __________ is created to handle communication between the server and the new client. A) one, thread B) one, DNS C) many, thread D) two, DNS
C) many, thread The server socket can have many connections. Whenever a connection is established, a new thread is created to handle communication between the server and the new client.
Which HTML attribute is used to specify the path to an image (a URL) in the <IMG> element? "A) href" B) style" C) src D) alt"
C) src
Containers ... A) Are based on UNIX kernel features B) are Docker components C) Virtualize at the OS level D) All of the above
D) All of the above
Containers ... A) Are lightweight B) When running on same host, share same Linux kernel C) Are portable D) All of the above
D) All of the above
Docker ... A) Decouples software from underlying host B) Allow extremely higher efficient sharing of resources C) Has security issues D) All of the above
D) All of the above
In AWS Lambda ... A) Code == Function B) Pay only for the compute time you use C) There are no Machines, no VMs or containers visible in Programming Model D) All of the above
D) All of the above
The Docker Ecosystem includes ... A) Service Discovery B) Storage C) Build / Continuous integration D) All of the above
D) All of the above
The Docker Ecosystem includes ... A) Service Discovery B) Storage C) Build / Continuous integration D) All of the above
D) All of the above
What is the purpose of JSON.parsel)? A) Avoid JavaScript code injection B) Ensure that the Ajax response in "valid" JSON c) Convert JSON text string into a JavaScript object D) All of the above
D) All of the above
What are solutions to the cross-domain issue for resources such as JavaScript of JSON? A) Use a server "proxy" B) Use CORS, if available C) Access exclusively resources in the same domain D) All of the above
D) All of the above All the listed solutions will NOT result in cross-domain violations
FaaS ... " A) is Function as a Service" " B) is Custom code" " C) Runs on ephemeral containers" D) All of the above"
D) All of the above"
What does the SQL statement "UPDATE Employees SET salary = salary * 1.05 WHERE department = 'Sales';" do? A) Sets the salary of employees in the Sales department to 1.05. B) The statement is syntactically incorrect. C) Increases the salary of all employees by 5%. D) Increases the salary of employees in the Sales department by 5%.
D) Increases the salary of employees in the Sales department by 5%.
Given a table of state names, how would you select only the abbreviation and full-name of California? " A) SELECT full_name, abbreviation FROM us_state_info IF state IS 'California'" B) SELECT full_name, abbreviation FROM us_state_info" C) SELECT * FROM us_state_info WHERE full_name='California' AND abbreviation='CA'" D) SELECT full_name, abbreviation FROM us_state_info WHERE full_name='California'"
D) SELECT full_name, abbreviation FROM us_state_info WHERE full_name='California'" The SELECT statement allows us to refine our selection to only the relevant columns of information we seek to collect. (in this case: abbreviation, full_name)The WHERE statement filters the selections captured, and removes any that do not satisfy the supplied condition (in this case: full_name='California').The FROM statement specifies which SQL table to direct our query. (in this case, us_state_info)Lastly, although one option specifies two filtering conditions, it selects *all* data known that pertains to California, which is more than we are hoping to collect in our query. Since there are no states other than 'California' whose abbreviation is 'CA', it is entirely optional to add that additional filter, as it does not effect the results of the query in this case
What is the correct way to make sure a form uses a servlet you created? A) Set the method attribute to POST in the form tag. B) Set the name attribute of the form tag to the name of the servlet. C) Set the name parameter in the url to the name of the serviet. D) Set the action attribute of the form to the name of the servlet.
D) Set the action attribute of the form to the name of the servlet.
Examples of backend-as-a-service (BaaS) are A) NoSQL Databases and BLOB Storage B) search and IOT C) machine learning and speech to text D) all of the above
D) all of the above
What function can be used to access a single HTML element from the page? A) getElementsByName () B) getElement () C) getElementByClassName () D) getElementById ()
D) getElementById ()
Which attribute is used to provide a unique name to an HTML element? A) type B) class c) name D) id
D) id
How could you normalize a table that has a persons name, social security number, data of birth, and list of properties they own? A) make the property names an array instead of a column B) make names its own table with the name as the primary key, and the date of birth as a foreign key C) this table is already as normalized as it can be D) make the SSN its own table with SSN as the primary key and the DoB and name as columns. Then also make a properties table with a property id, property name, and SSN as the foreign key
D) make the SSN its own table with SSN as the primary key and the DoB and name as columns. Then also make a properties table with a property id, property name, and SSN as the foreign key
What is the effect of changing from SELECT * to SELECT g.Grade? A) horizontal cut B) conditional cut C) selected cut D) vertical cut
D) vertical cut
What does DBMS stand for, and who was it defined for? Database Management System; programmers (specials) David Bowie Makes Songs, musicians Database Management System, casual users Developer Book for Managing SQL, programmers
Database Management System; programmers (specials) It is Database Management System (DBMS), and it isn't for non-developer users (since regular people aren't making queries)
The correct HTML element for the largest heading is H6. TRUE FALSE
FALSE In HTML, the correct element for the largest heading is the <h1> element. Heading elements in HTML are used to define the hierarchy and structure of the page's content, with <h1> denoting the highest level of importance and usually the largest and boldest text. Here is an example of how you might use an <h1> element: <h1>This is the main heading</h1>
PreparedStatements are NOT efficient for repeated executions since they are precompiled TRUE FALSE
FALSE It is not true that PreparedStatements are inefficient for repeated executions. In fact, PreparedStatements are often more efficient for repeated executions compared to regular Statements for several reasons:
True or false: "Content-type" is a required HTTP response header for responses without a "message body". TRUE FALSE
FALSE Only required when "body" includedFor HTTP responses, the "Content-Type" header is required when the server includes a message body in the response . It specifies the MIME type of the data sent back to the client.
true or false: With Virtual Machines you are charged with only the cycles you run programs. TRUE FALSE
FALSE You need to predict the instance size you need. You are charged forevery CPU cycle, even when the system is "running its thumbs"
What is the purpose of the primary key? It ensures uniqueness in the table: no two rows can have the same key. It links two tables together through a unique variable. Both A and B Neither A nor B
It ensures uniqueness in the table: no two rows can have the same key.
What does a cascading style sheet (CSS) do? It creates, manages and searches databases It handles client side requests. It creates the interactive elements within a webpage. It is is used to style and layout web pages.
It is is used to style and layout web pages. Cascading Style Sheets (CSS) are used in conjunction with HTML to describe how HTML elements should be displayed.
What is the most important advantage of PREPARED statements? Prepared statements are easier to write than regular SQL statements. Prepared statements help prevent SQL injection attacks. Prepared statements can be used with simple SQL statements that do not have parameters. Prepared statements are faster than regular SQL statements.
Prepared statements help prevent SQL injection attacks.
"Given these two tables: CREATE DATABASE MyGrades; USE MyGrades; CREATE TABLE StudentInfo ( SID INT PRIMARY KEY AUTO_INCREMENT, myName VARCHAR(50) NOT NULL ); CREATE TABLE Grades ( ID INT NOT NULL PRIMARY KEY AUTO_INCREMENT, classname VARCHAR(10) NOT NULL, grade VARCHAR(2) NOT NULL, FOREIGN KEY fk1(SID) REFERENCES StudentInfo(SID) ); The second 'CREATE TABLE Grades' returns an error. What line needs to be added to it?" SID INT NOT NULL, fk1(SID) INT NOT NULL, SID INT FOREIGN KEY, SID INT PRIMARY KEY AUTO_INCREMENT,
SID INT NOT NULL, Error is: Error Code: 1072. Key column 'SID' doesn't exist in table, SID needs to be added, but niot as primary or foreign key
Images do not have cross-domain issues. TRUE FALSE
TRUE
The purpose of the 'action' attribute within an HTML form tag is to define where the form data gets sent to. TRUE FALSE
TRUE The HTML action Attribute is used to specify where the formdata is to be sent to the server after submission of the form. It can be used in the <form> element.
Serverless architectures and containers are the solutions to money and time problems. TRUE FALSE
TRUE The Solution: Serverless Architectures Containers
"Given these two tables: CREATE TABLE Students{ ID int(11) primary key not null auto_increment; firstname varchar(50) not null, lastname varchar(50) not null, country varchar(50) not null, }; Which one of these queries are correct to change student with ID 10 country to 'United States' ? " CHANGE Students s, s.country ='United States'' WHERE s.ID = 10; You can't update values in SQL you have to deleted the entry and add a new one. SET Students s, s.country = 'United States'' WHERE s.ID = 10; UPDATE Students s SET s.country ='United States'' WHERE s.ID = 10;
UPDATE Students s SET s.country ='United States'' WHERE s.ID = 10;
Docker: a) Allows developers to easily deploy their applications in a sandbox b) Allows users to package an application with all its dependencies into customized, non-standard units c) Maximizes software packaging
a) Allows developers to easily deploy their applications in a sandbox b) is wrong because it allows users to package an application with all its dependencies into customized, STANDARD units c) is wrong because it MINIMIZES not maximizes
The Songs table, uniquely identified by SongID, has a column called ArtistName that references the Artist table which has a column of the same name. The ArtistName column in Songs is a: a) Foreign Key b) Secondary Key c) Domain Key d) Primary Key
a) Foreign Key The foreign key constraints define the relationships among relations.
Which SQL statement is used to insert new data in a database? a) INSERT INTO" b) INSERT NEW" c) ADD RECORD" d) ADD NEW"
a) INSERT INTO" We use INSERT INTO to add a new data into our database.
Dynamic web content allows different data to be shown on the same web page. a) True b) False
a) True
The WHERE clause is used to filter records. a) True b) False
a) True The WHERE clause is used to filter data along with the SELECT statement
The WHERE clause is used to filter records. a) True b) False
a) True The WHERE clause is used to filter data along with the SELECT statement
Which of the following methods dispatches the request to the server when using AJAX? a) send() b) open(method, url, async) c) new XMLHttpRequest(); d) if (xhttp.responseText.trim().length > 0) { return false; } return true;
a) send() send() sends the request to the server when using method="GET"
Select all options that have an example of most common methods used with Servlets: a) List[] Mylst() b) Cookie[] getCookies() c) ArrayCollection<Array> MyServletArray() d) HttpSession getSession()
b) Cookie[] getCookies() d) HttpSession getSession()
How is inline CSS used? a) Inline CSS is only used for images to specify the width and height." b) Inline CSS is used to apply styling to individual HTML elements, and is contained within the HTML start tag using the ""style"" attribute." c) Inline CSS is contained within the HTML document, within the <style> tag in the head section of the HTML document." d) Inline CSS is stored in a separate file, and is linked to the HTML document using the <link> tag in the head section of the HTML document."
b) Inline CSS is used to apply styling to individual HTML elements, and is contained within the HTML start tag using the ""style"" attribute."
How many PRIMARY KEY (K) constraints can be defined? a) Four b) One c) Three d)
b) One
What are the correct labels for each of the elements in this image? (from left to right) a) Web Application/Server, Client, Database b) Web Application/Server, Database, Client c) Client, Web Application/Server, Database d) Database, Client, Server
c) Client, Web Application/Server, Database
How is inline CSS used? a) Inline CSS is contained within the HTML document, within the ‹style> tag in the head section of the HTML document. b) Inline CSS is stored in a separate file, and is linked to the HTML document using the < link> tag in the head section of the HTML document. c) Inline CSS is used to apply styling to individual HTML elements, and is contained within the HTML start tag using the "style" attribute. d) Inline CSS is only used for images to specify the width and height.
c) Inline CSS is used to apply styling to individual HTML elements, and is contained within the HTML start tag using the "style" attribute.
What is the major difference between jQuery AJAX and XMLHttpRequest (XHR)? A) jQuery does not support all browsers while XHR does. B) jQuery is Google's reimplementation of XHR from scratch for improved usability and efficiency. c) There is no major difference aside from syntactical sugar. • D) jQuery is optimized for asynchronous use cases while XHR is
c) There is no major difference aside from syntactical sugar.
What is the primary role of a web server in the context of AJAX? a) To enhance the performance of the browser. b) To store HTML, CSS, and JavaScript files only. c) To process requests and return data in a structured format like JSON or XML. d) To execute client-side scripts.
c) To process requests and return data in a structured format like JSON or XML. The primary role of a web server in the context of AJAX (Asynchronous JavaScript and XML) is indeed to process requests and return data, typically in a structured format such as JSON (JavaScript Object Notation) or XML (eXtensible Markup Language). AJAX allows web pages to asynchronously send and receive data from a web server without needing to reload the entire page.
Which statement below is false? a) AJAX uses a browser built-in XMLHttpRequest object b) AJAX applications can transport data as JSON text c) Updates to a page made via AJAX will not be displayed until the client's window is refreshed d) AJAX stands for Asynchronous JavaScript And XML
c) Updates to a page made via AJAX will not be displayed until the client's window is refreshed
Which of the following is not true about AJAX? a) AJAX uses XMLHttpRequest to communicate with the server. b) JQuery preforms the same functionality as AJAX c) AJAX can be performed on submission of a form by adding the onsubmit parameter in the form tag. d) AJAX must be performed in your Java servlet
d) AJAX must be performed in your Java servlet AJAX should be done in your JSP / HTML + Javascript file. AJAX is not written in Java but Javascript.
AWS Lambda Architecture provides... a) Microservices b) API Management c) No server to manage d) All of the above
d) All of the above
Most dynamic content is based on a _______ program running andgenerating the _______ code in real-time. a. client, front end b. client, server c. front end, server d. server, front end
d. server, front end
What is the effect of a WHERE clause? selected cut conditional cut vertical cut horizontal cut
horizontal cut
What variable is available to us inside the xhttp.onreadystatechange callback in order to check the state of our request? this.currentStatus this.state this.currentState this.readyState
this.readyState xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById(""demo"").innerHTML = this.responseText; } };