What is the output of the following statement?
printf("%s", strspn("Cows like to moo.", "Ceiklosw ");
a. 10.
b. 8.
c. e.
d. nothing.

Answers

Answer 1

Answer:

The correct answer is D) Nothing  

Explanation:

This question speaks to the results of programming using C language.

The printf() function is used to print ('character, string, float, integer, octal and hexadecimal values') onto the output screen when programming using C language program.

We use printf() function

with %d format specifier to display the value of an integer variable,

with %c to display character,

With %f for float variable,

with %s for string variable,

with %lf for double and

with  %x for the hexadecimal variable.

Strspn() is often used to calculate the number of identical characters in both string and escape, whether the str1 does not match the str2 characters.

If the above statement is cued into a c compiler, it will thus return an error.

Cheers


Related Questions

PLS HELP I WILL MARK BRAINLIEST

Answers

Answer:B

Explanation: its the nucules

The answer most likely is B

Complete the sentence.
Python is a_____
level language compared to bytecode.

Answers

Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.

Python is a high level language compared to bytecode.

Why Python is a high level programming language?

Hence, being an interpreted language, which is not subject to processor, makes Python a high-level language. Also, Python offers convenience of code readability -- which makes the syntax of the program much easier and shorter, resulting in less coding steps for developers than imposed by Java or C++.

Which type of language is Python?

Python is an interpreted, interactive, object-oriented programming language. It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes.

To learn more about python, refer

https://brainly.com/question/24700944

#SPJ2

Let's play Silly Sentences!

[name] was planning a dream vacation to [place].
[name] was especially looking forward to trying the local
cuisine, including [adjective 1] [food 1] and [food 2].

[name] will have to practice the language [adverb] to
make it easier to [verb] with people.

[name] has a long list of sights to see, including the
[noun] museum and the [adjective 2] park.

Answers

Answer:

Miah was planning a dream vacation to paris.

James was especially looking forward to trying local cuisine, including a barber shop , pizza joint, ice cream shop.

Mathew will have to practice the language slower to make it easier to communicate with people.

Jozlynn has a long list of sights to see, including the chicago museum and the lila arboretum park in michigan

Explanation:

Answer:

Ooh, ok ok.

Michelle was planning a dream vacation to Costa Rica. She was especially looking forward to trying the local cuisine, including picadillo, crema de fruta, and quesadillas.

Michelle will have to practice the language thoroughly to make it easier to socialize with people.

Michelle has a long list of sights to see, including the Jade Museum and the dog park.

If you don't mind will you please mark brainliest?! Thanks!  :)

Write a program that asks the user for the name of a text file. The program should display the first 10 lines of the file on the screen. If the file has fewer than 10 lines, the entire file should be displayed along with a message indicating the entire file has been displayed.

Answers

Answer:

Written in Python

filenm = input("File name: ")

myfile = open(filenm+".txt")

for i in range(10):

     line = myfile.readline()

     print(line)

print("End of file")

Explanation:

This line prompts user for file name

filenm = input("File name: ")

This line creates an instance of the file

myfile = open(filenm+".txt")

This line iterates through the 10 lines

for i in range(10):

This line reads the line

     line = myfile.readline()

This line prints each line

     print(line)

This line prints a message indicating that all possible lines have been printed

print("End of file")

Write a code for function main, that does the following: creates a variable and assign it the value True. uses a while loop which runs as long as the variable of the previous step is True, inside the while loop, get three integer numbers n1, n2 and n3 from the user and

Answers

Answer:

