Hitha C Quiz 1

Hitha C Quiz 1

Professional Development

96 Qs

quiz-placeholder

Similar activities

C Programming

C Programming

Professional Development

100 Qs

FUNDAMENTOS DE ECONOMIA

FUNDAMENTOS DE ECONOMIA

Professional Development

98 Qs

PEMILU 2024

PEMILU 2024

Professional Development

100 Qs

gk quiz

gk quiz

KG - Professional Development

100 Qs

UNIT PART b

UNIT PART b

Professional Development

96 Qs

Psikotes VBI Staff

Psikotes VBI Staff

University - Professional Development

100 Qs

Taksonomiya - 100 test

Taksonomiya - 100 test

Professional Development

100 Qs

Hitha C Quiz 1 Continue

Hitha C Quiz 1 Continue

Professional Development

99 Qs

Hitha C Quiz 1

Hitha C Quiz 1

Assessment

Quiz

Other

Professional Development

Hard

Created by

Lebara 2023

Used 1+ times

FREE Resource

96 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C Programming – Features & The First C Program -- Which of the following is NOT a characteristic of C programming?
Machine-independent
High-level language
Primarily object-oriented
Structured programming language

Answer explanation

C is a procedural language and not primarily object-oriented, unlike C++ or Java.

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C Programming – Features & The First C Program -- What is the main function of the preprocessor directive `#include <stdio.h>`?
Links the standard input/output library
Defines a new function
Declares a global variable
Includes user-defined headers

Answer explanation

It includes the standard input/output header file, providing access to functions like `printf` and `scanf`.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C Programming – Features & The First C Program -- What is the purpose of the `main()` function in a C program?
It's an optional function
It's the entry point of execution
It declares global variables
It handles error logging

Answer explanation

Program execution in C always begins from the `main()` function.

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C Programming – Features & The First C Program -- Which of the following is the correct way to end a C statement?
A colon (:)
A semicolon (;)
A period (.)
A comma (,)

Answer explanation

Every statement in C must end with a semicolon.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

C Programming – Features & The First C Program -- Which of the following is a key feature of C that allows direct memory manipulation?
Garbage collection
Pointers
Virtual memory
Polymorphism

Answer explanation

C's powerful pointer concept allows for direct memory access and manipulation.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Introduction to Variables -- What is a variable in C?
A fixed value that cannot be changed
A named storage location in memory
A function that performs a specific task
A predefined keyword in the language

Answer explanation

A variable is a symbolic name for a memory location used to store data.

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Introduction to Variables -- Which of the following is a valid declaration of an integer variable in C?
`int 1num;`
`_int num;`
`int num;`
`integer num;`

Answer explanation

`int` is the correct keyword for an integer, and `num` is a valid identifier.

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?