When you write a program that will run in a GUI environment as opposed to a
command-line environment, some syntax is different.
Explanation:
GUI (Graphical User Interface) which is the computer user interface uses graphical images to activate and run the applications.Command line interface is a interface that is in a text format, which can accept commands for a task.So, to program both interface, we need high level program skills with good understanding in programming languages like C++, C etc and algorithms. Here, the GUI syntax differs from the command line interface.The while loop has two important parts: (1) a boolean expression that is tested for a true or false value, and (2) a statement or block of statements that is repeated as long as the expression is true.A.TrueB.False
Answer:
True is the correct answer for the above question.
Explanation:
The loop is used to repeat some specifies tasks for a finite amount of time. It is of three types:- For, Do-while and While.The While Loop is a Loop that has two things:- 1. The condition is used to decide that the loop statement executes or not and 2. Some line of the statement which holds the operation which helps the condition to be false after a finite iteration of the loop, so the loop executes finite times.The question-statement also wants to state which is described above. Hence the Question statement is a true statement.Answer:
The given statement is "True".
Explanation:
The while loop is iterating the condition when the condition is true if the condition which is given inside the while loop parenthesis is false it will not iterating the loop that's why sometimes while is also known as an Entry control loop. The while loop has tested the condition for a true or false value that's why the first statement is true.
In the second statement, the statement inside the while loop is executed until the condition of while loop is true when the condition id False it stops the execution of a while loop that's why the second statement is true.
Which one of the following statements is true?
a. In one’s complement format, the leftmost bit is saved for the sign where 1 indicates a negative number and 0 indicates a positive number.
b. The smallest integer that can be represented by a sign-and-magnitude binary number is always 0.
c. It is impossible to store 1610 in 4-bits because overflow will occur. d. The two’s complement representation of +6710 in 8-bits is 1000011.
Answer:
a. In one’s complement format, the leftmost bit is saved for the sign where 1 indicates a negative number and 0 indicates a positive number.
Explanation:
In binary numbers, 1's complement is used to represent the signed binary numbers. In unsigned numbers, there is no need of sign. But in signed binary numbers a signed bit is required. To add the bit that is represent the sign of the number in binary, 0 represents the positive number while 1 represents the negative number.
If we have a number and want to convert it in signed binary number, we just takes it 1's complement and add the signed bit at the left of the number.
E.g.
1 = 0001
is the binary of 1, if we want to add sign, we just add the zero at left most side of the binary which make it positive as given below:
+1 = 0 0001
Now of we want to convert it into negative than, we take 1's complement in which all bits are inverted.
-1 = 1 1110
Final answer:
The correct answer is a. In one's complement format, the leftmost bit indicates the sign, with 1 for negative and 0 for positive numbers.
Explanation:
The true statement among the ones provided is a. In one's complement format, the leftmost bit is indeed saved for the sign where 1 indicates a negative number and 0 indicates a positive number.
b is incorrect because the smallest integer that can be represented by a sign-and-magnitude binary number is -0, which is considered distinct from +0 in this representation method.
c is incorrect because it is certainly possible to store the decimal number 16 (1610) in a 4-bit binary format, specifically as 10000, which does indeed cause overflow if only 4 bits are available, but the claim itself is not expressed as a true standalone statement considering normal binary representations.
d is incorrect because the two's complement representation of +67 (6710) in 8 bits is actually 01000011, not 1000011.
Adam is a sole proprietor. He must file for bankruptcy to reorganize his debt under a repayment plan so he can pay his creditors and continue operating his business. He should file a: a. Chapter 10 bankruptcy. b. Chapter 12 bankruptcy. c. Chapter 7 bankruptcy. d. Chapter 13 bankruptcy.
Answer:
Option D i.e., Chapter 13 bankruptcy.
Explanation:
He is the sole proprietor. He needs to constantly declare bankruptcy throughout order to restructure the debts through a recovery program, so he can reimburse the creditors as well as proceed to work. He should be to apply a bankruptcy in Chapter 13.
A bankruptcy chapter 13 is considered a restructuring for an income earner. This allows people from modest salaries could establish a program that pays it back both or most of that debt.
"In spreadsheet programs, labels and constant values are always copied exactly to the new location; what happens to formulas when they are copied depends on whether they use relative cell referencing or__________
Answer: Absolute cell referencing
Explanation:
The absolute cell referencing is one of the type of cell reference address that basically contain the dollar sign in the spreadsheet applications. It is one of the important element as it helps in referring the constant values in the spreadsheet programs.
The absolute cell referencing is copied and also moved from one cell to another in the new location.The size and also the shape are also remain constant in the spreadsheet.According to the given question, the absolute cell referencing is also known as the relative cell referencing as they use the formulas for copied the values in the microsoft office excel for find out the data.
Therefore, Absolute cell referencing is the correct answer.
You have a user who takes his laptop home every day after work. When he's working in the office, the laptop must get an IP address from the DHCP server so you configure it to obtain IP and DNS information automatically. When he's working from home, the laptop must use IP and DNS information that connects with his home network.Which IP addressing method can you use to make sure he gets a network connection at home?
Answer:
Alternate IP configuration
Explanation:
Based on the information provided within the question it can be said that the best method that can be used would be Alternate IP configuration. This is a feature that is implemented in most adapter's TCP/IP settings, which allows the individual computer to switch to a new and specific IP address that will allow that computer to communicate with various devices in the private network. This also allows the network adapter to pull the address that is needed from the DHCP server, such as the individual in this scenario needs.
If they spend all night writing computer programs, Laurence can write 10 programs, and Carrie Anne can write 5. If they spend all night making sunglasses, Laurence can make 6 pairs, and Carrie Anne can make 4. Given this information and supposing Laurence and Carrie Anne have constant opportunity costs, we know that _____ has an absolute advantage in _____.
Answer:
*Laurence* has an absolute advantage in *programming*
Explanation:
we know that Laurence has an absolute advantage in both program writing and making sunglasses because
as seen above Laurence can write 10 programs over 5 of Carrie Anne.
also Laurence can make 6 pairs over 4 of Carrie Anne.
According to the dual-process model, decision making is influenced by which systems? (Select all that apply.) Creative Gist-based intuition Socioemotional Analytical
Answer:
Gist-based intuition and analytical.
Explanation:
The operations planning practice of inputting sales forecasts into computer software that accurately predicts the amount and timing of materials needed to complete products and projects is ________________.
Answer:
"Materials requirement planning" is the correct answer for the above question.
Explanation:
The "Materials requirement planning" is a software system that is used to hold the record of the raw materials. It is used to tell about the material which is present in the stocks. It also used to schedule the delivery.This software is used to enhance the productivity of the company. The above question asked about the software which is needed to keep the record of the raw material. This software is known as "Materials requirement planning".When you install all the most commonly used files and programs to your computer’s hard drive, you have completed which kind of software installation?
A full software installation includes installing all the commonly used programs and files on a computer's hard drive. It might comprise the operating system, essential system utilities, and a spectrum of applications for daily tasks. Additionally, more complex software requires proper placement and path configuration.
When you install all the most commonly used files and programs to your computer's hard drive, you have completed what is known as a full software installation. This type of installation usually includes the operating system bundled with a suite of user software that allows for basic computing tasks.
Operating systems like Microsoft Windows and Mac OS X come with these packages, incorporating essential applications such as a file explorer, and tools for document and photo management. A full software installation ensures that your computer has a wide array of functionalities for everyday use, along with system utilities and drivers that facilitate better interaction between the hardware and system software.
Application software, often referred to as apps, includes programs intended for end-users to carry out a variety of specific tasks. These tasks could range from word processing to managing files in directories such as the Document folder or the Pictures folder. For more complex software installations, it may be necessary to retrieve executable files, place them in a certain directory, typically within $HOME/local/bin, and ensure they are accessible via the $PATH environment variable within the system.
Describe how you could obtain a statistical profile of the amount of time spent by a program executing different sections of its code. Discuss the importance of obtaining such a statistical profile
Answer:
Explanation:
It can be said that the best way to obtain such a statistical profile would be to issue a periodic timer interrupt, then you would simply need to monitor which what code was running when the interruption took place. This information is especially helpful to the programmers as it would allow them to optimize the specific sections of the code that are consuming the most CPU resources, and thus making the overall program more efficient.
Which of the following statements about online research is correct? A. Experiments cannot be conducted online. B. The Internet is especially well suited to qualitative research. C. Online surveys generally have higher response rates than those conducted by mail or phone. D. Online research is only feasible for large companies. E. It is more expensive to conduct online research than using mail, phone, or personal interviews.
Answer:
Research involves information from the internet. Online surveys, questionnaires, forms, focus group, are some tools used for online research that gather data for analysis.In a given option, I think Online surveys have a high response than conducted by mail or phone.
Explanation:
Conduct Online research :
Define the topicIdentify which filed will address for online researchDetermine the list of itemsEvaluate the topicOrganize the materialOnline research could either be qualitative or quantitative.
Tools:
Some online tools are Google Trends, Omgili, Spezify, and many more.
Your Windows PC has an AMD processor installed that includes AMD-V technology and the motherboard fully supports this processor. Which is the most capable version of a Microsoft hypervisor you can install on this machine, provided the computer meets all the requirements?
Answer:
Microsoft Hyper-V Server
Explanation:
What is the name given to the software testing technique, which basically consists of finding implementation bugs using malformed/semi-malformed data injection in an automated fashion?
Answer:
Fuzz testing
Explanation:
Fuzz testing technique was developed by Professor Barton Miller and his students in the year 1989 at the University of Wisconsin Madison. This Fuzz testing technique is used in finding implementation bugs using malformed/semi-malformed data injection in an automated fashion.
Answer:
Fuzz testing is the answer.
Explanation:
Fuzz testing is a testing technique that is implemented to identify security vulnerabilities or coding errors in networks, Operating systems (OS) or software.
It involves providing random, unexpected or invalid data to identify bugs at the implementation stage and to discover how the software developed or network responds to such situations (that is, if there is a recovery mechanism in place).
The Connected Computer Click the Statement on the left, then click the Term on the right that completes the statement. Statement _____ does not allow changing service or bandwidth because a Web site allows illegal media sharing. Buying and selling products via electronic channels such as the Internet is called _____ . You use ____ when your telephone calls travel over the Internet instead of using traditional phone systems. With _____, you can access storage and applications over the Internet. The Internet connects millions of computers connected through millions of ____ worldwide. A.Term Net B.neutrality networks C.e-commerce D. VoIP E. cloud computing
Answer:
1. Net neutrality
2.E-commerce
3.VOIP
4.Cloud Computing
5.Networks
Explanation:
Notable from the above is net neutrality that holds the principle that internet service providers should never block out out or limit certain content or application on the internet and therefore all internet traffic should be treated equally regardless of the source if the traffic. This ensures there is impartiality on the internet and we are all on level playing ground.
Final answer:
The answers to the matching exercise are: (1) Net neutrality (2) e-commerce (3) VoIP (4) cloud computing (5) networks. These terms relate to the legal, economical, and technical aspects of the internet and web-based technologies.
Explanation:
The student's question appears to be a part of an interactive matching exercise related to the understanding of internet-related terminology. Below are the correct completions for the provided statements:
Net neutrality does not allow changing service or bandwidth because a Web site allows illegal media sharing.
Buying and selling products via electronic channels such as the Internet is called e-commerce.
You use VoIP when your telephone calls travel over the Internet instead of using traditional phone systems.
With cloud computing, you can access storage and applications over the Internet.
The Internet connects millions of computers connected through millions of networks worldwide.
Which of the following is an advantage to using internal databases for information? A. Internal information is accurate and complete. B. Internal information is in a form that is useful for making marketing decisions. C. They can be accessed quickly and cheaply. D. Internal information sources are easy to manage. E. The information stored in internal databases is always current.
Answer:
C. They can be accessed quickly and cheaply.
Explanation:
An internal database is information that can be obtained inside the company through internal networks. This information can be easy to get as it is in the network of the company and you have access to it and it also have a low cost as you don't have pay money to get it. According to this, the answer is that an advantage to using internal databases for information is that they can be accessed quickly and cheaply.
The other options are not right because internal information can be outdated and incomplete if it is not updated by people in the company and it can be found in different forms and it is not always easy to manage as this depends on the applications used and how the company decides to visualize it.
You have a team of desktop support specialists to help you manage the needs of a large department. You want a few of the less-experienced specialists to be able to help you support users when they need their TCP/IP configuration modified or their IP addresses released or renewed.You don't want to give them the unrestricted access that comes with being a member of the Administrators group if you don't have to.Which built-in Windows group should they be assigned to?
Answer:
Network Configuration Operators
Explanation:
Based on the information provided within the question it can be said that in Windows, especially Windows 10 these individuals can be assigned to the Network Configuration Operators in the build-in windows group. This group will give them the access they need to be able to modify network configurations such as modifying or renewing IP addresses, but will not give them access to other Administrator privileges.
Which wireless communication technology is most likely used when synchronizing device information to an automobile?
Bluetooth
NFC
RFID
Wi-Fi
Answer:
Bluetooth
Explanation:
hope that helps bro
1. Google Tag Manager helps you manage your website in which of the following ways? (select all answers that apply) a. Simplify and speed up tag deployment b. Specify when tags should fire c. Manage different versions of tags d. Increase audience reach 2. Google Tag Manager can only be used with Google tags.True / False. 3. To create a tag implementation plan, what are the recommended guidelines? (select all answers that apply) a. Decide which of your existing site tags you can move into Tag Manager b. Decide what static and dynamic values you’ll want to pass from your website c. Choose which tags can collect the data you need d. Decide which Tag Manager account to link to Google Analytics
Answer:
Answer 1
a. Simplify and speed up tag deployment
b. Specify when tags should fire
c. Manage different versions of tags
Answer 2
False
Answer 3
d. Decide which Tag Manager account to link to Google Analytics
Explanation:
If you understand what Google Analytics is, then it will not be hard for you to understand what Google tag manager is and how this management tool works. Unlike Google analytics, the core function of the Google Tag Manager is to help create and launch tags from both HTML and JavaScript. Once launched, these tags help you level up your data analytics for your websites or mobile applications and share the data with Google analytics. Advantages of using Google Tag Manager are
Collaboration tools like Slack, Skype, and many others in most companies make work easier. GTM is one of these collaboration tools. With GTM, teams can log in, modify, simplify, and speed up tag deployment instantly and much quickly. GTM has a feature that helps update tags in your container snippets across your websites and this saves a lot of time.Apart from tags, Google Tag Manager has five other components that it can use to achieve its strategy. These five components include
Container SnippetVariablesTriggersValuesOperatorsTriggers, for instance, when used correctly help can tell your tags what time they should collect and send data to different applications.
Deploying and implementing a tag using the Google Tag Manager is very easy. A few guidelines must be followed to achieve this
Decide which of your existing site tags you can move into Tag Manager – You can decide to select a new tag from the default list provided to you in the tag manager or use an existing site tag to move it into the tag manager for later deployment.
Decide what static and dynamic values you’ll want to pass from your website and Choose which tags can collect the data you need - You should also consider configuring a trigger that will tell Google Tag Manager to fire your tag. You may want your tags to fire up on all pages of your site in some cases and a subset of your pages in other cases. You can also add additional configurations like tag names and tracking ID.
Assume that a variable hoursWorked has been initialized. Write a statement that assigns the value True to the variable workedOvertime if hoursWorked is greater than 40 and False otherwise.
Answer:
Following are the statement which is given below:
workedOvertime= hoursWorked > 40 //assigns the value to workedOvertime
Explanation:
In this above statement, there is hoursWorked variable which is already initialized There is also another variable "workedOvertime" which assigns the value of the TRUE if the "hoursWorked" is greater then the 40 otherwise it initializes the value FALSE in the "workedOvertime" variable.
The > operator is used for checking the condition that variable "hoursWorked" is greater than 40 or not.
Final answer:
To assign the correct boolean value to the variable workedOvertime, use the statement workedOvertime = hoursWorked > 40; if hoursWorked is greater than 40, workedOvertime is True, otherwise, it is False.
Explanation:
To determine whether an employee has worked overtime and assign the correct boolean value to the variable workedOvertime, you can use a simple conditional statement. Here is how you would write this statement in most programming languages:
workedOvertime = hoursWorked > 40
This statement checks if hoursWorked is greater than 40. If it is, workedOvertime is set to True; otherwise, it is set to False. This is a common task in programming when dealing with pay computations that include overtime pay.
Which operating system is often found on tablets but not on smartphones?
Android
iOS
Linux
Windows
(Game Design) A float is a blank space, used as a placeholder in an array
True or false
Answer:
You need to understand what is a placeholder in an array or as an example a webpage. When you create a master page in asp.net, you add content placeholder. And you add the required code over there afterwards like header, footer and main body. Similarly, when we create an array that holds float values, we have the blank space as the float, that is going to hold the float values in future when we add values to the array. And hence, the given statement is true. Indeed float is a blank space used as placeholder in an array.
like
float a[5]; in c++
a=[0.5, 0.05] in python.
Explanation:
Please check the answer section.
Answer:
B. False
Explanation:
I listened to the answer above, and it was wrong.
A user logs into Active Directory on a workstation and the user home directory does not redirect to a network share on a file server. A technician suspects that the group policy setting is incorrect. Which command can the technician use to verify the group policy settings?
Answer:
gpresult
Explanation:
Group Policy provides the system administrator with settings that would be necessary to manage the different user accounts available in an organization. It also controls their work environment centrally by configuring the user Operating System (OS), applications and user accounts.
Group policy settings or configurations are referred to as Group Policy Objects (GPOs). These objects can be linked to organizational units (OUs), domains or sites.
There are various group policy commands such as;
rstrui (System Restore tool will run), runas (using different permission to run a tool or program), tasklist (currently running programs are showngpupdate (Group policies are refreshed)gpresult (group policy configurations are displayed for verification)
gpresult command can be used to verify the group policy configurations for adjustment or optimization. The technician can start troubleshooting from viewing the active settings, then running the rstrui to start the System Restore utility to restore the computer to an earlier date
Final answer:
To verify group policy settings for a user's home directory redirection, a technician can use the 'gpresult' command to identify applied policies or errors.
Explanation:
If a technician suspects that the group policy setting is incorrect for a user's home directory redirection in Active Directory, they can use the Resultant Set of Policy (RSoP) or the gpresult command to verify the group policy settings. For example, running the command gpresult /R in the Command Prompt will provide a summary of the group policy settings that are applied to the user's account and the computer. If the home directory settings are not being applied as expected, the gpresult output will help identify which policies are being applied or if there are any errors in the application of policies that need attention.
True or False? When shooting OTS shots of two actors / subjects speaking to each other, it is best to place the camera(s) over the same shoulder of each subject (i.e. over both of their left shoulders or both of their right shoulders).
Answer:True
Explanation: when the camera is placed over the same shoulder of the subjects it enables clear picturing p
Many computer programs contain ____ that detail the specific instructions a computer should perform (in a specific order) to carry out a specified task, such as calculating employees' paychecks or printing students' report cards.
Answer:
Algorithms.
Explanation:
Computer system is an electronic machine that receives input data, processes or executes these data and outputs the results. It comprises of two parts, the hardware and software components.
The computer receives data created by a process and inputted by individuals. The software components are the operating system and the application softwares running in the operating system. The application software follows a well defined stages of task to execute a task. This is called algorithm.
The application uses the algorithm to execute the task on the input data to give the required result.
Which method do software testers use to isolate new code from the rest of the network during the test stage of the software development life cycle (SDLC)? Sandboxing Obfuscation Encryption Code signing
Answer:
Sandboxing.
Explanation:
SDLC or software development life cycle is a systematic approach to software development. It marks the birth and death of an application.
The application development starts from the research of the properties of the application to the design and development or implementation of the application.
After the implementation of the software, it is tested, comparing the design and the codes in the development process. The sandboxing testing process helps to isolate and test new lines of code added during the testing phase.
A network uses category 3 cabling. It needs to be upgraded so that it can support faster 1 Gbps applications. In this situation what would be the minimum cable needed to accomplish this?
Answer:
The answer is "Category 5 cable".
Explanation:
It is also known as Cat 5 or class 5, but many of us consider it just "Ethernet wire". It was established in the early 1990s, which was included by the Electronics Industry group and the Telecom industry Association. It uses a twisted pair cable, which is used for carrying signals.
It supports up to 100 MHz capacity and can be used for 10Base-T, 100Base-TX, or perhaps 1000Base-T Gigabit. It is the right solution for four twisted pairs of copper cable that attached to the RJ-45 connector.Help! I turned on my computer and this screen came on out of nowhere, I don't know what to do to fix it.
Here are the steps I would do:
Do a "hard" power off. Hold the power key until the screen turns off. Wait 10 seconds. Turn it on. If it still shows the screen... then i'm not sure.
The error is occurring because it has nothing to boot off of. It's probably something wrong with your hardware. The instructions say for you to insert a "boot disk" and press any key.
Answer:
Your boot device is corrupted
Explanation: Please use startup repair if you have data on hard drive ,if data is not problem please reinstall os .
Which is true about SCSI connectors? Choose two answers. A SCSI controller can hold several devices on a single chain SCSI connectors are used in high-end servers SCSI connectors are used in laptops SCSI connectors are used on tablets
Answer:
SCSI controller can hold several devices on a single chain
SCSI connectors are used in high-end servers
Explanation:
Small Computer System Interface (SCSI) is a physical cable to transfer data between a computer and high-end server, and for that, we cannot use this cable in laptops or tables, only we must see the size of the cable to understand and discard that two options, and an advantage of the cable is held several devices on a single chain.
True statements about SCSI connectors are that a SCSI controller can hold several devices on a single chain, and they are used in high-end servers. SCSI is less common in laptops or tablets.
The question is concerning SCSI connectors which are primarily used in computer systems for peripherals. The two true statements about SCSI connectors are:
A SCSI controller can hold several devices on a single chain.SCSI connectors are used in high-end servers.SCSI, which stands for Small Computer System Interface, is a set of standards for physically connecting and transferring data between computers and peripheral devices.
The SCSI standard has typically been used in enterprise environments due to its ability to support multiple devices on a single bus and its high performance compared to other interface types available during its prime use years. It is less common to find SCSI used in laptops or tablets, as these devices generally rely on newer, more compact connection technologies like USB or Thunderbolt.
Visual Basics: 1 ) Write an if/else statement that compares the double variable pH with 7.0 and makes the following assignments to the bool variables neutral, base, and acid:
false, false, true if pH is less than 7
false, true, false if pH is greater than 7
true, false, false if pH is equal to 7
2) Visual Basics: Write an if/else statement that adds 1 to the variable minors if the variable age is less than 18, adds 1 to the variable adults if age is 18 through 64, and adds 1 to the variable seniors if age is 65 or older.
Answer:
visual basic: 1)
Module PHmodule
Sub Main()
'Creating a variable for each entity
dim ph as double = 0.0, neutral,base,acid as boolean
'Writing a line to show user what to do
console.writeline("Enter the pH :")
'Taking the value
ph=console.readline()
'using if & elseif statement for distingushing the values into correct catagories
if ph<7.0 then
neutral=false:base=false:acid=true
elseif ph>7.0 then
neutral=false:base=true:acid=false
elseif ph=7.0 then
neutral=true:base=false:acid=false
end if
'Printing the result
console.writeline(" Neutral :" & Neutral)
console.writeline(" base :" & base)
console.writeline(" acid :" & acid)
'command for staying in the command prompt for reading the result
console.readline()
End Sub
End Module
visual basic: 2)
Module AGEmodule()
Sub Main()
'Creating a variable for each entity
dim age,minors,adults,seniors as integer = 0
'Taking age from user
console.writeline("Enter the age")
age=console.readline()
'using if & elseif statement for checking the age differnce
if age<18 then'
minors +=1
else if age>18 and age<64 then
adults +=1
else if age>64 then
seniors +=1
end if
'printing result
console.writeline("minors="&minors)
console.writeline("adults="&adults)
console.writeline("seniors="&seniors)
'command for reading the result
console.readline()
End Sub
End Module
Explanation:
visual basic 1) it is very simple program which allow us to find if the substance is acidic, basic or neutral. we use sim statement for making a variable as double (gives value in decimal) which allow to take a value from the user through console.readline() command and then by using the if statement we apply the condition if the ph is less then, greator then or equal to 7.0 value. thus the program gives us the answer. console.writeline() command is used to print a command on the screen while console.readline() command let us read the lines until we press enter.
visual basic 2)a program which allow us to count and add number of persons according to their age. we use dim statement for creating the variable as integers in which we take the age from user and then after checking it through if statement we increment according to three categories i.e. minors, adults, seniors. the console.writeline() command allow us to print anything on screen and console.readline() allowus to take value while compiling.
thank you...
Write a statement that uses a conditional expression that determines if the credits variable is less than 0. If the condition is true, assign the value 0 to the credits variable, otherwise the value of the credits variable should remain unchanged.
Answer:
The statement and the expression is "credits = credits<0?0 : credits;" for the above question.
Explanation:
The conditional expression is an expression that is used to determine the true and the false case. It works like the if and the else statement.It has three parts which are shown above, in which the first part is to check the condition, the second part is excuted if the condition is true and the third part is executed if the condition is false. The variable is used to assign the value.If any user provides the credit value and writes the above statement then the credit variable holds 0 for negative value and it holds the original value for any positive or zero value.