def main():

   is_true = True

   while is_true == False:

       try:

           num1 = int(input("Enter first number: ")

           num2 = int(input("Enter second number: ")

           num3 = int(input("Enter third number: ")

       except ValueError:

           print("Input must be an integer number")

       is_true = bool(input("do you want to end loop? True/False: "))

main()

Explanation:

The python main function above continuously creates three integer numbers in a while loop statement until a false input is received from the user.

why is monitor called softcopy output device?​

Answers

Answer:

A display device is the most common form of output device it presents output visually on a computer screen.the output appears temporarily on the screen and can easily altered or erased,it is sometimes referred to as softcopy

Florian and Tobias would like to begin communicating using a symmetric cryptosystem, but they have no prearranged secret and are not able to meet in person to exchange keys. What algorithm can they use to securely exchange the secret key?

a. IDEA
b. Diffie-Hellman
c. RSA
d. MD5

Answers

The answer is MD5

Hope this helps you have a great thanksgiving

differences between formula and function as used in spreadsheet​

Answers

I hope it is helpful for you ...

The type of wireless access that uses a modem to connect to cell towers is called ___
broadband.

Answers

Answer:

What are the Wireless Broadband Technologies?

What are the Wireless Broadband Technologies?

Wireless broadband services are similar to wired broadband in that they connect to an internet backbone usually a fiber-optic trunk; however they don’t use cables to connect to the last mile or business/residences. Instead they use Wireless Fidelity (Wi-Fi) connections or radio waves. A computer or mobile device has a wireless adapter that translates data into a radio signal and transmits the signal using an antenna. A wireless router receives the signal, decodes it and then sends it to the Internet through a wired Ethernet connection.

Fixed wireless is a type of high-speed Internet access where connections to service providers use radio signals rather than cables. Fixed wireless offers connections speeds between 1 and 10 mbps and use transmission towers similar to cell phone towers that communicate to a resident’s transceiver equipment that, as the name implies is fixed at the premise. The transceiver equipment communicates with the providers’ ground stations.

Wireless fidelity (Wi-Fi) is a fixed, short-range technology that is often used in combination with DSL, fixed wireless, fiber, or cable modem service to connect devices within a home or business to the Internet using a radio link between the location and the service provider’s facility. Wi-Fi service can be available in your home or at community locations (airports, coffee shops, schools, businesses, etc.) and are often called “hotspots.” A Wi-Fi network uses radio waves, similar to two-way radio communications. A computer has a wireless adapter that translates data into a radio signal and transmits it using an antenna. A router receives the signal, decodes it, and then sends the information to the Internet using a physical connection, usually via an Ethernet cable, a cable that carries the broadband signal between the modem, router, computer, and other wired Internet capable devices.

Mobile Wireless (3G, 4G)

Mobile wireless is high-speed wireless broadband connection that is accessible from random locations. The locations depend on the provider’s cellular towers and monthly service plans. Many technologies make up wireless networks, but no matter the technology or acronyms you read or hear, mobile wireless networks are radio systems.

Mobile wireless services are continually being upgraded to provide data transmission speeds considered to be broadband. The faster mobile wireless networks are referred to as 3G or 4G.The “G” stands for “generation,” meaning 3rd and 4th generation or the evolution of broadband cellular networks; supposedly, each generation provides a faster more secure wireless network. A mobile wireless service requires a base station that is connected to a high capacity landline data transmission network to reach the Internet. In other words, it’s never wired OR wireless; ultimately, it has to be both. Wireless broadband in common usage means that the so-called “last mile” connection to the user is done via radio signals from a tower to a cell phone or other wireless devices (e.g., a tablet).

Long Term Evolution (LTE)

LTE is a 4G technology provides increased peak data rates, reduced latency, scalable bandwidth capacity than 4G predecessors. LTE can manage multi-cast and broadcast streams and handle quick-moving mobile phones. It uses an IP-based network architecture that allows for seamless handovers for voice and data to older model cell towers.

Satellite

Satellite broadband is sometimes the only option available to users in very rural or sparsely populated areas. Like telephone and television services, satellites orbiting the earth provide necessary links for broadband. With satellite service, you must have a clear view of the southern sky. Satellite service can be disrupted by weather conditions and changes in line of sight to the orbiting satellite. Satellite may have a higher monthly service charge than other broadband options and the need to purchase more home or business equipment compared to the other options. Because satellites are located a significant distance from customers, there are issues of “latency” and therefore a noticeable time lag between sending and receiving data by the end customer.

Downstream and upstream speeds for satellite broadband depend on several factors, including the provider and service package purchased the consumer’s line of sight to the orbiting satellite, and the weather. Satellite speeds may be slower than DSL and cable modem, but they can be about 10 times faster than the download speed with dial-up Internet access. Service can be disrupted in extreme weather conditions.

Source: Information from Wisconsin’s Broadband Reference Guide produced by: WI Public Service Commission, UW-Extension Madison, and the Center for Community Technology Solutions, January 2014

Explanation:

For risk monitoring, what are some techniques or tools you can implement in each of the seven domains of a typical IT infrastructure to help mitigate risk

Answers

Answer:

 a. User Domain: Create awareness for acceptable user-policies and security risk to educate employees of pending risk.

b. Workstation Domain: Install anti-virus and constantly update the system software.

c. LAN Domain:  Access control list or ACL should be configured in routers and port security in switches to avoid hackers physically connecting to the network.

d. LAN-to-WAN Domain: Configure firewalls and intrusion detection and prevention protocols to mitigate unwanted access.

e. WAN Domain: Configure demilitarized or demarcation zone to provide secure access and prevent unwanted users from accessing network information.

f. Remote Access Domain: The use of VPNs to grant remote access to users or employees working from home and internet protocol security (IPsec) to encrypt the packet transmission.

g. Systems/Applications Domain: Administration should be well trained and ensure to get security software patches from appropriate vendors and testing them before use.

Explanation:

Risk monitoring is one of the IT infrastructure risks management plan that observes and analyzes the threats of risk in an IT infrastructure.

What is created automatically when you install Windows Server 2019 on a system with a disk drive that has never had an OS installed on it before?

Answers

Answer:

System volume

Explanation:

The System Volume Information folder can be regarded as a zone on the hard drive which is usually created by the Operating System, this is utilized

by Windows which allows storing of critical information that is related to the system configuration. As well as the computer storage is concerned, The volume/ logical drive is viewed as a single accessible storage area containing single file system, which lies on a single partition in hard disk.

It should be noted that the System volume is created automatically when you install Windows Server 2019 on a system with a disk drive that has never had an OS installed on it before.

Windows Server 2019 is version of Windows Server server operating system which is a server from Microsoft,

UK UKI
Different
DIFFERENTIATE BETWEEN FORMULA & A FUNCTION GNING EXAMPLE​

Answers

Explanation:

A Formula is an equation designed by a user in Excel, while a Function is a predefined calculation in the spreadsheet application. Excel enables users to perform simple calculations such as finding totals for a row or column of numbers. Formulas and functions can be useful in more complex situations, including calculating mortgage payments, solving engineering or math problems, and creating financial models.

How to get free PS5?

Answers

Answer: You can't.

Explanation:

You simply cannot get a free PS5.

Answer:

camping for ps5 will do but you have to be all night

or use bots to pre oder

Explanation:

In a program a menu shows a list of?

Answers

Answer:

implemented instructions

A(n) __________ prevents outsiders from accessing corporate information the user does not want others to see.

Answers

Answer:

Firewall

Explanation:

A Firewall prevents outsiders from accessing corporate information the user does not want others to see. It could be in the form of a hardware or a software.

Most companies use this in order to keep confidential informations from the public. This is very important to prevent unauthorized access which could lead to different types of problems in the long run.

_______________ is a computer networking protocol used by hosts to retrieve IP address assignments.

Answers

Answer:

DHCP

Explanation:

stands for dynamic host configuration protocol and is a network protocol used on IP networks where a DHCP server automatically assigns an IP address and other information to each host on the network so they can communicate efficiently with other endpoints.

What printer prints in different languages ​

Answers

Answer:

Printing in a different language

HP Deskjet 2630.Microsoft Windows 10 (32-bit)

Which of the following is NOT a reason to include comments in programs
A. Comments help the computer decide whether certain components of a program are important.
B. Comments help programmers debug issues in their own code
C. Comments help document how code was written for other programmers to use
D. Comments enable programmers to track their work throughout the development process

Previous page Submit

Answers

Answer:

C. Comments help document how code was written for other programmers to use.

Explanation:

I think it i C.

Answer:

A. Comments help the computer decide whether certain components of a program are important.

- just took the test and got it right. hope this helps!!

Which of the following is an algorithm?
an opinion about a new movie
O a description of a day at the park
O directions for making cookies
an explanation for why someone was late

Answers

Description of a day at the park I think
I guess it’s the cookies recipe. Bcs that’s the only one that can’t really change. That’s the only one being objective and with instructions.

If you make an algorithm for making cookies, you’ll always get cookies.
But if you make an algorithm for why someone was late. You will be wrong bcs it’s kinda unpredictable.

A boundary marks the inside and outside of a system and sets the system apart from its environment.

A. True

B. False

Answers

Answer:

True

Explanation:

The system boundary can be regarded as a conceptual line that demacate

the system that is under study from 'everything else'. which is the environment. The environment consist of things that can influence the system but not part of the system. when the system is small , its boundary will be sharper. Some Large systems usually have multiple boundaries.boundary can as well be regarded as the point of contact which gives room for meeting between a system its environment , it is also point subsystems meet each other. It should be noted that boundary marks the inside and outside of a system and sets the system apart from its environment.

this shows you where text will appear as you type.

Answers

Answer:  what?

Explanation:

How do I fix my mistake in the code, do not give me a bs answer like “I don’t know sorry” if you do not know just move on because I will report it like I have before.

Answers

The problem lies within your if statement. You're using a single equals sign when you should be using two.

if (operation == 1)

Two equal signs is a comparison operator. It checks to see if one value equals another value. In your case, its checking if operation equals 1. But, this only solves half the problem. Operation is a string and you need to compare it to a string.

if (operation == "1")

I hope this helps!

what is the answer only right answers

Answers

Answer:

hmm....

Explanation:

Memory compression is a useful alternative to paging:_______.
a. when the compression algorithm is can achieve the best possible compression ratio.
b. when the system has slow magnetic disks but not faster SSDs.
c. when the speed of the compression algorithm fastest.
d. even when the system has faster SSDs.

Answers

Answer:

d. even when the system has faster SSDs.

Explanation:

Given that Memory compression and Paging are both means of performing memory management in different ways.

However, Memory compression is a useful alternative to paging "even when the system has faster SSDs."

This is because Memory compression enhances the productivity of Radom Access Memory, RAM, which in turn increases the performance level of a computer.

Also, paging requires consistent writing on Disks, which has been found to degrade disks most especially solid-state drives, SSDs.

Could someone please tell me how to code the table in the picture in HTML 5

Answers

Answer:

gdoogle "html 5 table", its easier to do that on google than on this forum

Explanation:

A computer is using a fully associative cache and has 216 bytes of memory and a cache of 64 blocks, where each block contains 32 bytes.

Required:
a. How many blocks of main memory are there?
b. What is the format of a memory address as seen by the cache, that is, what are the sizes of the tag and offset fields?
c. To which cache block will the memory address F8C9 (subscript) 16 map?

Answers

1) The number of blocks of main memory that are there are;

2^16/32 = 2^16/2^5 = 2^11

2) The format of a memory address as seen by the cache,that is the sizes of the tag and offset fields are;

16 bit addresses with 11 bits also in the tag field and the 5 bits in the word field.

3) The cache block that the memory address F8C9 (subscript) 16 map;

