Makefile

Makefile

University - Professional Development

10 Qs

quiz-placeholder

Similar activities

PRACTICA N° 5- USO DE HERRAMIENTAS INFORMÁTICAS

PRACTICA N° 5- USO DE HERRAMIENTAS INFORMÁTICAS

University

10 Qs

Ética de la Comunicación (Saberes Previos)

Ética de la Comunicación (Saberes Previos)

University

10 Qs

Pint of Science Carballo Día 3

Pint of Science Carballo Día 3

University

10 Qs

Justicia Social en un mundo digitalizado

Justicia Social en un mundo digitalizado

University

10 Qs

Networking Essentials - Test 6

Networking Essentials - Test 6

University

10 Qs

Introducción Redes Tele1 IB

Introducción Redes Tele1 IB

10th Grade - University

15 Qs

Python Quiz

Python Quiz

University

15 Qs

MATEMÁTICA III

MATEMÁTICA III

University

10 Qs

Makefile

Makefile

Assessment

Quiz

Computers

University - Professional Development

Practice Problem

Hard

Created by

Nikhil Trikoti

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers