Unit 1 Structure of C Program

Unit 1 Structure of C Program

University

5 Qs

quiz-placeholder

Similar activities

Function Quiz 3

Function Quiz 3

University

10 Qs

Coding - Computer Programming

Coding - Computer Programming

KG - University

10 Qs

PPL

PPL

University

10 Qs

Perkenalan artificial intelligence

Perkenalan artificial intelligence

University

10 Qs

Unit 2 :  Operators

Unit 2 : Operators

University

8 Qs

Program Design Method Review Session 1

Program Design Method Review Session 1

University

10 Qs

Basic C++ Program Structures

Basic C++ Program Structures

University

10 Qs

PYTHON PROGRAMMING

PYTHON PROGRAMMING

University

10 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