
Makefile
Quiz
•
Computers
•
University - Professional Development
•
Practice Problem
•
Hard
Nikhil Trikoti
Used 18+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In makefile the comment begins with the character
/*
//
#
$
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In the makefile the target and dependencies are separated by the character
-
:
@
:=
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which one of the following provides all prerequisites in the makefile?
$^
$@
$?
$*
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
CLEAN = rm
LIBRARY = libutil
RM:
[tab]$(CLEAN) *.o *.out $(LIBRARY) core
What is CLEAN in above example
Variable
Prerequisite
Target
Both 1 and 3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
CC = gcc
SRC := test1.c
SRC := test2.c
SRC := test3.c
Test : $(SRC)
[tab] $(CC) $^ -o $@
gcc test1.c -o Test
gcc test1.c test2.c test3.c
gcc test1.c test2.c test3.c -o test
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a phony target in below makefile
# Define required macros here
SHELL = /bin/sh
OBJS = main.o factorial.o hello.o
CFLAG = -Wall -g
CC = gcc
INCLUDE =
LIBS = -lm
clean:${OBJ}
[tab]${CC} ${CFLAGS} ${INCLUDES} $^ -o $@
hello:
[tab]rm -f *.o core *.core
.cpp.o:
[tab]${CC} ${CFLAGS} ${INCLUDES} -c $<
hello
clean
.cpp.o
None of the above
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which one of the following is used for the target file-name in the make-file?
@
$
$@
@$
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Informática - Arquitectura de las computadoras
Quiz
•
Professional Development
10 questions
Node.js
Quiz
•
University
10 questions
6ta generación de computadoras
Quiz
•
University
15 questions
Mikropemproses dan Mikropengawal
Quiz
•
12th Grade - University
15 questions
HTML Quiz
Quiz
•
11th Grade - University
10 questions
Microsoft Word
Quiz
•
University
10 questions
paquetes contables lección 1
Quiz
•
11th Grade - Professi...
12 questions
Centros de datos perimetral
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