Since it is an associative cache, it can actually map anywhere.

That is, it has the ability of mapping anywhere.

Java Eclipse homework. I need help coding this

Challenge 14A - BaseConverter

Package: chall14A
Class: BaseConverter

Task: Create a program that takes user input as a decimal and converts it to either an octal, binary, or hexadecimal base:

1. Show a title on the screen for the program.
2. Ask the user if they want to run the program.
3. Create a menu for the user to choose the base to convert to.
4. Take decimal (base10) from user and print out the number in the new base.

Answers

import java.util.Scanner;

public class BaseConvertor {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Welcome to Base Convertor! This program will convert numbers into different bases of your choosing.");

       System.out.print("Do you still want to run the program? ");

       String ans = scan.next();

       if (ans.toLowerCase().equals("yes")){

           System.out.println("1. Octal");

           System.out.println("2. Binary");

           System.out.println("3. Hexadecimal");

           System.out.print("Type the number of the base you want to conver to: ");

           int base = scan.nextInt();

           System.out.print("Enter your number: ");

           int num = scan.nextInt();

           if (base == 1){

               

               String newNum = Integer.toOctalString(num);

               System.out.println(num+" in Octal is "+newNum);

           }

           else if (base == 2){

               String newNum = Integer.toBinaryString(num);

               System.out.println(num+" in Binary is "+newNum);

           }

           else if (base == 3){

               String newNum = Integer.toHexString(num);

               System.out.println(num+" in Hexadecimal is "+newNum);

           }

                   

       }

