In makefile the comment begins with the character

Makefile

Quiz
•
Computers
•
University - Professional Development
•
Hard
Nikhil Trikoti
Used 18+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
/*
//
#
$
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?
@
$
$@
@$
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Python User Input Quiz

Quiz
•
6th Grade - University
10 questions
Power Point

Quiz
•
University
15 questions
Post-Test Microsoft Word (G2)

Quiz
•
University
10 questions
Indexing and Slicing in Python

Quiz
•
4th Grade - University
10 questions
Basics Of C Programming

Quiz
•
University
15 questions
IS4H Introduction to Computers Module 2 Nursing Leadership

Quiz
•
Professional Development
10 questions
CNET236 Chapt 12

Quiz
•
University
10 questions
Mastering Microsoft 365 Applications

Quiz
•
12th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade