Answer:
ZeroDivisionError
ValuError
Explanation: Edg 2020-2021
Answer:
1.ZeroDivisionError
2.ValueError
Explanation:
took test
You want to read input from the user to know how many apples they would like
to buy. Which statement should you use to read in a number from the user?
var applesToBuy = readLine("How many apples would you lik
e? ");
o
var applesToBuy - println("How many apples would you like?
Dj
var applesToBuy - readInt("How many apples would you like?
1);
var applesToBuy
= nextInt("How many apples would you like?
")
Answer:
var applesToBuy = readLine("How many apples would you lik
e? ");
Explanation:
It asks the user to enter answer the question and it stores the answer into the applesToBuy variable.
Its right dont worry.
In the given scenario, if we use "InputStream" class object that inputs value from the user-end, in which we use "readInt" keyword. In Java, this function of the DataInputStream class reads 4 input bytes and returns an integer value. This method takes the next 4 bits from the input stream, transforms them to integers, and would then returns.
And the wrong choice can be defined as follows:
For choice 1, it use the "readLine" method which inputs the string value.For choice 2, it use the "println" method which prints value.For choice 4, the "nextInt" method is the part of "Scanner" class.Therefore, the answer is "Option 3", which is "var applesToBuy - readInt("How many apples would you like?");".
Learn more:
brainly.com/question/20637377
Q1: Identify and correct the errors in each of the following pieces of code. [Note: There maybe more than one error in each piece of code. a) int x = 1, total; while (x <= 10) { total += x; ++x; } b) while (x <= 100) total += x; ++x; c) public class Mystery { public static void main(String[] args) { int x = 1; int total = 0; while (x <= 10) { int y = x * x; System.out.println(y); total += y; ++x; }// end of while System.out.printf("Total is %d%n", total); }//end of main }//end of class Mystery2 *********************** Q2 What does the following program print? public class Mystery3 { public static void main(String[] args) { int row = 10; while (row >= 1) { int column = 1; while (column <= 10) { System.out.print(row % 2 == 1 ? "<" : ">"); ++column; }// end of while column<=10 --row; System.out.println(); }//end of while }//end of main }// end of class Mystery3
Answer:
a. int x = 1, total = 0;
while (x <= 10){
total += x;
++x;
}
b. while (x <= 100){
total += x;
++x;
}
c. public class Mystery{
public static void main(String[] args){
int x = 1;
int total = 0;
while (x <= 10){
int y = x * x;
System.out.println(y);
total += y;
++x;
}
System.out.printf("Total is %d%n", total);
}
Explanation:
For the first code, the variable "total" was not initialized, so to avoid raising an error message, an integer value must be assigned to it before the increment. Code block two of the second while statement must be enclosed in curly braces, while the third code must be indented properly.
Write a program that uses an initializer list to store the following set of numbers in an array named nums. Then, print the array.
14 36 31 -2 11 -6
Sample Run
[14, 36, 31, -2, 11, -6]
A company is developing a smart TV that connects to a wireless home network. Which technology can best help to establish this connection?
Bluetooth
Infrared
C.
WI-FI
D
Internet of things
E
satellite
A company is developing a smart TV that connects to a wireless home network. Which technology can best help to establish this connection?
C. Wi-Fi.
Why should you try out a camera bag before taking it on a vacation?
So you can make sure that your passport fits in it
So that you can make sure it is comfortable
So that you can get a different color
So that you can add more equipment
Answer:
b or c
Explanation:
i need help with this
Answer:
Answer is D
Explanation:
cameras did not use disks until the late 1990s :D
edit: sorry my previous answer was wrong, I apoligize for the mishap :(
Elza hos a document with plain text. She wants to format only the second paragraph of the fifth page to have two
columns. What sequence of buttons will Eliza click to set up the correct type of section break for this?
O Page Layout, Breaks, Page
O Page Layout, Breaks, Continuous
Insert, Page Break
O Insert, Continuous
Give
25
Input devices examples
PLEASE HELP ITS CODING AND I INCLUDED A SCREENSHOT OF WHAT TO DO
def even_checker(lst):
for x in lst:
if x%2==0:
print(x)
l = [1,2,3,4,5,6,7,8,9,10]
even_checker(l)
I wrote my code in python 3.8. I hope this helps.
During critical thinking, the evaluation of information should use
some emotions
O True
O False
An algorithm to print a set of 10 integers in ascending order
Answer:
Program - Array Sorting
Author - Vishal Solanki
Language - C Language
Date - 03/02/2018 (dd/mm/yyyy)
*/
//IDE used for this code is "Visual Studio 2017"
#include <stdio.h> //including stdio.h for printf and other functions
#include<conio.h>
int main() //default function for call
{
int a[100],n,i,j;
printf("Array size: ");
scanf("%d",&n);
printf("Elements: ");
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for (int i = 0; i < n; i++) //Loop for ascending ordering
{
for (int j = 0; j < n; j++) //Loop for comparing other values
{
if (a[j] > a[i]) //Comparing other array elements
{
int tmp = a[i]; //Using temporary variable for storing last value
a[i] = a[j]; //replacing value
a[j] = tmp; //storing last value
}
}
}
printf("\n\nAscending : "); //Printing message
for (int i = 0; i < n; i++) //Loop for printing array data after sorting
{
printf(" %d ", a[i]);
}
for (int i = 0; i < n; i++) //Loop for descending ordering
{
for (int j = 0; j < n; j++) //Loop for comparing other values
{
if (a[j] < a[i]) //Comparing other array elements
{
int tmp = a[i]; //Using temporary variable for storing last value
a[i] = a[j]; //replacing value
a[j] = tmp; //storing last value
}
}
}
printf("\n\nDescending : "); //Printing message
for (int i = 0; i < n; i++) //Loop for printing array data after sorting
{
printf(" %d ", a[i]); //Printing data
}
return 0; //returning 0 status to system
getch();
}
//Ouput
/*
Array size: 10
Elements : 3 4 7 6 5 1 2 8 10 9
Ascending : 1 2 3 4 5 6 7 8 9 10
Descending : 10 9 8 7 6 5 4 3 2 1
*/
Explanation:
PLEASE HELP ME WITH THIS i will mark you brainlist
Answer: you have to check your email and click on the microsoft email they sent you and enter the code in the email.
Explanation: plz mark brainliest
Use the drop-down menus to complete statements about archiving and backing up data fileArchiving data files manages the size of a mailbox for storage.
Creating an Outlook data file
data files in storage on a computer.
Answer:
Archiving data files manages the size of a mailbox for
✔ local
storage.
Creating an Outlook data file
✔ protects
data files in storage on a computer.
Explanation:
Because its right.
Answer:
an increase in cloud computing
Explanation:
Numerical methods are implementations of mathematical algorithms, but constructed with special consideration for accuracy of solutions and computational run-time. The order in which we implement floating point arithmetic for any numerical method will effect the accuracy of the final computed value. For this reason, extra thought must be placed on our basic mathematical operations. In this problem, you are asked to add-up the values in a large array called data. How should you do this to achieve the most accurate final sum
Answer:
find detailed description of algorithms (direct and iterative methods) in books [8], [3], [24]. We limit ourself to only selected problems and methods which are important in chemical engineering. 1.2.1 Conditioning of a system of linear equations We do not compute accurately because of rounding errors, which affect results of calcu-lations.
Explanation:
A line graph is a great tool for showing changes over time. Why is a line graph better than other graphs at showing this type of data?
Answer:
Line graphs allow us to see overall trends such as an increase or decrease in data over time. Bar graphs are used to compare facts.
The objective of this task is to use Scapy to estimate the distance, in terms of number of routers, between your VM and a selected destination. This is basically what is implemented by the traceroute tool. In this task, we will write our own tool. The idea is quite straightforward: just send an packet (any type) to the destination, with its Time-To-Live (TTL) field set to 1 first. This packet will be dropped by the first router, which will send us an ICMP error message, telling us that the time-to-live has exceeded. That is how we get the IP address of the first router. We then increase our TTL field to 2, send out another packet, and get the IP address of the second router. We will repeat this procedure until our packet finally reach the destination. It should be noted that this experiment only gets an estimated result, because in theory, not all these packets take the same route (but in practice, they may within a short period of time). The code in the following shows one round in the procedure. a = IP() a.dst = ’1.2.3.4’ a.ttl = 3 b = ICMP() send(a/b) If you are an experienced Python programmer, you can write your tool to perform the entire procedure automatically. If you are new to Python programming, you can do it by manually changing the TTL field in each round, and record the IP address based on your observation from Wireshark. Either way is acceptable, as long as you get the result.
Answer:
answer b
is correct
What is a feature of Accenture’s myNav platform?
A. supports a more responsive, cost-efficient, and secure workplace platform for project deployment and full upgrades.
B. powers a highly automated, data-driven, and low-risk approach to adopting and maintaining MS Office suites
C.helps assess, architect, and simulate Cloud solutions to determine the right Cloud architecture based on our clients’ business needs
D. enhances ability to innovate, boost business results, and speed up a client’s journey to intelligent enterprises
D.
One feature of Accenture’s myNav platform is that it:
C. Helps assess, architect, and simulate Cloud solutions to determine the right Cloud architecture based on our clients’ business needsAccording to the given question, we are asked to state one feature of Accenture’s myNav platform and how it affects the cloud computing for businesses.
As a result of this, we can see that this Accenture’s myNav platform is designed to help businesses navigate through their cloud solutions so that they can choose the package that would meet their client's business needs.
Therefore, the correct answer is option C
Read more here:
https://brainly.com/question/25675206
IN WHICH COUNTRY DO THEY LET YOU PLAY MINECRAFT IN SCHOOL?
Answer:
Sweden or Wales maybe?
Explanation:
Hope this helps!
Answer:
America if you play in secret
Explanation:
____________ are the in – built functions that perform a particular pre – defined task when used in a computer program.
Answer:
System software.
Explanation:
System software are the in-built functions that perform a particular pre-defined task when used in a computer program. An example of a system software is an operating system.
An operating system (OS) is a system software pre-installed on a computing device to manage or control software application, computer hardware and user processes. Some examples of an operating system are QNX, Linux, OpenVMS, MacOS, Microsoft windows, IBM, Solaris, VM etc.
Select the correct answer.
A computer using a connectionless network protocol sends too many data packets to another computer, causing loss of a few packets. As a result, the message appears jumbled to the user at the destination computer. How does TCP overcome this issue?
A.
by using flow control
B.
by using cables
C.
by using terminals
D.
by using a larger IP address
Please only answer if you are 100% sure
Answer:
D by using a larger IP address correct
Explanation:
Correct answer I hope this helps you :)
pdf
B. Ayusin ang mga titik sa bawat bilang upang mabuo ang mga
tamang salita na bumubuo ng web browser at mga ilang
bahagi ng web browser. Isulat ang iyong sagot sa sagutang
papel.
1. terterin ploexrer
2. glegoo mechro
3. foxfire zillamo
4. bat mena
5. bat wen
Answer:
Question wants the misspelled words to be properly arranged to give the correct names in relation to web browsers.
terterin ploexrer ⇒ Int-ernet Ex-plorerglegoo mechro ⇒ Goo-gle Ch-romefoxfire zillamo ⇒ M-o-z-i-l-l-a Fire-foxbat mena ⇒ Tab name.bat wen ⇒ New TabThe ‘rect()'block has two inputs that
control where it's drawn - the x and y position. If
you wanted these commands to draw different
sizes of rectangles, what additional inputs would
you need to give the blocks?
Answer is yes beacause
The w and h, which are the width and height respectively, are additional inputs that should be given to the block to draw rectangles of different sizes.
In the Drawing drawer of the Game Lab toolbox, the rect() command is used for drawing a rectangle. It takes in four inputs as arguments. These arguments are;
i. x - the x-coordinate of the point relative to the top-left corner of the display area where the shape will begin from. This is the first argument.
ii. y - the y-coordinate of the point relative to the top-left corner of the display area where the shape will begin from. This is the second argument.
iii. w - the width of the rectangle to be drawn. This is the third argument. It is measured in pixels.
iv. h - the height of the rectangle to be drawn. This is the fourth argument. It is measured in pixels.
For example, to draw a rectangle with a height of 50px, width of 60px and starting at point (x, y) = (40, 40), the command rect() will be called as follows;
rect(40, 40, 60, 50)
Take a look at another example: To draw a rectangle with a width of 120px, height of 60px and starting at point (x, y) = (30, 50), the command rect() will be called as follows;
rect(30, 50, 120, 60)
Therefore, the width and height inputs should be specified in order to draw different sizes of rectangles.
OBJECTIVE QUESTIONS
1. In a computer keyboard the Alt, Ctrl, Shift, Del & Insert
keys are known as
Answer:
A modifier
Explanation:
because this modified a computer keyboard
What is the primary reason for compressing video files?
increase frames per second
increase bit rate
decrease file size
decrease playback delay
Answer:
Decrease file size
Explanation:
This goes for almost every file you compress. If you compress it, you try to decrease the storage space it takes up as a way to make it more portable. After a compressed file is extracted, it does not have many effects on the state of the extracted file.
Answer:C
Explanation:Decrease file size
You are the systems administrator for a large trust company. Most of the Linux servers in the company host databases that are accessed frequently by company employees. One particular Linux server has been reported as being very slow today. Upon further investigation using the top utility, you have found a rogue process that is wasting a great deal of system resources. Unfortunately, the rogue process is a database maintenance program and should be killed with caution. Which kill signal would you send this process and why? If the rogue process traps this signal, which other kill signals would you try? Which command could you use as a last resort to kill the rogue process?
Answer:
soo long this one is ufff
V. Write a program in python for the following:
[10]
a) Jennifer wants to carpet her new room with pink carpet. Create a program that will ask the user for the two
dimensions of a room (length and width) and then calculate the area of the room, (length x width), before
finally displaying the answer
Answer:
length = input("length of room: ")
width = input("Width of room: ")
Area = float(length) * float(width)
print("Area of room is: ", Area)
What are the paparazzi?
O A. Professional artists hired by stars for portraits
B. Tabloids that expose celebrities acting rudely
O C. Fans who watch videos of stars doing silly things
O D. Photographers who follow stars to take pictures
Answer:
d.photographers who follow stars to take pictures
The following code will not display the results expected by the programmer. Can you find the error? Declare Real lowest, highest, average Display "Enter the lowest score." Input lowest Display "Enter the highest score." Input highest Set average = low + high / 2 Display "The average is ", average, "."
Based on the information given, the first error in the code is that the Variable name is lowest, NOT low, and Set average = low + high / 2.
How to find the error in the code.For Error 2: Variable name is highest, NOT high and Set average = low + high / 2
For Error 3 : Set average = low + high / 2. Thus, you will need to add the lowest and highest, then perform the division by 2
Set average = (lowest + highest) / 2 is the the correct statement.
Learn more about codes on:
https://brainly.com/question/25875879
True or False? A three shot is a series of any three individual
camera shots.
type in computer code for Sonic the Hedgehog, does it look weird yes or no
Answer:
yes.
Explanation: