Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which of these characterizes a procedural program? (1 point) def inputn…

Question

which of these characterizes a procedural program? (1 point) def inputname(): name = input(\what is your name?\) return name class name: def init(self, name): self.name = name print(\what is your name?\) name = input(\what is your name?\)

Explanation:

Brief Explanations

Procedural programming is focused on a sequence of procedures or steps. The code that just uses functions like def inputName() and takes input and returns a value without using classes (which are associated with object - oriented programming) is procedural. The code snippets with class are related to object - oriented programming concepts.

Answer:

def inputName():
name = input("What is your name?")
return name