MEcp1LABMT1030

MEcp1LABMT1030

University

50 Qs

quiz-placeholder

Similar activities

ข้อสอบปลายภาค

ข้อสอบปลายภาค

University

50 Qs

2nd C Programming Quiz

2nd C Programming Quiz

University

50 Qs

P1 COMPROG 1-6

P1 COMPROG 1-6

University

50 Qs

Orientation  Quiz

Orientation Quiz

University - Professional Development

50 Qs

C programming quiz

C programming quiz

University

55 Qs

Joy of Programming

Joy of Programming

University

50 Qs

16 January Event(2021)

16 January Event(2021)

University

51 Qs

C Language

C Language

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?