Quiz

Quiz#

# Why can't we execute a file like `main.c`? - [ ] It typically contains machine code and it must be first translated. - [x] Probably it contains C source code. Its content cannot be executed by the processor. - [ ] We must first give the execution permission before we can execute it. - [ ] It is machine code which must be compiled to source code. # How is a tool called that translates source code to machine code? - [x] compiler - [ ] autocompletion tool - [ ] clang translator - [ ] binarizer # Which is the shortcut for the build task? - [x] <kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>b</kbd> - [ ] <kbd>Ctrl</kbd><kbd>Alt</kbd><kbd>u</kbd> - [ ] <kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>u</kbd> - [ ] <kbd>Shift</kbd><kbd>Alt</kbd><kbd>u</kbd> # What is/are the benefits of setting up a build task? - [ ] Catching errors in our code - [ ] Autoformatting our code so that our code is more convenient to read - [ ] Without a build task, the editor does not allow the code to be run - [x] It automates the save, compile, and run steps with a shortcut # Which is/are the advantages of autocompletion? - [x] It can suggest available words that we can write - [x] It may save us time - [ ] It automatically fixes all errors in our program - [ ] It removes the need to learn the syntax of the programming language - [x] We don't have to remember every keyword from the language # You use the search & replace feature of your editor to rename the variable `id` to `image_id`. You activate `Match Whole Word` (matching ` id ` instead of only `id`) to avoid renaming other symbols that contain `id` in them, e.g., `text_id`. Which is/are correct? - [ ] This will rename all related symbols, but it is safer to use `Rename Symbol` feature. - [x] This approach can miss some symbols. <!-- e.g., id++ -->