Operating System - Chapter 4

Quiz
•
Computers
•
University
•
Hard

Patrício Domingues
Used 22+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following files are created by a successful compilation?
.c files
.h files
.o files
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What's the purpose of a linker?
To transform a file with C code to an object file
To transform an header (.h) file to an object file
To merge all object files and libraries of the project to build the executable
To detect invalid links on a header file
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A header (.h) file should hold...
the definitions of structs and other datatypes
the prototypes of the public functions
the indication of global variables associated to the corresponding C file (extern G_...)
All of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following command line stops the compilation with gcc compiler right after the preprocessor stage?
gcc -c source.c
gcc -o a.exe source.c
gcc -S source.c
gcc -E source.c
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What's the difference between #include <file.h> and #include "file.h"?
Include with <...> is for system files, with "..." for user's defined files
Include with <...> is for user's defined files, with "..." for system files
Include with "..." is for header files that have declarations of global variables
None of the above
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What's "#pragma once" used for?
It's a preprocessor directive
It's used to prevent multiple includes of the same header file (.h)
It's a largely supported, but non-standard mechanism of the preprocessor to prevent includes of the same header file (.h)
All of the above
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
For production code, calls to the assert macro should be disabled at compile time. How can this be done?
gcc -E code.c -o code.exe
gcc -DNDEBUG code.c -o code.exe
gcc -S code.c -o code.exe
None of the above
8.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In C language, what's the purpose of the following code:
int B = (random() % 1000)+1;
assign a random integer within the range [0,999] to variable B
assign a random integer within the range [1,1000] to variable B
the line is non-valid, since % cannot be used this way
None of the above
Similar Resources on Wayground
10 questions
Google Slides, Google Drive y Google Hangouts

Quiz
•
University
10 questions
PHP Basics

Quiz
•
University
10 questions
Getting Started with git init

Quiz
•
University
10 questions
DP-100 day 3

Quiz
•
University - Professi...
13 questions
computer essintials 2

Quiz
•
University
10 questions
CAT Software Quiz

Quiz
•
University
11 questions
wordpress pretest

Quiz
•
University
9 questions
Database Fundamentals Exercise Chapter 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University