NEW
Font size
WorksheetsBrain IT
Total questions: 20
Worksheet time: 10mins
What’s going to happen when we compile and run the following C program snippet?
#include "stdio.h"
int main()
{
int a = 10;
int b = 15;
printf("=%d",(a+1),(b=a+2));
printf(" %d=",b);
return 0;
}
=11 15=
=11 12=
Compiler Error due to (b=a+2) in the first printf().
None of the above
To focus on the logic and make refinements to a program before translating it into a programming language, a programmer often creates an outline of the program’s algorithm. What is the term for this type of outline?
Compiler
Interpreter
Sketch
Pseudocode
Consider the loop control structure in programming. Which term describes a loop that continues repeating without a terminating (ending) condition?
Infinite Loop
Sequence Loop
Conditional Loop
Unlimited Loop
Given the following method, what would test return if a = {0, 2, 3, 4} and v = 3?
0
2
-1
1
What does HTML stand for?
Hyper Text Mark up Lingo
Hyper Text Mark Up Language
Handy Texting Management Level
Hyper Total Managed Language
What is the correct HTML element for inserting a line break?
<break>
<br>
<bk>
<lb>
What will the following lines of Python code do?
A
A C
B C
Nothing, it will return error
How many bits make up one letter in binary code?
6
4
8
10
Choose the correct tag for the largest heading:
<head>
<h1>
<mainHead>
<h6>
Which type of language is translated entirely to machine language before use ?
Interpreted
Compiled
Machine
Assembly
For a given integer, which of the following operators can be used to “set” and “reset” a particular bit respectively?
| and &
&& and ||
& and |
|| and &&
Which term is used to describe expressions that result in the value of either true or false?
Selection
Boolean
Conditional
Concatenation
JavaScript uses the ___ keyword to define variables
var
assign
variable
equal
Variable names must begin with a lowercase letter and cannot have any
True
False
What is BIOS short for?
Banned Input/Output System
Big Input/Output System
Basic Input/Output System
Binary Input/Output System
Which type of error occurs when a programmer misspells a word or instruction?S
System
Runtime
Syntax
Logic
Katherine is creating a computer program that will allow the cursor to jump to a different location when the mouse is clicked on a certain image. Which programming component should Katherine use to tell the program what to do when the mouse is clicked on the image?
An event handler
A parameter
An event
A class
Which of these expressions is NOT a valid way to add 1 to a variable in JavaScript?
x+
x = x + 1
x += 1
x++
What does JavaScript return to you if you try to access a object's property that doesn't exist?
'oopsies!'
undefined
null
0
Consider the loop control structure in programming. Which term describes a loop that continues repeating without a terminating (ending) condition?
Infinite Loop
Sequence Loop
Conditional Loop
Unlimited Loop
