"What does the list look like after this code executes?

colors = "red,orange,yellow,green,blue"
s = colors.split(",")

["red", "orange", ""yellow", "green", "blue"]

["red orange yellow green blue"]

[red,orange,yellow,green,blue]

red

Answers

Answer 1

Answer:

The list created by the split method in Python 3 will be ["red", "orange", ""yellow", "green", "blue"]

Explanation:

In Python 3, the split method takes the input string, in this case is colors = "red,orange,yellow,green,blue", and split it into a list and you can indicate the separator that the method will use.

The general syntax for this method is:

string.split(separator,max)

separator indicates the character that will be used as a delimiter of each list member and the max parameter indicates the maximum number of separations to make.  

Since each color in your string is separated by the character "," the code will make a list in which every color is a separated string.


Related Questions

A sequential file stored on a(n) ____________ can be updated in place.

(Points : 2) direct access storage device
paper tape
punch card file
line printer

Answers

Answer: Direct access storage device

Explanation:

 The sequential file is the simple method for organization of different types of files. The files and records are basically stored in the direct access storage device in the sequentially manner so that we can directly access the particular file according to the requirement.

The direct access storage device basically allow the any file and elements to access directly from the given storage device and address. It is less time consuming method so that it increase the overall efficiency of the system.

On the other hand, all the other options are not associated for storing the sequential file. Therefore, Direct access storage device is the correct option.

Explain what occurs when you synchronize computer and mobile devices.

Answers

Answer: The synchronization of the mobile and computer devices is termed as the merging of the information of the device with the other computer device.Synchronization action takes through the "sync" command .

The synchronization helps in updating the information or data that is present in both the devices .It also sends and receive the files and information from reach other through transferring activity.The act helps in keeping the same updated information in both the system.

Write a C++ program that will convert distance measurements from miles to kilometers. Specifically, the program needs to convert 0, 10, 20, 30, 40 , 50, 60, 70, 80, and 90 miles to kilograms displaying both the number of miles and the number of kilograms on the same line.

Answers

Answer:

// here is code in C++.

#include <bits/stdc++.h>

using namespace std;

// main function

int main()

{

// loop that will convert 0,10,20.....90 miles to kilometer

   for(int a=0;a<=90;a=a+10)

   {

   // convert miles to kilometer

       double kilo_m=a*1.609;

       // print the result

       cout<<a<<" miles is equal to "<<kilo_m<<" kilometer."<<endl;

   }

return 0;

}

Explanation:

Run a for loop from 0 to 90.First change 0 miles to kilograms by multiply 1.609. Then Increment "a" by 10 until it "a" is less or equal to 90.And change them into kilometer.

Output:

0 miles is equal to 0 kilometer.

10 miles is equal to 16.09 kilometer.

20 miles is equal to 32.18 kilometer.

30 miles is equal to 48.27 kilometer.

40 miles is equal to 64.36 kilometer.

50 miles is equal to 80.45 kilometer.

60 miles is equal to 96.54 kilometer.

70 miles is equal to 112.63 kilometer.

80 miles is equal to 128.72 kilometer.

90 miles is equal to 144.81 kilometer.

Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example, if the user entered month 2 and year 2000, the program should display that February 2000 has 29 days. If the user entered month 3 and year 2005, the program should display that March 2005 has 31 days.Here is a sample run of this program:Enter a month in the year (e.g., 1 for Jan): 1Enter a year: 2009January 2009 has 31 daysExercise 3.11Liang, Y. Daniel. Introduction to Java Programming (8th Edition)

Answers

Answer:

Following are the program in JAVA language  

import java.util.Scanner; // import package

import java.util.Calendar; // import package

public class Main // class main  

{  

public static void main(String[] args) // main function  

{  

Scanner input = new Scanner(System.in); // for user input  

Calendar calendar = Calendar.getInstance(); //get calendar instance for methods  

int nYear , nMonth , date =1 , nDays;

String MonthOfName = "";

 System.out.print(" Enter a month in the year :");

 nMonth = input.nextInt(); //input Month

 System.out.print("Enter a year :");

 nYear = input.nextInt(); //Input Year

 switch (nMonth) //Find month name via 1-12

 {

  case 1:

MonthOfName = "January";

nMonth = Calendar.JANUARY;

break;

case 2:

MonthOfName = "February";

nMonth = Calendar.FEBRUARY;

break;

case 3:

 MonthOfName = "March";

nMonth = Calendar.MARCH;

break;

 case 4:

 MonthOfName = "April";

nMonth = Calendar.APRIL;

 break;

 case 5:

MonthOfName = "May";

nMonth = Calendar.MAY;

break;

case 6:

MonthOfName = "June";

nMonth = Calendar.JUNE;

break;

case 7:

 MonthOfName = "July";

nMonth = Calendar.JULY;

break;

 case 8:

MonthOfName = "August";

nMonth = Calendar.AUGUST;

break;

case 9:

MonthOfName = "September";

nMonth = Calendar.SEPTEMBER;

break;

case 10:

MonthOfName = "October";

nMonth = Calendar.OCTOBER;

break;

case 11:

 MonthOfName = "November";

nMonth = Calendar.NOVEMBER;

break;

case 12:

MonthOfName = "December";

nMonth =Calendar. DECEMBER;

         }        

 calendar.set(nYear, nMonth, date); // set date to calender to get days in month

nDays=calendar.getActualMaximum(Calendar.DAY_OF_MONTH); // get no of days in month

System.out.println(MonthOfName + " " + nYear + " has " + nDays + " days."); //print output

}

}

Output:

Enter a month in the year : : 09

Enter a year : 2019

September 2019 has 30 days.

Explanation:

In this program we have take two user input one for the  month and other for the year Also take two variables which are used for storing the month name and no of days in a month. with the help of switch we match  the cases  and store the month value .After that  set the date to calender with help of calendar.set(nYear, nMonth, date) method and  To get the number of days from a month  we use  calendar.getActualMaximum(Calendar.DAY_OF_MONTH);  method and finally print year and days.

 

     

While the concept of ____ has well served scientists who share scientific text files and application developers who exchange code, the greater use has been in downloading artistic files, such as music and video files.

VPNs

LANs

point-to-point file protocol

peer-to-peer (P2P) file sharing

Answers

Answer: peer-to-peer (P2P) file sharing

Explanation: Peer-to-peer file sharing is the technique in which networking technology is used for the sharing and distribution of the files digitally. The sharing of the files are in the form of movies, games music etc.

Peer are considered as the nodes which are the end-user so, the end-user to end-user file transfer is done through this technology.

Other options are incorrect because VPN(virtual private network) is the connection between network and client over less secure network,LAN (Local area network) is the network that can be established for single infrastructure to connect  and point to point protocol is protocol for the routers for communication.Thus the correct option is P2P file sharing.

. Within data mining, what it it’s robustness?

Answers

Answer:

Data mining is the extraction/mining of the required/ actual data from the raw data .Rest of the data that is not required is eliminated in this process.It is used in the many field such as research, scientific, etc.

Robustness in the data mining field is for defining the strong nature of the data .This feature is responsible for stability of the data even at the occurrence of the error.The resistance shown by the data towards the problem makes the data robust .

To edit a form, use

datasheet view.
design view.
layout view.
layout view or design view.

Answers

Answer: Design view

Explanation:

 We use design view for editing and modifying the forms. The design view is basically used to create the form and then also edit the form structure. It is also capable for reducing the scope in the particular structure.

In the design view, we can use the property sheet for modifying the properties in the form and also control its features in the particular section of the form structure.

It basically provide the wide variety of comprehensive form structure and it basically helped to organize the proper information in the form.  

Answer: layout view

Explanation; on edge

Business competition is no longer limited to a particular country or even a region of the world.
True
False

Answers

Answer:

The best answer to the question: Business competition is no longer limited to a particular country or even a region of the world:___, would be: True.

Explanation:

Globalization has changed the way that all aspects of human life, and human activities develop. Globalization has meant the erasing of limitations that were placed primarily on trade and economic activities, but it also extended to other aspects of life. Because of technology advancements, especially in communications, connectivity, and travelling, the world is now easily connected and limitations are only placed up to a certain level. Thus, and especially economically, business competition has become a global issue too, with now more and more presence of multinational businesses, companies that extend not necessarily to one country, or even one region of the world, but extend to any region that will allow them to enter for business exchanges.

A __________ is an information system that produces all kind of reports and interprets information so it can be used by concerned people to make decisions.

DSS (Decision Support System)
MIS (Management Information system
EIS (Expert Information System)
TPS (Transaction Processing System)
2400

Answers

Answer: Decision support system (DSS)

Explanation:

 Decision support system is the process in which the information model basically support the managers in the process of the decision making.

It is an information system and produces various reports and also interprets the data and information so that it help to make decisions.

The decision support system (DSS) is basically carried out by the management by reviewing all kinds of the report and then generate necessary data or information.

On the other hand, all the other options are incorrect as they are not related to the decision making process. Therefore, DSS is the correct option.

Please discuss the differences between the array implementation and the linked list implementation of queues. List the advantages and disadvantages of each implementation.

Answers

Answer:

Arrays and linked list are data structures used to store data but it has some advantages and disadvantages.It Is important keep in mind thath both of them are completely usefull in it own case

Explanation:

Advantages:

Linked list: It doesn't have a size limitationIt is easy insert new elementsit doesn't have memory limitationArray:It is possible access random elementsThe memory requirements are less than linked list

Disadvantages:

Linked list:It is not possible access random element in the listit Require more memory to store the pointer to the next elementArray:It is expensive insert new elementsit is fixed sizeit needs continuos memory (memory limitation)

. Use one command to create a /sales directory with the permissions of 770

Answers

Answer:

mkdir -m 770 sales

Explanation:

The command mkdir is used to create a directory and the attribute or flag

-m is used to  assign permissions on create a folder.

Example:

mkdir -m 770 sales

Create a folder with permissions 770 with name sales

What is the Java source filename extension? What is the Java bytecode filename extension?

Answers

Answer:

The extension of java source filename is .java and the extension of bytecode filename is .class

Explanation:

The java program is saved with the classname along with .java extension. The .java extension indicated that the particular file in java file.

Suppose we have a program  

public class Main1

{

public static void main(String[] args) {

 System.out.println("Hello:");

}

}

This program is saved as :Main1.java

To compile this program in command prompt we use javac Main1.java.

On compiling the java program it will be converted into byte code which has extension .class filename extension. So on compile, this program will be converted into Main1.class

What is ‘verification’?

Answers

Answer: Verification in the terms of the computer field is defined as the process which is for testing of the consistency and the accuracy of the information, algorithm, data, etc. Verification is carried out by the approval or disapproval method after the checking process.

This techniques helps in verifying whether the function,algorithm ,data that has been accessed in the system is complete and precise or not so that it can properly function in the operating system.

What is the association rule of data mining?

Answers

Answer:

Association rules are usually referred as the if-then statements which help in order to show probability of association and relationships in between data items that are embedded within large data sets in several kinds of databases. Association rule mining also tends to have a several number of applications and thus is widely used in order to uncover sales relation in transactional data.

Write a function called reverse() with this prototype:

void reverse(char dest[], char source[], int size);

Your function should copy all the elementsin the array source into the array dest, except in reverse order. The number of elements in the source array is give in the parameter size. Use a for loop to do the copying. Assume that dest is large enough to hold all of the elements. Please be thorough with commenting.

Answers

Answer:

void reverse(char dest[], char source[], int size)

{

   for(int i=0;i<size;i++)//using for loop.

   {

       dest[i]=source[i];//assigning each element of source array to dest array.

   }

   int s=0,e=size-1;//initializing two elements s with 0 and e with size -1.

   while(s<e){

       char t=des[s];             //SWAPPING

       dest[s]=dest[e];            //SWAPPING

       dest[e]=t;                  //SWAPPING

       s++;

       e--;

   }

}

Explanation:

I have used while loop to reverse the array.I have initialize two integer variables s and e with 0 and size-1.Looping until s becomes greater than e.

It will work as follows:

first s=0 and e=0.

dest[0] will be swapped with dest[size-1]

then s=1 and e=size-2.

then des[1] will be swapped with dest[size-2]

and it will keep on going till s is less than e.

Writе thе dеclaration of a doublе pointеr namеd avеragе

Answers

Answer:

double *average; //  declaration of a doublе pointеr .

Explanation:

A pointer is a variable that will store the address of another variable of the same datatype. Here average is a pointer type variable that means it will store the address of double datatype variable.  

syntax of declaring double datatype variable  

double *variable_name  ;

double *average;  

For example:

double *average;

//declaration of a doublе pointеr

double r=90.897;

// variable r of double datatype

average=&r;// storing the address of r

What is TCP/IP's Transport layer's primary duty?

Answers

Answer:

 The TCP/IP is the transmission control protocol and internet protocol and in the TCP/IP model the transport layer is the second layer.

The primary responsibility of this layer is that it is basically used to deliver messages to the host and that is why it is known as end to end layer.

It basically provide the point to point connection between the destination to server host for delivering the various types of the services efficiently and reliably.

In the TCP/IP model the transport layer are basically responsible for transferring the data or service error free between the server to destination host.

What is an operating system? What are the main functions of a modern general purpose operating system?

Answers

Answer:

An operating system is a software that allows a user to run other applications on a computing device. The applications generally are not designed to interface directly with hardware, almost all of the applications are written to run on an operating system, in order to become independent of the hardware design.

The main function of an operating system are:

manage the hardware resources of a computer: central processing unit, memory, disk drives, and printers. establish a user interface to facilitate the interaction human-computer. execute and provide services for software applications.

The parameters needed for a MySQL database connect string are

a

host name

b

user name

c

password

d

All of the above

Answers

Answer:

d. All of the above.

Explanation:

The parameters required to for a MYSQL database connect string are as following:-

Host Name.User Name.Password.New link.Client flags.

So  among  the  given  options all of them  are  required  and  those are host name,user name,password.

Hence the answer to this question is option d all of the above.

What is pros and cons of Cleanroom Software Engineering Process?

Answers

Answer and Explanation:

Pros of cleanroom software

This helps in confirming the plan detail with the assistance of mathematically based evidence of rightness.This uses incremental development processes.This uses incremental development processes. The realistic expectation is considered as less than 5 failures per KLOC on the first program execution in the project.There are short advancement cycles and longer item life.

Cons of cleanroom software

This exceptionally relies upon the statistical utilization of testing for revealing the high impact mistakes.The software is also not compiled or executed during the verification process hence it would become difficult to find the errors.

From an IT perspective, which of the following best describes BI and BI apps?
a. Stand-alone
b. Support a specific objective
c. A collection of ISs and technologies
d. Web-based systems designed for for-profits

Answers

Answer:a)Stand-alone

Explanation: Stand-alone application is the application that is found on the system of every client.In accordance with the IT section, Business intelligence can be transferred into stand-alone application .This helps in the development of the essence of the system at an independent level.

Other options are incorrect because supporting a certain factor will not make it independent, cannot act as the group of ISs technology or web system for gaining profit.Thus,the correct option is option(a).

How many bytes are there in 256 Kbytes?

Answers

Answer:

256000 bytes.

Explanation:

One Kilo byte(KB) consists of 1000 bytes.So the number of bytes in 256 kilo bytes is :-

1 kilobyte = 1000 bytes.    

256 kilo bytes = 256 x 1000 bytes.  

256 kilo bytes = 256000 bytes.  

Also 1 bytes consists of 8 bits.

1 kb = 1000 bytes.

1GB Giga byte = 1024 kilo bytes.

1 TB Tera Byte = 1024 Giga Bytes (GB).  

Hence the answer to this question is  256,000 bytes.

A use case model describes what a system does without describing how the system does it. (Points : 1.5) True
False

Answers

Answer:

The correct answer is true.

Explanation:

By definition, a use case is a list of events that defines the interactions between an actor and a system to achieve a goal. Generally, Use cases are used by functional analysts at a higher level to represent requirements, missions or stakeholder goals.  

. What is an APT? What are some practical strategies to protect yourself from an APT?

Answers

Answer and Explanation:

Advanced Persistent Threat abbreviated as APT is a type of cyber attack which gives access to the unauthorized user  to enter the network without being detected for a long period.

APTs are generally sponsored by the government agencies of the nation or large firms. For example, one of the ATPs used was Stuxnet in the year 2010 against Iran, in order to put off the nuclear program of Iran.

Some of the practical strategies for protection against APT are:

Sound Internal AuditingStrong Password Accessing PoliciesStringent policies for accessing any deviceIntroduction and implementation of multi factor authenticationStrong IDs and sound honeypot solutions

The default behavior for Connector/Python is to use __________ results.

a

buffered

b

unbuffered

c

uninitialized

d

list-based

Answers

Answer: (C) Uninitialized

Explanation:

 The default behavior is basically used as the uninitialized result for the connector and python. As a matter of course, MySQL Connector/Python doesn't cradle or pre-fetch results. This implies after a question is executed, your program is in charge of bringing the information.

This stays away from unnecessary memory use when inquiries return huge outcome sets. On the off chance that you realize that the outcome set is little enough to deal with at the same time, you can get the outcomes promptly by setting supported as "TRUE".

Does Kennesaw State University have any computing ethical policy for computer usage? If so - what is it?

Answers

Answer:

The answer to the questions: Does Kennesaw State University have any computing ethical policy for computer usage? If so - what is it? Would be as follows:

1. Yes, Kennesaw State University, a university in Georgia, does have a computing ethical policy that regulates the proper use of the facilities and computing services within the facilities of the university and the use of computing equipment that belongs to the university. This policy is known as the KSU Computer Usage Policy.

2. As said before this policy establishes that the use of computing services are not the right of a person, but rather a privilege afforded to the students, faculty and other people who are present in the university and who may need to use its computing services. The use of the computing services would be whitin this policy as long as it stays inside the delimitations established by federal, state and University policies.

Explanation:

In a typical configuration the total RAM capacity is less than total ROM capacity.

True

False

Answers

Answer:

False

Explanation:

The difference between RAM and RAM is as follows

(1) RAM (random access memory) is meant for temporary storage whereas ROM (read-only memory) is meant for permanent storage.

(2) RAM chip is volatile, means once the power is turned off, it loses the previously holding information, where as ROM is non-volatile it doesn't losses any information even though power is turned off.

(3) RAM chip is used in the normal operations of the computer, whereas the ROM chip is used mainly for the startup process of computer.

(4) Generally, A RAM can store several gigabytes (GB) of data that is up to 16 GB whereas a ROM chip can typically store that much data. It only stores several megabytes (MB) of data that is up to 4 MB.

hence, the given statement about RAM is false.

What does it mean to 'instantiate' an object?

Answers

Explanation:

Instantiate an object means creating an instance of accessing the property of a class we can create instance or object for that class. The property of class means method and variable with the help of instance we can directly access the method and variable.

For example  

class abc // class abc

{

public:

void sum1() // function definition

{

cout<<" hello "; // display hello

}

};

void main() // main method  

{

abc ob; //  creating an instance  

ob.sum1(); // calling a function sum1  

}

Output:

hello

Here we create a instance of class abc i.e ob which can access the method sum1().

Time and weather Write a program to take as input and 4-digit number from the user. The first two digits represent the day of the month and the last two digits represent the month of the year. The program should then display the following: "It's winter" if the month entered is 12, 1 or2 . "It's Spring" if the month entered is 3, 4, or 5 "It's Summer", if the month entered is 6,7, or 8 "It's Fall", if the month entered is 9, 10, or 11 The program should also display the current week number of the month

Answers

Answer:

#here is program in python

#read 4 digit number

date=int(input("enter the date:"))

#first 2 digit is day

day=int(date/100)

#last 2 digit is month

month=date%100

#find the week of the month

if day<=7:

  week=1

elif day>=8 and day<=14:

  week=2

elif day>=15 and day<=21:

  week=3

elif day>=22 and day<=28:

  week=4

elif day>=29:

  week=5

#check for Winter

if month in [12,1,2]:

  print("week {} of Winter.".format(week))

# check for Spring

elif month in [3,4,5]:

  print("week {} of Spring.".format(week))

#check for Summer

elif month in [6,7,8]:

  print("week {} of Summer.".format(week))

#check for Fall

elif month in [9,10,11]:

  print("week {} of Fall.".format(week))

Explanation:

Read a 4 digit number from user.first 2 digits represents the day and last 2 month.Then find the week of the month.If the month is in [12,1,2] then it will print "Winter" and week of that month.If month is in [3,4,5] then print "Summer" with week.If the month is in [6,7,8] then "Summer" and if the month is in [9,10,11] then "Fall".

Output:

enter the date:1212

week 2 of Winter.

Is spread spectrum transmission done for security reasons in commercial WLANs?

Answers

Answer: No

Explanation: Spread spectrum transmission is the wireless transmission technique for the wide channel that helps in decrement of the potential interference.The transmission of signal is based on the varying the frequency knowingly to achieve larger bandwidth.

The use of spread spectrum transmission in the WLAN(wireless local area network)is used for the regulatory purpose The regulation is the controlling of the area  through policies.Thus,security is not the service that is provided to WLAN by spread spectrum transmission.

Other Questions
An architect has a blueprint with the scale missing. A wall that measures 10 feet on site shows as 2.5 inches on the blueprint. What is the scale for this blueprint? an art student uses a roll of wallpaper to decorate two gift boxes the student will use 1 1/3 yards of paper fo one box and 5/6 yars of paper for the other box the paper must be cut into pieces that are 1/6 yard long how many pieces will the student cutr to use for the gift boxes In order to use a ladder safely, the angle that the ladder forms with the ground should not exceed 70 degree. If you have a ladder that is 16 ft. long, what is the maximum height on the wall of a building that the ladder will safely reach? Round your answer to the nearest thousandth. Please help and thank you C6H12O6 + O2 > CO2 + H2O What is the ozone layer, how was it threatened, and what have we done to fix it? Be as precise and accurate as possible. An ice cream sundae costs $1.75 plus an additional $0.35 for each topping. If the totalcost is $2.80, how many toppings did the sundae have? Joshua dived to a depth of 25 fr below sea level. How many feet must Joshua rise before returning to sea level which is 0 ft Read this excerpt from "The World on Turtle's Back."These two brothers had creative powers, and with these powers they took clay and modeled it into animals. They used these animals to contend with one another. Each brother created a more powerful or more cunning animal than the next. They also created fruits, plants, and medicines for good and for evil. Finally, the right-handed twin made man. It is unknown whether or not the left-handed twin assisted in the creation of man. Man was the right-handed twin's favorite creation.How does this support the idea that "The World on Turtle's Back" is a creation myth?A. It explains the origin of people, animals, and plants.B. It describes the rivalry between the two brothers.C. It shows that animals and plants can represent good or evil.D. It confirms that man was the right-handed twins favorite animal. ___________ is/are a type of neurotransmitter with similar properties to morphine. show that when the measure of an angle is added to three times the angle's complement, the result is equal to the sum of the anle's complment and the angle's supplement. What agricultural products did colonial Georgia grow for export to Europe?Choose the three from this list that were most significant at the time Georgia was a royal colony.indigopeachespotatoestobaccoriceapples Factor out the GCF and factor completely. 9m3 - 16mAm(3m + 4)(3m - 4)Bm(9m2 - 16)Cm(9m - 4)Dm(3m2 + 4)(3m2 + 4) Who is the Prince, according to Machiavelli?a) His readersb) Speakers of the House c) Ruler of the landd) The lowly peasant Which healthcare professional requires the most years of education prior to working? A sodium-vapor lamp emits yellow light at a wavelength of 589 nm. How much energy is emitted by 3.78 mg of excited sodium atoms emitting at this wavelength. Select all input values for which f(x) =2A) x= -7B) x= 0C) x= 4None of the above How many stories was the north tower of the world trade center Your best friends grandmother has just suffered a stroke. This stroke has left her with an inability to speak, but she can still understand what others say to her. She also has paralysis on the right side of her body. Your friend wants to know what part of her grandmothers brain was likely damaged by the stroke. Based on your understanding of the brain, what would you tell your friend? List 4 everyday products that are made from seafloor deposits