
Programming in C Lab quiz II

Quiz
•
Computers
•
12th Grade
•
Medium
Balamurugan Munisamy
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a pointer in C?
A pointer in C is a variable that stores the memory address of another variable.
A pointer in C is a data type that stores multiple values
A pointer in C is a function that returns a memory address
A pointer in C is a keyword used to declare constants
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you handle files in C?
Delete files directly without closing them
Use Python instead of C
Print files to the console instead of reading/writing
Include
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the concept of functions in C.
Functions in C do not have a return type.
Functions in C are blocks of code that perform a specific task. They are reusable and modular, allowing for better organization and easier debugging. Functions in C have a return type, a name, parameters, and a body where the actual code is written.
Functions in C cannot have parameters.
Functions in C are used for decorative purposes only.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are arrays in C?
Arrays in C can only store primitive data types and not complex objects.
Arrays in C are limited to a fixed number of elements and cannot be resized.
Arrays in C are a collection of elements of the same data type stored in contiguous memory locations.
Arrays in C are a collection of elements of different data types stored in non-contiguous memory locations.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you perform dynamic memory allocation in C?
Dynamic memory allocation is not possible in C
Declare a static array with a large size to allocate memory
Use functions like malloc, calloc, or realloc to allocate memory during runtime and free the memory using the free function.
Use functions like free, allocate, or reserve to allocate memory
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the significance of command line arguments in C?
They provide a way to customize program behavior without modifying the source code.
They allow the program to run faster
They are used for debugging purposes only
They are only used in object-oriented programming languages
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for declaring a pointer in C?
int ptr*;
int *ptr;
int* ptr;
int ptr;
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
JAVASCRIPT

Quiz
•
12th Grade
20 questions
QUIZ DASAR DASAR PEMROGRAMAN JAVA

Quiz
•
11th Grade - University
15 questions
System Unit

Quiz
•
10th Grade - University
15 questions
Pointer Arithmetic in C Programming

Quiz
•
9th - 12th Grade
20 questions
INFORMATIKA

Quiz
•
10th - 12th Grade
15 questions
Quick Revision H466 #1

Quiz
•
12th Grade - University
25 questions
Operating Systems

Quiz
•
9th - 12th Grade
20 questions
Sumatif Analisis Data Informatika Kelas 8

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade