Makefile

Makefile

University - Professional Development

10 Qs

quiz-placeholder

Similar activities

Podsumowanie: binarny, komputer, sieć

Podsumowanie: binarny, komputer, sieć

7th Grade - University

13 Qs

Internet seguro

Internet seguro

8th Grade - University

10 Qs

Evaluación SENA

Evaluación SENA

University

10 Qs

Arquitetura de computadores (Aula 2)

Arquitetura de computadores (Aula 2)

University

8 Qs

Javascript

Javascript

University

12 Qs

História dos Smartphones

História dos Smartphones

Professional Development

10 Qs

The AI Shield

The AI Shield

University

15 Qs

Procesadores de texto (Docs de Drive y MS Word)

Procesadores de texto (Docs de Drive y MS Word)

Professional Development

13 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