CSCI 1010 - Midterm
(2 + five) / 2 - ANS-3
(double)(thirteen / 2) - ANS-6.0
thirteen % 4 - ANS-1
three + three / 2 - ANS-4
.0 + 2.3 - ANS-5.8
a = 10;
b = three;
if (a > five)
c = b;
System.Out.Print(a);
System.Out.Print(c);
else
c = 10;
System.Out.Print(a);
System.Out.Print(c);
System.Out.Print(a);
System.Out.Print(b); - ANS-103103
a = 2; b = 6;
a += b;
System.Out.Print(a);
System.Out.Println(b);
a = 6;
b++;
System.Out.Print(a);
System.Out.Println(b); - ANS-86
sixty seven
In a transfer announcement, a ruin announcement can be used, but not in a loop. - ANS-False -
ANS-True All statements in a do-whilst loop are carried out at the least once. A hardware tool
that executes the commands in a program. - ANS-CPU
A hardware tool that stores records for the pc to process. - ANS-Memory
ANS-Bytecode is a digital machine machine language. ANS-Expression: a element of a
software that may be evaluated to generate a fee. A a part of a application that can be done so
that you can carry out an action. - ANS-Statement
A application or a part of a software written in a excessive-stage language. - ANS-Source Code
A set of directions for solving a computational hassle. - ANS-Algorithm
(2 + five) / 2 - ANS-3
(double)(thirteen / 2) - ANS-6.0
thirteen % 4 - ANS-1
three + three / 2 - ANS-4
.0 + 2.3 - ANS-5.8
a = 10;
b = three;
if (a > five)
c = b;
System.Out.Print(a);
System.Out.Print(c);
else
c = 10;
System.Out.Print(a);
System.Out.Print(c);
System.Out.Print(a);
System.Out.Print(b); - ANS-103103
a = 2; b = 6;
a += b;
System.Out.Print(a);
System.Out.Println(b);
a = 6;
b++;
System.Out.Print(a);
System.Out.Println(b); - ANS-86
sixty seven
In a transfer announcement, a ruin announcement can be used, but not in a loop. - ANS-False -
ANS-True All statements in a do-whilst loop are carried out at the least once. A hardware tool
that executes the commands in a program. - ANS-CPU
A hardware tool that stores records for the pc to process. - ANS-Memory
ANS-Bytecode is a digital machine machine language. ANS-Expression: a element of a
software that may be evaluated to generate a fee. A a part of a application that can be done so
that you can carry out an action. - ANS-Statement
A application or a part of a software written in a excessive-stage language. - ANS-Source Code
A set of directions for solving a computational hassle. - ANS-Algorithm