How do you declare an array of integers in C?
Aptitude Competition(FY)

Quiz
•
Computers
•
University
•
Hard
Shital Ugale
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int array[10];
int arr[10];
int[10] arr;
array int arr[10];
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the return type of a function that does not return a value?
void
int
float
string
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you implement a `for` loop in C?
for(int i = 0; i < 10; i++) { print(i); }
for(int i = 0; i < 10; i++) { printf("%d\n", i); }
for(i = 0; i < 10; i++) printf('%d\n', i);
for(int i = 0; i < 10; i++) { printf(i); }
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What control structure would you use to execute a block of code multiple times?
Loop (for, while, do-while)
Exception handling (try-catch)
Function call
Conditional statement (if, switch)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is the correct usage of conditional operators used in C?
>b ? c=30 : c=40;
a>b ? c=30;
max = (a>b) ? a:b
return (a>b)?(a:b)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
To print out a and b given below, which of the following printf() statement will you use?
#include<stdio.h>
float a=3.14;
double b=3.14;
printf("%f %lf", a, b);
printf("%Lf %f", a, b);
printf("%Lf %Lf", a, b);
printf("%f %Lf", a, b);
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
All the trees in the park are flowering trees.
Some of the trees in the park are dogwoods.
All dogwoods in the park are flowering trees.
If the first two statements are true, the third statement is
true
false
uncertain
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Computer Basics Quiz

Quiz
•
University
20 questions
Apuntadores en C

Quiz
•
University
26 questions
String in C Programming

Quiz
•
University
28 questions
IPC144 - Week 3

Quiz
•
University
20 questions
C programming syntax quiz

Quiz
•
University
20 questions
Operator in C

Quiz
•
University
20 questions
TECHFEST QUALIFYING ROUND

Quiz
•
University
23 questions
Beginning C Programming

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade