Makefile

Makefile

University - Professional Development

10 Qs

quiz-placeholder

Similar activities

แบบทดสอบรายวิชาคอมพิวเตอร์ศึกษา

แบบทดสอบรายวิชาคอมพิวเตอร์ศึกษา

University

10 Qs

FOP - RECAP CHAP 3

FOP - RECAP CHAP 3

University

15 Qs

COMANDOS DE NAVEGAÇÃO DO NVDA

COMANDOS DE NAVEGAÇÃO DO NVDA

University

10 Qs

Ch 3 Elementor Forms

Ch 3 Elementor Forms

9th Grade - University

9 Qs

Soal Latihan MS Office Word

Soal Latihan MS Office Word

1st Grade - University

12 Qs

COMPETIÇÃO DE DIGITAÇÃO

COMPETIÇÃO DE DIGITAÇÃO

Professional Development

15 Qs

CS6801- Multi­core Architectures and Programming

CS6801- Multi­core Architectures and Programming

University

10 Qs

C_Basic.c

C_Basic.c

University

13 Qs

Makefile

Makefile

Assessment

Quiz

Computers

University - Professional Development

Hard

Created by

Nikhil Trikoti

Used 18+ times

FREE Resource

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?

@

$

$@

@$

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?