prompt
stringlengths
17
234
How can you handle errors in a Python script?
What are the best practices for writing secure code?
Generate a CSS snippet to change the background color of a webpage.
What is cross-site scripting (XSS) and how can it be prevented?
Write a simple Java program that takes a user's name as input and prints a greeting.
What is the value of pi to five decimal places?
If a train leaves Station A at 10:00 AM traveling at 60 mph, and a second train leaves Station B at 11:00 AM traveling at 70 mph on the same track towards Station A, when will they meet? The distance between the stations is 480 miles.
Solve the following equation for x: 3x + 7 = 19.
What is a prime number? Give three examples.
A bat and a ball cost $1.10 in total. The bat costs $1.00 more than the ball. How much does the ball cost?
What is the next number in the sequence: 2, 4, 8, 16, __?
If all Bloops are Razzies and all Razzies are Lazzies, are all Bloops definitely Lazzies?
What is the area of a circle with a radius of 5 cm?
If there are 5 apples and you take away 3, how many do you have?
Simplify the following fraction: 25/100.
What is the Pythagorean theorem?
A car traveled 200 miles in 4 hours. What was its average speed?
What is the difference between mean, median, and mode?
If you have a bag with 3 red marbles and 2 blue marbles, what is the probability of picking a red marble?
Solve for x and y: 2x + y = 5 and x - y = 1.
Who painted the Mona Lisa?
What are the seven continents?
What is the largest planet in our solar system?
What are the three branches of the United States government?
Who is credited with inventing the light bulb?
What is the main ingredient in guacamole?
What is the most spoken language in the world?
What is the currency of Japan?
Who wrote the play "Hamlet"?
What is the process of water turning into vapor called?