494,233 views
25 votes
25 votes
Prolog uses ____. Select one: a. lowercase for variable names, and uppercase for constants and functions b. uppercase for variable names, and lowercase for constants and functions c. lowercase for variable names and constants, and uppercase for functions d. uppercase for variable names and constants, and lowercase for functions

User Sid Ali
by
2.7k points

1 Answer

9 votes
9 votes

Answer:

b) uppercase for variable names, and lowercase for constants and functions

Step-by-step explanation:

Given

Programming language: prolog

Required

The case type for variables, constants and functions

In prolog,

Variable names begin with uppercase

e.g. Name, NAME

While constants and functions begin with lowercase

e.g. name, addnumbers()

Hence, (b) is correct

User Peter Di Cecco
by
2.7k points