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
Readme [11.4K]
3 years ago
5

1. What will the println statement in the following program segment display? int x = 5; System.out.println(x++); a. 5 b. 6 c. 0

d. None of these
Computers and Technology
1 answer:
garik1379 [7]3 years ago
8 0

Answer: a) 5

Explanation:

x++ increases the value of x by 1 (=6), but still returns the old value (5) to the print statement

following code lines will use the new x=6 value

You might be interested in
Ben sends a few emails over the weekend to his relatives. Where should Ben place his laptop so that he can avoid slouching while
bonufazy [111]

Answer:

C. obviously its the most stable think.

Explanation:

3 0
3 years ago
Select the correct answer from the drop-down menu. Which two technologies support the building of single-page applications? and
Nataliya [291]

Answer:

JavaScript frameworks and Ajax

Explanation:

6 0
4 years ago
How do you flash your high beams ?​
Bad White [126]

Answer: to flash your high beams you have to basically put on and turn them off really quickly here is what the button looks like :)

Hope this helps you out :)

7 0
3 years ago
Read 2 more answers
Statement: There are two files. One file, "badIP_list.txt" has a listing of known bad IP addresses. These addresses were extract
lapo4ka [179]

Answer:

See explaination

Explanation:

SOURCE CODE IN PYTHON:

inp=open('badIP_list.txt', 'r') #opening file for input

badIPs=[i.rstrip('\n') for i in inp.readlines()] #reading bad IPs

inp.close() #closing file

inp=open('server_logs.txt', 'r') #opening file for input

IPs=[i.rstrip('\n') for i in inp.readlines()] #reading all IPs from log

inp.close() #closing file

uniqueBadIPs=[] #to store unique bad IPs

countBadIPs=0 #to store count of bad IPs

countIPs=0 #to store count of all IPs

for IP in IPs: #iterating through the log of IPs

if IP in badIPs: #checking if IP is bad

countBadIPs+=1

if IP not in uniqueBadIPs: #checking if bad IP is unique

uniqueBadIPs.append(IP)

countIPs+=1

out=open('filter_list.txt', 'w') #opening file for output

out.write('_________________________________________________________\n')

out.write('Date : 26/07/2018\nName : Last, First\nMajor: CS\n\n')

out.write('Server logs contained these known bad IP addresses:\n')

for IP in uniqueBadIPs: #output the unique bad IPs

out.write(IP+'\n')

out.write('\n')

out.write('Total unique known bad IP\'s detected:\n'+str(len(uniqueBadIPs))+'\n\n')

out.write('Percentage of bad IP addresses in server logs:\n{:.2f}%\n'.format(countBadIPs*100/countIPs))

out.write('_________________________________________________________')

out.close() #closing file

5 0
4 years ago
Why cant I give 5 points on Brainly. Its locked on 10 points. If I keep giving 10 points, my points will run out so fast!!
Aleks04 [339]
Your giving 5 points right now.
8 0
3 years ago
Read 2 more answers
Other questions:
  • How can I get more Gems in the game {Fashion Empire} through a Fire kindle?
    15·2 answers
  • Riley is using access to collect data for a science project. he is creating a report and wants to apply predefined color and fon
    6·1 answer
  • Which column and row references are updated when you copy the formula: =SUM($B5:D$15)?
    6·2 answers
  • Which color reflects more light red blue black or white
    6·1 answer
  • What are the benefits of transferable skills check all the boxes that apply
    6·2 answers
  • In this section, you will use a stack to implement a program that checks if a string is balanced. Use the skeleton code provided
    5·1 answer
  • As your textbook explains, Wikipedia is usually the only source you need when
    8·1 answer
  • 25 Points Asap <br> Write a Java program named Light.java that displays a light bulb shown below:
    14·1 answer
  • Which of the following is one of the first two levels of formatting in a Word document?
    5·1 answer
  • A(n) _____ is a data validation rule that should be applied to mandatory data items.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!