Unit 1 Structure of C Program

Unit 1 Structure of C Program

University

5 Qs

quiz-placeholder

Similar activities

OPESSYS Quiz Mini Game

OPESSYS Quiz Mini Game

University

10 Qs

C++ Functions

C++ Functions

University

10 Qs

UAS Permrograman Komputer

UAS Permrograman Komputer

University

10 Qs

Quiz Perulangan

Quiz Perulangan

University

10 Qs

Workshop 2 Review

Workshop 2 Review

University

10 Qs

Coding - Computer Programming

Coding - Computer Programming

KG - University

10 Qs

Data type in PL/SQL

Data type in PL/SQL

University

10 Qs

Unit 1 - Structure of C

Unit 1 - Structure of C

University

8 Qs

Unit 1 Structure of C Program

Unit 1 Structure of C Program

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of the main() function in C?

To declare global variables

To define subprograms

To provide the entry point for program execution

To define data structures

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which section in a C program contains function prototypes and global variables?

Main Section

Documentation Section

Subprogram Section

Global Declaration Section

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the #define directive do in C?

Defines a function

Declares variables

Defines macros

Specifies the return type of functions

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of the Subprogram Section in C

To define the main entry point of the program

To define global variables

To include external libraries

To declare and define user-defined functions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does #include <stdio.h> do in a C program?

Defines a macro

Specifies the return type of a function

Links the program to standard input/output function

Declares global variables

Discover more resources for Computers