Search Header Logo
3.7.4 Compiled vs Interpreted

3.7.4 Compiled vs Interpreted

Assessment

Presentation

•

Computers

•

•

Hard

Created by

Darrell Newsome

Used 1+ times

FREE Resource

1 Slide • 30 Questions

1

​Compiled vs Interpreted

By Darrell Newsome

2

Multiple Choice

What are the two main ways of converting source code into machine code?
1
Compiling and interpreting
2
Debugging and testing
3
Writing and executing
4
Reading and understanding

3

Multiple Choice

In compiled languages, what does the compiler do?
1
Interprets the source code
2
Creates a separate file with machine code
3
Optimizes the CPU
4
Debugs the program

4

Multiple Choice

In interpreted languages, how is the source code processed?
1
Line by line and on the spot
2
Saved as a separate machine code file
3
Optimized for the CPU
4
Compiled before execution

5

Multiple Choice

Which type of language is JavaScript?
1
Compiled
2
Interpreted
3
Hybrid
4
None of the above

6

Multiple Choice

What is an advantage of compiled code?
1
Immediate readiness to run
2
Portability across platforms
3
Easier debugging
4
No need for an interpreter

7

Multiple Choice

What is a disadvantage of compiled code?
1
Limited platform compatibility
2
Slower execution
3
Public source code
4
Requires an interpreter

8

Multiple Choice

What is an advantage of interpreted code?
1
Portability across platforms
2
Faster execution
3
Private source code
4
No need for a compiler

9

Multiple Choice

What is a disadvantage of interpreted code?
1
Requires an interpreter
2
Limited platform compatibility
3
Difficult debugging
4
Public source code

10

Multiple Choice

What is the term for the hybrid approach of compiling partway to an intermediate language?
1
Just-in-time compilation
2
Bytecode interpretation
3
Hybrid execution
4
Partial compilation

11

Multiple Choice

Which language is typically compiled?
1
C++
2
JavaScript
3
Python
4
PHP

12

Multiple Choice

Which language is typically interpreted?
1
Java
2
C#
3
Objective-C
4
C

13

Multiple Choice

What is an advantage of just-in-time compilation?
1
Portability across platforms
2
Faster execution
3
Easier debugging
4
No need for an interpreter

14

Multiple Choice

What is a disadvantage of just-in-time compilation?
1
Requires an interpreter
2
Limited platform compatibility
3
Slower execution
4
Public source code

15

Multiple Choice

Which type of language is PHP?
1
Compiled
2
Interpreted
3
Hybrid
4
None of the above

16

Multiple Choice

Which type of language is C#?
1
Compiled
2
Interpreted
3
Hybrid
4
None of the above

17

Multiple Choice

Which type of language is Python?
1
Compiled
2
Interpreted
3
Hybrid
4
None of the above

18

Multiple Choice

Which type of language is Objective-C?
1
Compiled
2
Interpreted
3
Hybrid
4
None of the above

19

Multiple Choice

What is an advantage of interpreted languages for testing?
1
Easier debugging
2
Faster execution
3
Private source code
4
No need for an interpreter

20

Multiple Choice

What is a disadvantage of interpreted languages for distribution?
1
Requires an interpreter
2
Limited platform compatibility
3
Slower execution
4
Public source code

21

Multiple Choice

What is an advantage of compiled languages for distribution?
1
Immediate readiness to run
2
Portability across platforms
3
Easier debugging
4
No need for an interpreter

22

Multiple Choice

What is the main difference between compiled and interpreted languages?
1
Compiled languages are faster than interpreted languages
2
Interpreted languages are easier to debug than compiled languages
3
Compiled languages are more portable than interpreted languages
4
Interpreted languages have better memory management than compiled languages

23

Multiple Choice

Which of the following is an example of a compiled language?
1
Python
2
JavaScript
3
C++
4
Ruby

24

Multiple Choice

In interpreted languages, when is the source code executed?
1
During the compilation phase
2
During the runtime phase
3
During the debugging phase
4
During the testing phase

25

Multiple Choice

What is an advantage of interpreted code?
1
Higher performance
2
Easier debugging
3
Smaller file size
4
Platform independence

26

Multiple Choice

Which type of language is Java?
1
Compiled language
2
Interpreted language
3
Hybrid language
4
None of the above

27

Multiple Choice

What is a disadvantage of compiled code?
1
Difficult to debug
2
Slower execution
3
Larger file size
4
Limited platform support

28

Multiple Choice

What is the term for the process of converting source code into machine code?
1
Compilation
2
Interpretation
3
Execution
4
Debugging

29

Multiple Choice

Which of the following is an advantage of just-in-time compilation?
1
Faster startup time
2
Smaller memory footprint
3
Better code optimization
4
Easier code maintenance

30

Multiple Choice

Which type of language is Ruby?
1
Compiled language
2
Interpreted language
3
Hybrid language
4
None of the above

31

Multiple Choice

What is an advantage of compiled languages for distribution?
1
Easier code maintenance
2
Smaller file size
3
Better performance
4
Platform independence

​Compiled vs Interpreted

By Darrell Newsome

Show answer

Auto Play

Slide 1 / 31

SLIDE