Hitha C Quiz 1

Hitha C Quiz 1

Professional Development

96 Qs

quiz-placeholder

Similar activities

Evaluasi Kemampuan Teknis Perpajakan Akhir Tahun 2024

Evaluasi Kemampuan Teknis Perpajakan Akhir Tahun 2024

Professional Development

100 Qs

0014: Researching Health Information and Effective Strategies

0014: Researching Health Information and Effective Strategies

Professional Development

100 Qs

Product Training Forklift

Product Training Forklift

Professional Development

100 Qs

cosmetología

cosmetología

Professional Development

93 Qs

MySQL

MySQL

Professional Development

94 Qs

Data Structures and Algorithms

Data Structures and Algorithms

Professional Development

100 Qs

Test Kepemiluan 2024

Test Kepemiluan 2024

Professional Development

100 Qs

ADMINIS KANTORAN

ADMINIS KANTORAN

Professional Development

100 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?