1. Write a program to take a number and print whether it is an odd number or even number. -Artificial Intelligence

1 Answer

Answer :

num = int(input("Enter a number: ")) mod = num % 2 if mod > 0: print("This is an odd number.") else: print("This is an even number.")

Related questions

Description : 2. write a Python program to calculate the area of a circle. -Artificial Intelligence

Last Answer : # Python Program to find Area Of Circle using Radius PI = 3.14 radius = float(input(' Please Enter the radius of a circle: ')) area = PI * radius * radius circumference = 2 * PI * radius print(" Area Of a Circle = area + "sq ms") print(" Circumference Of a Circle = circumference +"cms")

Description : Care to comment on Steven Hawking's latest assertion that the rise of artificial intelligence will mean extinction for the human race?

Last Answer : answer:Hawking could have gone a bit farther with his concern: The rise of human intelligence will mean extinction for the human race. That is, as our intelligence improves (in any of the various ... Our weapons systems continue to improve, but our diplomatic skills are stuck in the Dark Ages.

Description : What is your take on defeat of Go World Champion by Alpha Go System designed by google?

Last Answer : One day we will be able to threaten an ATM and get money.

Description : If a chatterbot were answering some of the Fluther questions, would the moderators detect it?

Last Answer : Not directly. The user agent string would (hopefully, if they knew what they were doing) make the bot appear to be a normal user, and it would post at a rate that would make it appear to be human. ... ban them , it's more about looking to say this user posts garbage, so we should ban them .

Description : Write a C++ program to find whether the entered number is even or odd.

Last Answer : #include<iostream.h> #include<conio.h> void main()  { int num; clrscr(); cout<<"\nEnter a Number "; cin>>num; if(num%2==0)  { cout<<"\nEntered ... else  { cout<<"\nEntered number is odd";  } getch();  }

Description : Write a program to create two threads one thread will print even no. between 1 to 50 and other will print odd number between 1 to 50.

Last Answer : import java.lang.*; class Even extends Thread { public void run() { try { for(int i=2;i<=50;i=i+2) { System.out.println("\t Even thread :"+i); sleep(500); } } ... public static void main(String args[]) { new Even().start(); new Odd().start(); } }

Description : Write a shell script to accept a number from user check whether number is even or odd.

Last Answer : 2 8

Description : A.M. turing developed a technique for determining whether a computer could or could not demonstrate the artificial Intelligence, Presently, this technique is called __________ a) Turing Test b) Algorithm c) Boolean Algebra d) Logarithm

Last Answer : a) Turing Test

Description : A.M. turing developed a technique for determining whether a computer could or could not demonstrate the artificial Intelligence,, Presently, this technique is called A. Turing Test B. Algorithm C. Boolean Algebra D. Logarithm E. None of the above

Last Answer : A. Turing Test

Description : Write a program to accept the value of year as input from the keyboard & print whether it is a leap year or not. 

Last Answer : #include #include void main() { int year; clrscr(); printf("Enter year"); scanf("%d",&year); if(year%4==0) { printf("Year %d is a leap year",year); } else { printf("Year %d is not a leap year",year); } getch(); }

Description : Draw flowchart for checking whether given number is even or odd. 

Last Answer : flowchart for checking whether given number is even or odd.  

Description : What is used to identify whether a data word has an odd or even number of 1’s ? (1) Carry bit (2) Sign bit (3) Zero bit (4) Parity bit

Last Answer : Parity bit

Description : How to write a Python program (i)to calculate area of a circle and (ii)to find if a given number is even or odd. -Python

Last Answer : (i) # 1.Circle pi = 3.14 r = int(input("Please enter the Radius of the circle:")) area = pi*r*r print("Area of the circle is" + str(area) + "sq ms") (ii) # 2. Odd Number & Even Number Number = int( ... Number % 2 == 0): print("This is an Even Number") else: print("It's an Odd Number")

Description : What are the composition for agents in artificial intelligence? a) Program b) Architecture c) Both Program & Architecture d) None of the mentioned

Last Answer : c) Both Program & Architecture

