Reharshal For Coding
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
BENDI MANIDEEP
Used 1+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
1) What is the range of values that can be stored by int datatype in C?
-(2^31) to (2^31) - 1
-256 to 255
-(2^63) to (2^63)-1
O to (2^31) - 1
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
2) How is an array initialized in C language?
int a[3] = {1, 2, 3};
int a = {1, 2, 3};
int a[] = new int[3]
int a(3) = [1, 2, 3];
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
3) What is the output of the following code snippet?
#include <stdio.h>
int main()
{ int a[] = {1, 2, 3, 4};
int sum = 0;
for(int i = 0; i < 4; i++)
{
sum += a[i];
}
printf("%d", sum);
return 0;
}
1
4
20
10
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
4) How are String represented in memory in C?
An array of characters.
The object of some class.
Same as other primitive data types.
LinkedList of characters.
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
5) How is the 3rd element in an array accessed based on pointer notation?
*a +3
*(a + 3)
**(a + 3)
&(a + 3)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Montaje y Mantenimiento de Equipos
Quiz
•
12th Grade - University
10 questions
cp06-01-1D-Array
Quiz
•
University
10 questions
CHAPTER 1: COMPUTER SECURITY REVIEW
Quiz
•
University
10 questions
Lourdes Amaranta Ayala Gracia
Quiz
•
8th Grade - University
10 questions
BIOMETRICS-UNIT-I
Quiz
•
University
10 questions
TH2 - Electrónica
Quiz
•
University
10 questions
System Integration and Arch Exam 2
Quiz
•
University
10 questions
PYTHON_CHAPTER 8
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
