Terms in this set (91)
15 is 10 + 5. True
How will Prolog respond to this query?
True
False
%c character
char, unsigned char, signed char and int are True
all numeric (integer) types in C
programming.
Compilation of a program is to execute all True
the statements of the program completely.
True or False
The compiler execute the program. False
True or False
,Considering the following code int a = 1;
char b[ ] = "John Doe";
struct emp { john.id = a;
int id; john.name = b;
char *name; printf ("%d, %s", john.id, john.name);
};
struct emp john;
Which of the following lines are correct?
int a = 1;
char b[ ] = "John Doe";
emp.id = a;
emp.name = b;
printf ("%d, %s", emp.id, emp.name);
int a = 1;
char b[ ] = "John Doe";
john.id = b;
john.name = a;
printf ("%d, %s", john.id, john.name);
int a = 1;
char b[ ] = "John Doe";
john.id = a;
john.name = b;
printf ("%d, %s", john.id, john.name);
int a = 1;
char b[ ] = "John Doe";
,john[0].id = a;
john[0].name = b;
printf ("%d, %s", john[0].id, john[0].name);
%d Integer
Do these two different queries produce the True
same result in prolog?
?- N is -(+(1,2),3).
?- N is (1+2)-3.
True
False
During compilation, all the statements of a True
program in a high-level language are
converted (translated) to a low-level
language (such as assembly language).
True or False
%f Floating point
, Features of the logic paradigm includes expressing computation in terms of logic predicates
expressing computation in terms of logic
predicates
classes and objects
using lambda calculus
expressing computation in terms of
boolean expressions
The following code is correct and print true
"Hello"
if ( 2 + 2 + 2 + 2)
if (1)
printf("Hello");
The following declaration allows all using namespace std;
elements in the standard C++ library to be
accessed in an unqualified manner (without
the std:: prefix)
using namespace std;
#include <iostream.h>
using namespace iostream;
#include <iostream>