Software Development Exam  >  Software Development Tests  >  Test: Geometry - 1 - Software Development MCQ

Test: Geometry - 1 - Software Development MCQ


Test Description

15 Questions MCQ Test - Test: Geometry - 1

Test: Geometry - 1 for Software Development 2025 is part of Software Development preparation. The Test: Geometry - 1 questions and answers have been prepared according to the Software Development exam syllabus.The Test: Geometry - 1 MCQs are made for Software Development 2025 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Geometry - 1 below.
Solutions of Test: Geometry - 1 questions in English are available as part of our course for Software Development & Test: Geometry - 1 solutions in Hindi for Software Development course. Download more important topics, notes, lectures and mock test series for Software Development Exam by signing up for free. Attempt Test: Geometry - 1 | 15 questions in 30 minutes | Mock test for Software Development preparation | Free important questions MCQ to study for Software Development Exam | Download free PDF with solutions
Test: Geometry - 1 - Question 1

Which of the following is not a type of triangle?

Detailed Solution for Test: Geometry - 1 - Question 1

A quadrilateral is a polygon with four sides, which is not a type of triangle.

Test: Geometry - 1 - Question 2

What is the sum of the interior angles of a triangle?

Detailed Solution for Test: Geometry - 1 - Question 2

The sum of the interior angles of a triangle is always 180 degrees.

Test: Geometry - 1 - Question 3

Which of the following is true about a circle?

Detailed Solution for Test: Geometry - 1 - Question 3

A circle is a two-dimensional geometric figure with no sides or angles.

Test: Geometry - 1 - Question 4

In a right triangle, which side is always the longest?

Detailed Solution for Test: Geometry - 1 - Question 4

In a right triangle, the hypotenuse is the side opposite the right angle and is always the longest side.

Test: Geometry - 1 - Question 5

What is the formula to find the area of a triangle?

Detailed Solution for Test: Geometry - 1 - Question 5

The formula to find the area of a triangle is given by base multiplied by height, divided by 2.

Test: Geometry - 1 - Question 6

Given the coordinates of three points A(x1, y1), B(x2, y2), and C(x3, y3), find the area of the triangle ABC. Which of the following code snippets is correct?

Detailed Solution for Test: Geometry - 1 - Question 6

The correct formula to find the area of a triangle given the coordinates of three points is abs(x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2)) / 2. This formula calculates the absolute value of the determinant of the matrix formed by the coordinates and divides it by 2.

Test: Geometry - 1 - Question 7

What is the output of the following code snippet?
import math

def distance(x1, y1, x2, y2):
    return math.sqrt((x2 - x1)**2 + (y2 - y1)**2)

print(distance(1, 2, 4, 6))

Detailed Solution for Test: Geometry - 1 - Question 7

The code calculates the distance between two points using the distance formula and prints the result. The distance between (1, 2) and (4, 6) is ((4 - 1)2 + (6 - 2)2)2 = (9 + 16)2 = (25)2 = 5.

Test: Geometry - 1 - Question 8

Given the equation of a circle and the coordinates of a point, how can you determine if the point lies inside the circle?

Detailed Solution for Test: Geometry - 1 - Question 8

To determine if a point lies inside a circle, we need to check if the distance between the center of the circle and the point is less than the radius of the circle. If it is, then the point lies inside the circle.

Test: Geometry - 1 - Question 9

What is the output of the following code snippet?
def square(x):
    return x**2

def cube(x):
    return x**3

print(square(cube(2)))

Detailed Solution for Test: Geometry - 1 - Question 9

The code calculates the square of the cube of 2. First, the cube function cubes the value 2, resulting in 2^3 = 8. Then, the square function squares the value 8, resulting in 8^2 = 64.

Test: Geometry - 1 - Question 10

In geometry, what is the definition of a convex polygon?

Detailed Solution for Test: Geometry - 1 - Question 10

A convex polygon is a polygon in which all interior angles are less than 180 degrees. It does not have any concave angles.

Test: Geometry - 1 - Question 11

Which of the following code snippets can be used to determine if two line segments intersect?

Detailed Solution for Test: Geometry - 1 - Question 11

The correct code snippet to determine if two line segments intersect is 'def do_segments_intersect(x1, y1, x2, y2, x3, y3, x4, y4): return (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4) != 0'. This code calculates the determinant of the matrix formed by the coordinates of the line segments and checks if it is non-zero.

Test: Geometry - 1 - Question 12

Which of the following code snippets can be used to find the length of the union of two line segments?

Detailed Solution for Test: Geometry - 1 - Question 12

The correct code snippet to find the length of the union of two line segments is 'def length_of_union_segments(x1, y1, x2, y2, x3, y3, x4, y4): length1 = max(abs(x2 - x1), abs(y2 - y1)) length2 = max(abs(x4 - x3), abs(y4 - y3)) return length1 + length2'. This code calculates the maximum absolute difference in the x-coordinates and y-coordinates of the line segments and returns the sum.

Test: Geometry - 1 - Question 13

Given two circles with centers (x1, y1) and (x2, y2) and radii r1 and r2, what is the maximum number of common tangents they can have?

Detailed Solution for Test: Geometry - 1 - Question 13

Two circles can have a maximum of 4 common tangents if they intersect at two distinct points. If the circles are externally tangent, they will have 3 common tangents, and if they are internally tangent, they will have 1 common tangent.

Test: Geometry - 1 - Question 14

What is the output of the following code snippet?
def circle_intersection(x1, y1, r1, x2, y2, r2):
    d = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)
    if d > r1 + r2:
        return "No intersection"
    elif d < abs(r1 - r2):
        return "One circle is completely inside the other"
    else:
        return "Intersection exists"

print(circle_intersection(0, 0, 5, 8, 0, 3))

Detailed Solution for Test: Geometry - 1 - Question 14

The code calculates the distance between the centers of the two circles and compares it with the sum of their radii. If the distance is greater than the sum of the radii, there is no intersection.

Test: Geometry - 1 - Question 15

Which of the following code snippets can be used to check if a line intersects a circle?

Detailed Solution for Test: Geometry - 1 - Question 15

The correct code snippet to check if a line intersects a circle is 'def line_circle_intersection(x1, y1, x2, y2, cx, cy, r): dx = x2 - x1 dy = y2 - y1 dr = math.sqrt(dx**2 + dy**2) D = x1*y2 - x2*y1 discriminant = r**2 * dr**2 - D**2 return discriminant >= 0'. This code calculates the discriminant to check if it is non-negative, which indicates an intersection between the line and the circle.

Information about Test: Geometry - 1 Page
In this test you can find the Exam questions for Test: Geometry - 1 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Geometry - 1, EduRev gives you an ample number of Online tests for practice
Download as PDF