A non-procedural language, often called a declarative language, focuses on describing what the program should accomplish without specifying how to achieve it (the control flow). This contrasts with procedural languages, which detail the sequence of steps.
Let's analyze the given options:
Among the options, LISP, Prolog, and ML are primarily categorized as non-procedural (declarative) languages. Python, while supporting functional features, is more commonly classified and used as a procedural/imperative language. Therefore, Python is the correct answer as it is NOT strictly a non-procedural language compared to the others listed.
In object-oriented programming, which keyword ensures that a member variable belongs to the class itself rather than to any specific object, thereby allowing all instances to share a single copy of that variable?
The three basic structure types used to write the algorithm for a program are sequence, selection and repetition. Which of the following is NOT an advantage of using only these structures when writing the algorithm for a program?
Which statement(s) is/are true about formation of identifier in C?
I. It consist of alphabets, digits and underscore.
II. An identifier can start with an underscore.
What is the output of the code written in C?
void main()
{
printf("%d",7%-3);
printf("%d",-7%3);
}
Which of the following statement(s) is/are true about pre-processor in C/C++?
I. To replace each #include directive with the contents of the designated file.
II. To replace each escape sequence with designated character.
III. To process macro definitions and expand macro calls.