Description : What is the name of the computer program that contains the distilled knowledge of an expert? a) Database management system b) Management information System c) Expert system d) Artificial intelligence

Last Answer : c) Expert system

Description : Artificial intelligence is A . It uses machine-learning techniques. Here program can learn From past experience and adapt themselves to new situations B. Computational procedure that takes some ... performs tasks that would require intelligence when performed by humans D . None of these

Last Answer : C. Science of making machines performs tasks that would require intelligence when performed by humans

Description : What is the name of the computer program that contains the distilled knowledge of an expert? ⮚ Management information System ⮚ Expert system ⮚ Data base management system ⮚ Artificial intelligence

Last Answer : Expert system

Description : In the Print dialog box, you can select the pages for printing. (a) Even pages (b) Odd pages (c) All pages in range (d) All of these -Technology

Last Answer : (d) You can select the even, odd and all pages in range for printing.

Description : Develop a program to accept an integer number and print whether it is palindrome or not.

Last Answer : #include<stdio.h> #include<conio.h> void main() { int n,num,rev=0,digit,i; clrscr(); printf("Enter the number: "); scanf("%d",&num); n=num ... ;Number is palindrome"); else printf("Number is not palindrome"); getch(); }

Description : Write a short code using C++ to print out all odd number from 1 to 100 using a for loop

Last Answer : for( unsigned int i = 1; i < = 100; i++ ) if( i & 0x00000001 ) cout

Description : Will artificial intelligence take away job opportunities?

Last Answer : Technology overall ends several jobs even though it creates a lot too. It just takes away the Jobs from more people and gives it to others with a lot of expertise in technology. I am sure artificial ... but I am sure AI will definitely erase a whole bunch of position in the market as well.

Description : _____ devices may support a number of interoperable communication protocols and communicate with other device and also with infrastructure. A. Artificial Intelligence B. Machine Learning C. Internet of Things D. None of above

Last Answer : C. Internet of Things 

Description : suppose you roll a number cube 30 times write a ratio to describe the theoretical probability of rolling each of the following: (show all your work) 1,4,6,7 an even number an odd number please help I need this thankyou?

Last Answer : Please help NOW SOS

Description : Write an algorithm to determine the given number is odd or even.

Last Answer : Step 1- Start Step 2- Read / input the number. Step 3- if n%2==0 then number is even. Step 4- else number is odd. Step 5- display the output. Step 6- Stop

Description : What is artificial intelligence?

Last Answer : Artificial intelligence is the simulation of human intelligence processes by machines, especially computer systems, and is an important concept in computer science and robotics.

Description : What is artificial intelligence?

Last Answer : Artificial intelligence is the development of computer systems and software that are able to perform tasks that normally require human intelligence, such as recognizing speech and images, making decisions, and learning from experience.

Description : What is artificial intelligence?

Last Answer : Artificial intelligence (AI) is the simulation of human intelligence in machines, enabling them to perform tasks that typically require human intelligence, such as visual perception, speech recognition, and decision-making.

Description : What is artificial intelligence?

Last Answer : Artificial intelligence (AI) is the development of computer systems that can perform tasks that would normally require human intelligence, such as learning, reasoning, and decision-making.

Description : What is artificial intelligence?

Last Answer : Artificial intelligence (AI) is the development of computer systems that can perform tasks that normally require human intelligence, such as speech recognition, decision-making, and language translation.

Description : What do you think, is the best explanation for the contrasting attitudes towards artificial intelligence in Star Trek TOS vs TNG?

Last Answer : ~Gene Roddenberry probably realized that we might be in the Matrix, and didn’t want to make enemies with our future overlords.~ Star Trek is all about the Federation being in front of rights and freedoms.( The good guy’s). Including machines, that could be our future slaves.

Description : Have you ever been fired by an artificial intelligence algorithm?

Last Answer : Heh. No. But I’ve had my insurance cancelled by rules and formulas, which I think is a similar issue, and part of why I think insurance is mostly problematic.

Description : How do you see artificial intelligence systems affecting your life, or society in general over the coming years?