       else{

           System.out.println("Have a good day!");

       }

   }

   

}

I hope this helps!

The following statements are the rules to be followed in maintaining good health standards in the workplace EXCEPT.
A. Adequate sanitary facilities
B. Wellness of workers
C. Promoting a positive social climate
D. Establishing good relationship with co-workers​

Answers

I think all the statements are the rules to be followed in maintaining good health standard in the workplace

The HTTP protocol operates at which layer?

Answers

Answer:

application layer i believe

Answer:

The HyperText Transfer Protocol (HTTP), is the Web's application-layer protocol, is at the heart of the Web

Explanation:

Please help. Will give brainliest

Answers

I don’t understand it sorry :(.
Other Questions
How to skip edgen.uity Video Name some useful products or materials that are carried by blood. Oklahoma was the first state to enter the Union as a(n) stateA. soonerB. wetC. boomerD. dry In wet mill ethanol plants, a total energy of 74,488 Btu (British thermal units, a common energy unit) is used to produce 1 gallon of ethanol. If ethanol can provide 76,330 Btu per gallon, what is the net energy yield for one gallon of ethanol? Describe the basic beliefs of socialism. Which element has a greater ionization energy, rubidium or iodine? If you guys have read Number the Stars, by Lois Lowry, can you summarize chapter 14 (On the Dark Path) in 2 sentences? Which grievance was not brought against king George lll in the Declaration of Independence could someone help me with this math question? its operations with scientific notations give one word substitution of a person in charge of a museum Ok I need to know if I did this right so: 8^0 = 1 right (exponents) please help Based on the table, what has been an impact of political parties on policy making?The number of governors who are Democrats increased.Republican issue positions have increasingly shaped state government policy.Democratic issue positions have increasingly shaped state government policy.OThe number of governors who are Republicans decreased. Please help 30 points!!'Write an equation based on the following conditions in slope/y intercept form Perpendicular to 3x-4y=9 through (-15,-4) also can yall provide some shown work as my geometry teacher asked for shown work Use the information in the table to describe the temperature-vs.-time diagrams.The diagram for gallium will have flat, horizontal lines C.The diagram for methane will have a line representing the between -183C and -162C.For gold, the boiling point corresponds to the y-value at C of theFor nitrogen, the line at -210C will be , which represents the There are 7 girls and 13 boys in a class at a PrivateSchool. Of these students, 5 girls and 3 boys are inthe Running club. What percentage of the studentsat this Private School are in the Running club? You just purchased a single license for the latest Microsoft Office Suite. Your friend has asked to borrow the CD, so he can install it on his computer, too. Is it okay for him to install it? No; acts of piracy are legal; however, I paid for it. If he wants it, he can pay for it, too. No; this would be considered piracy, so he should buy his own license. Yes; I purchased the single license, so I can install it on as many computers as I want. Yes; this would only be considered piracy if my friend paid me to install it on his computer too. how to get more subscribers If a patient has a medical condition that causes his cells to absorb fewer than normal __________ molecules, this patient would likely feel very tired. Explain your reasoning1. oxygen 2. fiber3. starch4. protein Reasoning: Write a three sentence statement that connects your evidence to your claimabout living organisms. Pts15- The separation of powers in the Constitution favored by Federalists provideda way for the states to make sure their rights were protected.A. a way for the states to make sure their rights were protected.B. the division of government into legislative, executive, and judicial branches.C. the right of the people to check the power of their government.D. a way to ensure that monarchy could not develop in the United States.