2
Introduction to Programming Quiz 1 1 My name is: 2 Colossus, the 1 st programmable computer, was 70 years old recently. Did it work with: A Valves B Transistors C Relays 3 A typical Bank computer from the 1970’s was programmed using: A Mind control B Levers C Punch cards 4 A typical home built computer from 1979 had how much RAM memory? A 256 Bytes B 1M Bytes C 1G Bytes 5 Which of the following is NOT part of basic computer architecture? A CPU B Registers C Taxi D Bus 6 “Processing” is a high level graphics language: True or False 7 “Processing” runs on top of Java. In this case what does “Java” stand for?

Introduction to programming quiz 1

Embed Size (px)

Citation preview

Page 1: Introduction to programming   quiz 1

Introduction to Programming Quiz 1

1 My name is:

2 Colossus, the 1st programmable computer, was 70 years old recently. Did it work with:

A Valves

B Transistors

C Relays

3 A typical Bank computer from the 1970’s was programmed using:

A Mind control

B Levers

C Punch cards

4 A typical home built computer from 1979 had how much RAM memory?

A 256 Bytes

B 1M Bytes

C 1G Bytes

5 Which of the following is NOT part of basic computer architecture?

A CPU

B Registers

C Taxi

D Bus

6 “Processing” is a high level graphics language: True or False

7 “Processing” runs on top of Java. In this case what does “Java” stand for?

Page 2: Introduction to programming   quiz 1

A Indonesian Island

B Coffee

C A portable high level programming language.

8 In Processing, shapes drawn later are drawn over the top of earlier shapes – True of False?

9 In the Processing RGB colour model, what colour does color(255, 0, 255) make?

A Orange

B Yellow

C Purple

10 Do all the following expressions produce the same answer? True of False

x = x + 1; x += 1; x++;

11 What does the following print out?

int number = 1;

while (number <= 10)

{

println(number);

if (number == 5)

println(“Once I caught a fish alive”);

else if (number == 10)

println(“Then I let it go again (etc)”);

number++;

}

12 Circle all the bugs you can find:

char numberr;

if (number < 10)

// {

println(“number”);

if (number == 5);

printl(Once I caught a fish alive)

elseif (number == 10)

println(Then I let it go again (etc));

number = 1;

}