1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sertanlavr [38]
3 years ago
13

Given the following code: PreparedStatement ps = connection.prepareStatement("select firstName, mi, lastName from Student where

lastName = ?"; ps.setString(1, "Smith"); ResultSet resultSet = ps.executeQuery(); System.out.println(resultSet.getString(1)); What would be the result?
Computers and Technology
1 answer:
katen-ka-za [31]3 years ago
5 0

Answer:

In this question, the code will be given a run-time error.

Explanation:

In java programming, the database code will give a run-time error because cursor in the resultSet that is the object of the resultSet class not point any rows in the table and we must use the resultSet.next() function. This function passes the cursor value to the first row in resultSet class object and this function helps to pass the value in the cursor for the next row in the resultSet class object.

You might be interested in
Which of the statements below describe guidelines for effective presentation layouts? (multiple choice)
____ [38]
Putting as much information as possible on a slide is wrong because sometimes, that will create a messy presentation. A messy presentation can become unreadable and if your information is unreadable, it is not effective. Similarly, you do not want to use a font color that blends in with the background. A yellow font on a yellow background could clash negatively or make your information seem to disappear into the background completely. Presenting this on a screen would make it almost impossible to see anything of what you wrote. This would be ineffective, as well. Using the largest font size possible is also not a very good idea because it's going to be too big. It will fill up the entire screen and make everything messy seeming, overwhelming to look at, or unreadable. Another ineffective decision. 

Now, although using a maximum of two fonts on a slide is important, this does not specify the fonts which you should NOT use. There are many unreadable fonts that create a messy an ineffective presentation, and just getting to choose any two of them isn't very specific.

The correct answer would be to use a consistent color scheme. Sometimes the most effective presentations are simple, yet well put together. 
8 0
3 years ago
Read 2 more answers
At what x position are the ellipses drawn??? thanks ♡​
Anna71 [15]

Answer:

55

Explanation:

The xPos variable is set to 55 and they have set the variable in the code for the ellipses in the x position

Hope this helps

7 0
3 years ago
Gabriel's sister called him about a message that suddenly appeared on her screen that says her software license has expired and
BabaBlast [244]

Answer:

Blocking ransomware

Explanation:

A ransomware is a malware that acts by encrypting the files of a victim after which the attacker demands for a ransom payment to be made by the victim before access is restored through the provision of a key to decrypt the encrypted files

There are different types of ransomware such as blockers, wipers and cryptors

A blocker ransomware is one that blocks access to the files stored on a computer or device by encrypting them and usually displaying a demand for payment message that comes up in front of the all opened windows

5 0
3 years ago
There are N rectangular buildings standing along the road next to each other. The K-th building is of size H[K] × 1.
Sphinxa [80]

Answer:

# you can write to stdout for debugging purposes, e.g.

# print("this is a debug message")

def solution(H):

   # write your code in Python 3.6

   

   # return area of atmost 2 banners

   # 1 banner

   # maximum height * number of buildings

   single_banner = max(H) * len(H)

   smallest_area = single_banner

   

   

   # 2 banner

   for i in range(1, len(H)):

       double_banner = (max(H[0:i]) * len(H[0:i])) + (max(H[i:]) * len(H[i:]))

       if  double_banner < smallest_area:

           smallest_area = double_banner

   

   return smallest_area

8 0
4 years ago
Where in PowerPoint should a user navigate to complete the tasks listed below?
lana [24]

Answer:

Quick Access toolbar

Ribbon

Quick Access toolbar

Ribbon

Explanation:

edge2021

7 0
3 years ago
Other questions:
  • All of the following are types of data storage devices except CD/DVD computer monitor digital cameras flash drive
    15·1 answer
  • Jose would like to know about his uncle's death. He feels his dad is avoiding the subject for some reason. Identify what Jose co
    5·1 answer
  • Sponse that best answers the question.
    11·2 answers
  • In comparing a multi-boot environment and an environment using a type II hypervisor which offers the best performance? Which wou
    7·1 answer
  • Which of the following processes should angel use to merge cells a1:d4 to create a title
    15·1 answer
  • Write a program that takes as input a number of kilometers and prints the corresponding number of nautical miles. Use the follow
    9·1 answer
  • How long would it take a 8 bit computer to calculate π to the thousandth place?
    8·1 answer
  • Cash cows are always in
    7·1 answer
  • Difference between primary key and foreign key
    12·1 answer
  • What programming language does the LMC 'understand'?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!