Advertisement
Advertisement
Advertisement

12th Grade Object Oriented Programming Quizzes, Questions & Answers

Top Trending Object Oriented Programming Quizzes


This Objective C & OOP Examination 2 assesses knowledge in Objective C syntax, memory management, and OOP principles. It tests skills in function pointers, NSString manipulations, memory address behaviors, array operations, type...

Questions: 15  |  Attempts: 469   |  Last updated: Mar 21, 2025
  • Sample Question 1
    Which is the correct syntax to declare a function pointer named "foo" returning an integer and having an integer as argument?
    Radio Button
    Radio Button
    Radio Button
    Radio Button
    Radio Button
    Radio Button
  • Sample Question 2
    What can you assume when calling the "stringWithString:" method on a "NSString" object?
    Radio Button
    Radio Button
    Radio Button
  • Sample Question 3
    What can you say about the memory addresses that will be printed by the following program? #import <Cocoa/Cocoa.h> int main( void ) { NSAutoreleasePool * pool; NSString * s1; NSString * s2; NSString * s3; NSString * s4; pool = [ [ NSAutoreleasePool alloc ] init ]; s1 = @"Hello world!"; s2 = @"Hello world!"; s3 = [ NSString stringWithString: @"Hello world!" ]; s4 = [ [ NSString alloc ] initWithString: @"Hello world!" ]; printf( "%p\n%p\n%p\n%p\n", s1, s2, s3, s4 ); [ s4 release ]; [ pool release ]; return 0; }
    Radio Button
    Radio Button
    Radio Button
    Radio Button

Recent Object Oriented Programming Quizzes

Advertisement