wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming Lesson 1b (CS50x)

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

What takes source code and makes it machine code?

a)

Processor

b)

Algorithm

c)

Compiler

d)

Input

2.

Repl.it is an example of an IDE

a)

True

b)

False

3.

printf("hello, world"); In this C expression, which is the input?

a)

printf

b)

hello, world

c)

hello, world (to the display)

4.

printf("hello, world"); In this C expression, which is the processor?

a)

printf

b)

hello, world

c)

hello, world (to the display)

5.

printf("hello, world"); In this C expression, which is the function?

a)

printf

b)

hello, world

c)

hello, world (to the display)

6.

printf("hello, world"); In this C expression, which is the argument?

a)

printf

b)

hello, world

c)

hello, world (to the display)

7.

Your C program was working, but now printf("hello, world"); is not compiling. What is missing from your code?

a)

input from the user

b)

header file

c)

wrong directory

d)

return value of the function

8.

To run our first program, "./main" tells Replit to run the program "main" in the current file location.

a)

False

b)

True

9.

In Replit, the make command creates source code

a)

True

b)

False

10.

Machine code is computer readable, in binary format

a)

True

b)

False

11.

A compiler creates source code

a)

False

b)

True