Unit 1 - Structure of C

Unit 1 - Structure of C

University

8 Qs

quiz-placeholder

Similar activities

C Basics

C Basics

University

12 Qs

Quiz Pemrograman Dasar 02 Kelas A

Quiz Pemrograman Dasar 02 Kelas A

University

10 Qs

PHP Introduction - Assignment 1

PHP Introduction - Assignment 1

University

10 Qs

Compiler Design Lecture 1

Compiler Design Lecture 1

University - Professional Development

10 Qs

PHP MySQL

PHP MySQL

University

10 Qs

IMPERATIVE PROGRAMMING WITH C

IMPERATIVE PROGRAMMING WITH C

University

10 Qs

C Fundamentals

C Fundamentals

University

8 Qs

Operating System - Chapter 4

Operating System - Chapter 4

University

8 Qs

Unit 1 - Structure of C

Unit 1 - Structure of C

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 2+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the entry point of a C program?

start()

begin()

init()

main()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the #include directive in a C program?

To declare variables

To define functions

To include header files

To start the execution of the program

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which section of a C program contains global variable declarations?

Preprocessor directive section

Definition section

Global declaration section

Main section

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid section of a C program?

Documentation section

Definition section

Compilation section

Subprogram section

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The return 0; statement at the end of the main() function signifies:

Program failed

Program returned nothing

Program ended successfully

Program entered an infinite loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which section includes user-defined functions?

Preprocessor section

Subprogram section

Main section

Header section

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the Link Section in a C program?

To write the main logic of the program

To declare variables

To include header files and link external libraries

To define user-defined functions

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you forget to include <stdio.h> and use printf()?

The program will run normally

The compiler will throw an error

The program will crash during execution

The function will work with a warning only