MEcp1LABMT1030

MEcp1LABMT1030

University

50 Qs

quiz-placeholder

Similar activities

Lập trình C1

Lập trình C1

University

51 Qs

Java Programming Quiz 2-6

Java Programming Quiz 2-6

University

50 Qs

Unit 2 Final Quizz

Unit 2 Final Quizz

University

54 Qs

Berpikir Komputasi

Berpikir Komputasi

University

50 Qs

SAP-LAB

SAP-LAB

University

50 Qs

Milestone - 1

Milestone - 1

University

50 Qs

first quiz ICT

first quiz ICT

University

48 Qs

CC 101 Final Exam

CC 101 Final Exam

University

50 Qs

MEcp1LABMT1030

MEcp1LABMT1030

Assessment

Quiz

Computers

University

Medium

Created by

Armilyn Martinez

Used 1+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is a C header file used for?

Storing data

Storing function definitions and macro declarations

Declaring main function

For file management

2.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is the extension for C header files?

.cpp

.hdr

.c

.h

3.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What directive is used to include a header file in a C program?

#define

#include

#ifdef

#undef

4.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Which header file is required for using the printf() function?

stdlib.h

stdio.h

conio.h

math.h

5.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What does the %d format specifier represent in printf()?

Floating-point number

String

Integer

Character

6.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What will printf("%f", 3.14); output?

3.14

3

3.140000

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Which format specifier is used to print a character in C?

%s

%d

%f

%c

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?