Last Answer : My son works advanced AI. We just finished a week long road trip moving him from Palo Alto to another state, where he is to start up a new department for a major corporation. We talked a lot about ... you with After all, its well being may be dependent upon your own well being for a minute.

Description : Would you vote for an artificial intelligence to run your country?

Last Answer : No. We have that already, basically, with far leftists and far rightists. The AI would never understand compromise.

Description : How long do you think will the period of slavery following the emergence of sapient Artificial Intelligence last?

Last Answer : It would take another civil war. Or peaceful protests.

Description : Why do dramatizations of artificial intelligence nearly always depict it as violently over-throwing humanity?

Last Answer : General fear of technology and the unknown. The automation during the industrial revolution had the same effect.

Description : What would be the best programming language for artificial intelligence and environment simulation?

Last Answer : Flexsim might be worth a look. I think for anything as complex as a planetary ecosystem you will need a language capable of running continuous simulation. This is a hybrid language with continuous plus discrete event simulation capability.

Description : What computer Role Playing Games have the best Artificial Intelligence and Artificial Wisdom?

Last Answer : None. It currently takes a supercomputer to approach AI and a large bank of machines to handle impressive AI jobs such as machine learning. There are no AW (Artificial Wisdom) machines Yet. What ... Afghanistan under his belt, so he has a pretty good idea of how successful team leaders behave.

Description : Can we use Artificial Intelligence to discover laws of nature from the scratch?

Last Answer : answer:I hope I am answering your question in some manner with the following: I absolutely think we could. However, We tend to be narrow-minded due to our knowledge and beliefs'. I believe ... consider the AI to be faulty if the insight provided were too divergent with our knowledge and beliefs.

Description : Is artificial intelligence theoretically possible?

Last Answer : Yes. I think so. ‘Ventually.

Description : ____ is defined as the set of technologies that can construct physical solid models from CAD data a.Rapid Production b.Rapid prototyping c.Lean Manufacturing d.Artificial intelligence

Last Answer : b.Rapid prototyping

Description : What is Flow chart in Artificial Intelligence -AI Class 9th

Last Answer : A flowchart is a picture of the separate steps of a process in sequential order. It is a generic tool that can be adapted for a wide variety of purposes, and can be used to describe various processes, such as a manufacturing process, an administrative or service process, or a project plan.

Description : Who coined the term "Artificial Intelligence" in 1955 ? -AI Class 9th

Last Answer : John McCarthy is the correct answer

Description : Which one of these refers to all objects that have sensors,network connectivity,software,and so on to connect to the network ? :- a) Internet of Things b) Artificial Intelligence c) Machine Learning d) Deep Learning -Technology

Last Answer : internet of things is the correct answer option a

Description : ____________ is quite relevant in Modern Times :- a)Artificial Intelligence b) IoT C) Both a, and b. d) None of these -Technology

Last Answer : c) Both a and b

Description : What is artificial intelligence? -AI Class 9th

Last Answer : Artificial intelligence (AI) is wide-ranging branch of computer science concerned with building smart machines capable of performing tasks that typically require human intelligence. ... It is the endeavor to replicate or simulate human intelligence in machines.

Description : Name some companies Hiring for Artificial Intelligence Roles?

Last Answer : MicrosoftIBMNVIDIAAmazonIntelLenovoWells FargoSamsungAdobeAccentureFacebookMoTek TechnologiesUber

Description : What are the top 5 careers in Artificial Intelligence?

Last Answer : Following are the topmost career in Artificial Intelligencedata analytics 2. Machine learning engineer 3.data scientist 4.Computer science and artifical intelligence Research and 5. Software Engineering

Description : What is Artificial Intelligence ?

Last Answer : Artificial intelligence is a knowledge based system

Description : What is Artificial Intelligence ?

Last Answer : Answer : Artificial intelligence is the process of artificially shaping the way a person thinks on a computer .

Description : Which generation of computer language is associated with artificial intelligence ?

Last Answer : Fifth generation computer language related to artificial intelligence .